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