blob: 5a422ae29b483d0596d30535bb9733a26147c7fa (
plain)
1
2
3
4
5
6
7
8
9
|
/* { dg-options "-mbranch-cost=10 (HAS_MOVN)" } */
/* { 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" } } */
|