Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / mips / branch-12.c
1 /* { dg-options "-mshared -mabi=64" } */
2 /* { dg-final { scan-assembler-not "(\\\$28|%gp_rel|%got)" } } */
3 /* { dg-final { scan-assembler-not "\tjr\t\\\$1\n" } } */
4
5 #include "branch-helper.h"
6
7 NOMIPS16 void
8 foo (int (*bar) (void), int *x)
9 {
10   *x = bar ();
11   if (__builtin_expect (*x == 0, 1))
12     OCCUPY_0x1fff8;
13 }