blob: 41a256619b7ed0326ac4653af6e2e1d58e949b4b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2" } */
int
foo (int a, int b)
{
int x = a - 4;
if (a < 4)
return x;
else
return 0;
}
/* { dg-final { scan-assembler-times "subs\\tw\[0-9\]+, w\[0-9\]+, \[#\]?4" 1 } } */
/* { dg-final { scan-assembler-not "cmp\\tw\[0-9\]+, w\[0-9\]+" } } */