summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/branch-4.c
blob: 277bd0af76fce721a6d973fec5f10aead5bc8c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-options "-mabicalls -mshared -mabi=n32" } */
/* { 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;
}