PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / short-it-ifcvt-1.c
blobf3d29b7d2344d0d677ad0a14a5e579df66ca2621
1 /* Test that ifcvt is not being too aggressive when -mrestrict-it. */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mrestrict-it" } */
4 /* { dg-require-effective-target arm_thumb2_ok } */
6 int
7 f1(int x, int y, int z)
9 if (x > 100)
11 x++;
12 z = -z;
14 else
16 x = -x;
17 y = -y;
18 z = 1;
20 return x + y + z;
23 /* { dg-final { scan-assembler "b(gt|le)" } } */