Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
131 | 1 /* PR tree-optimization/85529 */ |
2 | |
3 __attribute__((noipa)) int | |
4 foo (int x) | |
5 { | |
6 x &= 63; | |
7 x -= 50; | |
8 x |= 1; | |
9 if (x < 0) | |
10 return 1; | |
11 int y = x >> 2; | |
12 if (x >= y) | |
13 return 1; | |
14 return 0; | |
15 } | |
16 | |
17 int | |
18 main () | |
19 { | |
20 int i; | |
21 for (i = 0; i < 63; i++) | |
22 if (foo (i) != 1) | |
23 __builtin_abort (); | |
24 return 0; | |
25 } |