rt_gccstream/gcc/testsuite/gcc.target/mips/branch-cost-1.c

9 lines
247 B
C

/* { dg-options "-mbranch-cost=1 isa>=4 -O2" } */
NOMIPS16 int
foo (int x, int y, int z, int k)
{
return x == k ? x + y : z - x;
}
/* { dg-final { scan-assembler-not "\t(movz|movn)\t" } } */
/* { dg-final { scan-assembler "\t(bne|beq)\t" } } */