Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / andor-2.c
blob2c61e2cca90aaf57fd7646550135ad116476a5cf
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
4 int test1(int a, int b)
6 return (a & b) | b;
9 int test2(int c, int d)
11 return (c & d) | c;
14 int test3(int e, int f)
16 return e | (e & f);
19 int test4(int g, int h)
21 return g | (h & g);
24 int test5(int i, int j)
26 return (i | j) & j;
29 int test6(int k, int l)
31 return (k | l) & k;
34 int test7(int m, int n)
36 return m & (m | n);
39 int test8(int o, int p)
41 return o & (p | o);
44 /* { dg-final { scan-tree-dump-times "return b;" 1 "original" } } */
45 /* { dg-final { scan-tree-dump-times "return c;" 1 "original" } } */
46 /* { dg-final { scan-tree-dump-times "return e;" 1 "original" } } */
47 /* { dg-final { scan-tree-dump-times "return g;" 1 "original" } } */
48 /* { dg-final { scan-tree-dump-times "return j;" 1 "original" } } */
49 /* { dg-final { scan-tree-dump-times "return k;" 1 "original" } } */
50 /* { dg-final { scan-tree-dump-times "return m;" 1 "original" } } */
51 /* { dg-final { scan-tree-dump-times "return o;" 1 "original" } } */