diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/branch-6.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/branch-6.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/branch-6.c b/gcc/testsuite/gcc.target/mips/branch-6.c new file mode 100644 index 000000000..9bf73f01c --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/branch-6.c @@ -0,0 +1,12 @@ +/* { dg-options "-mabicalls -mshared -mabi=64" } */ +/* { dg-final { scan-assembler-not "(\\\$25|\\\$28|%gp_rel|%got)" } } */ +/* { dg-final { scan-assembler-not "\tjr\t\\\$1\n" } } */ + +#include "branch-helper.h" + +NOMIPS16 void +foo (volatile int *x) +{ + if (__builtin_expect (*x == 0, 1)) + OCCUPY_0x1fff8; +} |