aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/umips-branch-6.c
blob: d688bc9c1f4021b70725024302b97cf2125423e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-mshared -mabi=32 -mmicromips" } */
/* { 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_0x10000;
}