Debian Codegraph @

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

raw
1 /* { dg-options "-mbranch-cost=1 (HAS_MOVN)" } */
2 /* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
3 NOMIPS16 int
4 foo (int x, int y, int z, int k)
5 {
6 return x == k ? x + y : z - x;
7 }
8 /* { dg-final { scan-assembler-not "\t(movz|movn)\t" } } */
9 /* { dg-final { scan-assembler "\t(bnec?|beqc?)\t" } } */