diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/branch-5.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/branch-5.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/branch-5.c b/gcc/testsuite/gcc.target/mips/branch-5.c new file mode 100644 index 000000000..3d151d824 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/branch-5.c @@ -0,0 +1,14 @@ +/* { dg-options "-mabicalls -mshared -mabi=n32" } */ +/* { dg-final { scan-assembler "\taddiu\t\\\$3,\\\$3,%lo\\(%neg\\(%gp_rel\\(foo\\)\\)\\)\n" } } */ +/* { dg-final { scan-assembler "\tlw\t\\\$1,%got_page\\(\[^)\]*\\)\\(\\\$3\\)\\n" } } */ +/* { dg-final { scan-assembler "\tjr\t\\\$1\n" } } */ +/* { dg-final { scan-assembler-not "\\\$28" } } */ + +#include "branch-helper.h" + +NOMIPS16 void +foo (volatile int *x) +{ + if (__builtin_expect (*x == 0, 1)) + OCCUPY_0x1fffc; +} |