Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / branch-13.c
blob8a6fb049f2444e569eed10b898c83dda8049edf1
1 /* { dg-options "-mshared -mabi=64" } */
2 /* { dg-final { scan-assembler "\tsd\t\\\$28," } } */
3 /* { dg-final { scan-assembler "\tld\t\\\$28," } } */
4 /* { dg-final { scan-assembler "\tdaddiu\t\\\$28,\\\$28,%lo\\(%neg\\(%gp_rel\\(foo\\)\\)\\)\n" } } */
5 /* { dg-final { scan-assembler "\tld\t\\\$1,%got_page\\(\[^)\]*\\)\\(\\\$28\\)\n" } } */
6 /* { dg-final { scan-assembler "\tdaddiu\t\\\$1,\\\$1,%got_ofst\\(\[^)\]*\\)\n" } } */
7 /* { dg-final { scan-assembler "\tjr\t\\\$1\n" } } */
9 #include "branch-helper.h"
11 NOMIPS16 void
12 foo (int (*bar) (void), int *x)
14 *x = bar ();
15 if (__builtin_expect (*x == 0, 1))
16 OCCUPY_0x1fffc;