1 /* { dg-do assemble { target arm_thumb2 } } */ 2 /* { dg-options " -Os " } */ 3 t(int a,int b,int c,int d)4int t (int a, int b, int c, int d) 5 { 6 int r; 7 if (a > 0) { 8 r = a + b; 9 r += 0x456; 10 r *= 0x1234567; 11 } 12 else { 13 r = b - a; 14 r -= 0x123; 15 r *= 0x12387; 16 r += d; 17 } 18 return r; 19 } 20 21 /* { dg-final { object-size text <= 40 } } */ 22