diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/mips/branch-12.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/mips/branch-12.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/mips/branch-12.c b/gcc-4.9/gcc/testsuite/gcc.target/mips/branch-12.c new file mode 100644 index 000000000..4aef160ad --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/mips/branch-12.c @@ -0,0 +1,13 @@ +/* { dg-options "-mshared -mabi=64" } */ +/* { 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 (int (*bar) (void), int *x) +{ + *x = bar (); + if (__builtin_expect (*x == 0, 1)) + OCCUPY_0x1fff8; +} |