1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 4 int foo(int a,int b)5foo (int a, int b) 6 { 7 int x = a - 4; 8 if (a < 4) 9 return x; 10 else 11 return 0; 12 } 13 14 /* { dg-final { scan-assembler-times "subs\\tw\[0-9\]+, w\[0-9\]+, #4" 1 } } */ 15 /* { dg-final { scan-assembler-not "cmp\\tw\[0-9\]+, w\[0-9\]+" } } */ 16