summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/branch-cost-2.c
blob: 23f528ad63fd91b13f464b84e26081c4778ac718 (plain)
1
2
3
4
5
6
7
8
/* { dg-options "-mbranch-cost=10 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 "\t(movz|movn)\t" } } */
/* { dg-final { scan-assembler-not "\t(bne|beq)\t" } } */