1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ test(int a,int b)3int test (int a, int b) 4 { 5 int r; 6 if (a > 10) 7 { 8 r = a - b; 9 r += 10; 10 } 11 else 12 { 13 r = b - a; 14 r -= 7; 15 } 16 if (r > 0) 17 r -= 3; 18 return r; 19 } 20 /* { dg-final { scan-assembler-times "\tit" 2 { target arm_thumb2 } } } */ 21