diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/branch-15.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/branch-15.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/branch-15.c b/gcc/testsuite/gcc.target/mips/branch-15.c new file mode 100644 index 000000000..dee7a0504 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/branch-15.c @@ -0,0 +1,23 @@ +/* An executable version of branch-3.c. */ +/* { dg-do run } */ + +#include "branch-helper.h" + +void +foo (volatile int *x) +{ + if (__builtin_expect (*x == 0, 1)) + OCCUPY_0x1fffc; +} + +int +main (void) +{ + int x = 0; + int y = 1; + + foo (&x); + foo (&y); + + return 0; +} |