aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/branch-cost-2.c
blob: 3b2c4a13e5e28bc9f8e7fcb0c8f36b0392eba896 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-options "-mbranch-cost=10 isa>=4" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
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" } } */