annotate gcc/testsuite/gcc.c-torture/execute/pr85529-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
131
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
1 /* PR tree-optimization/85529 */
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
2
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
3 __attribute__((noipa)) int
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
4 foo (int x)
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
5 {
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
6 x &= 63;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
7 x -= 50;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
8 x |= 1;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
9 if (x < 0)
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
10 return 1;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
11 int y = x >> 2;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
12 if (x >= y)
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
13 return 1;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
14 return 0;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
15 }
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
16
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
17 int
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
18 main ()
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
19 {
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
20 int i;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
21 for (i = 0; i < 63; i++)
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
22 if (foo (i) != 1)
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
23 __builtin_abort ();
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
24 return 0;
84e7813d76e9 gcc-8.2
mir3636
parents:
diff changeset
25 }