Debian Codegraph @

gcc/testsuite/gcc.target/arm/short-it-ifcvt-2.c

raw
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 } */
5
6 int
7 f1(int x, int y, int z)
8 {
9 if (x > 100)
10 {
11 x++;
12 z = -z;
13 }
14 else
15 {
16 x = -x;
17 y = -y;
18 }
19 return x + y + z;
20 }
21 /* { dg-final { scan-assembler "b(gt|le)" } } */