Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / branch-9.c
blobcad1c003c3ef3416aa1772efedc9279204342aed
1 /* { dg-options "-mshared -mabi=32" } */
2 /* { dg-final { scan-assembler "\t\\.cpload\t\\\$25\n" } } */
3 /* { dg-final { scan-assembler "\t\\.cprestore\t16\n" } } */
4 /* { dg-final { scan-assembler "\tlw\t\\\$1,16\\(\\\$(fp|sp)\\)\n" } } */
5 /* { dg-final { scan-assembler "\tlw\t\\\$1,%got\\(\[^)\]*\\)\\(\\\$1\\)\n" } } */
6 /* { dg-final { scan-assembler "\taddiu\t\\\$1,\\\$1,%lo\\(\[^)\]*\\)\n" } } */
7 /* { dg-final { scan-assembler "\tjr\t\\\$1\n" } } */
8 /* { dg-final { scan-assembler-not "\\\$28" } } */
10 #include "branch-helper.h"
12 NOMIPS16 void
13 foo (int (*bar) (void), int *x)
15 *x = bar ();
16 if (__builtin_expect (*x == 0, 1))
17 OCCUPY_0x1fffc;