Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr96669-1.c
blob6a95a6ba8c17c62a67d8347cc60a5c345fa45155
1 /* PR tree-optimization/96669 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-original" } */
4 /* { dg-final { scan-tree-dump "a == 0" "original" } } */
5 /* { dg-final { scan-tree-dump "return 1;" "original" } } */
6 /* { dg-final { scan-tree-dump "return c == 3;" "original" } } */
7 /* { dg-final { scan-tree-dump "return d != 1;" "original" } } */
8 /* { dg-final { scan-tree-dump "return e != 0;" "original" } } */
9 /* { dg-final { scan-tree-dump "return f == 1;" "original" } } */
10 /* { dg-final { scan-tree-dump "return 0;" "original" } } */
11 /* { dg-final { scan-tree-dump "return h != 1;" "original" } } */
13 int
14 f1 (int a)
16 return ((1 << a) & 1) != 0;
19 int
20 f2 (int b)
22 return ((2 << b) & 1) == 0;
25 int
26 f3 (int c)
28 return ((2 << c) & 16) != 0;
31 int
32 f4 (int d)
34 return ((16 << d) & 32) == 0;
37 int
38 f5 (int e)
40 return ((1 >> e) & 1) == 0;
43 int
44 f6 (int f)
46 return ((2 >> f) & 1) != 0;
49 int
50 f7 (int g)
52 return ((1 >> g) & 2) != 0;
55 int
56 f8 (int h)
58 return ((32 >> h) & 16) == 0;