PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / andor-3.c
blob929d9958dc8821193a1522271694c1f792a33793
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
4 int f(int y, int x)
6 return x & ((~x) | y);
8 int f1(int y, int x)
10 return x & (y | (~x));
12 int f2(int y, int x)
14 return ((~x) | y) & x;
16 int f3(int y, int x)
18 return (y | (~x)) & x;
22 /* { dg-final { scan-tree-dump-times "~x" 0 "optimized" } } */
23 /* { dg-final { scan-tree-dump-times "x_..D. \& y_..D." 4 "optimized" } } */