summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/branch-3.c
blob: 0a4ffbba604196abb1139faef8d3e09ceb4e9552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-mabicalls -mshared -mabi=32" } */
/* { dg-final { scan-assembler "\t\\.cpload\t\\\$25\n" } } */
/* { dg-final { scan-assembler "\tjr\t\\\$1\n" } } */
/* { dg-final { scan-assembler-not "cprestore" } } */

#include "branch-helper.h"

NOMIPS16 void
foo (volatile int *x)
{
  if (__builtin_expect (*x == 0, 1))
    OCCUPY_0x1fffc;
}