summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/compact-branches-3.c
blob: d6becb10eeebfa287fda88198c9c0e667a2bbb4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-mcompact-branches=never isa_rev>=6" } */
int glob;

void
foo (int a, int b, volatile int * bar)
{
  if (a < b)
    glob = *bar;
}

/* { dg-final { scan-assembler "\tnop" } } */
/* { dg-final { scan-assembler-not "\tb\[^ \t\]*c" } } */
/* { dg-final { scan-assembler-not "\tj\[^ \t\]*c" } } */