MIPS32R6 and MIPS64R6 support
[official-gcc.git] / gcc / testsuite / gcc.target / mips / branch-cost-2.c
blob5a422ae29b483d0596d30535bb9733a26147c7fa
1 /* { dg-options "-mbranch-cost=10 (HAS_MOVN)" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
3 NOMIPS16 int
4 foo (int x, int y, int z, int k)
6 return x == k ? x + y : z - x;
8 /* { dg-final { scan-assembler "\t(movz|movn)\t" } } */
9 /* { dg-final { scan-assembler-not "\t(bne|beq)\t" } } */