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"
12 foo (int (*bar
) (void), int *x
)
15 if (__builtin_expect (*x
== 0, 1))