blob: 9ac8153069f055bbba11345629f6700908e0f908 [file] [log] [blame]
/* Test that ifcvt is not being too aggressive when -mrestrict-it. */
/* { dg-do compile } */
/* { dg-options "-O2 -mrestrict-it" } */
/* { dg-require-effective-target arm_thumb2_ok } */
int
f1(int x, int y, int z)
{
if (x > 100)
{
x++;
z = -z;
}
else
{
x = -x;
y = -y;
}
return x + y + z;
}
/* { dg-final { scan-assembler "b(gt|le)" } } */