Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/execute/pr85529-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
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 } |