summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/branch-10.c
blob: 7fdebfcc3f62e47de6acd304340b2e3ba16dbaeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-mabicalls -mshared -mabi=n32" } */
/* { dg-final { scan-assembler-not "(\\\$28|%gp_rel|%got)" } } */
/* { dg-final { scan-assembler-not "\tjr\t\\\$1\n" } } */

#include "branch-helper.h"

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