PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / andor-4.c
blob1dbdca7dfffb074a96dc9324adb587d40fa6a478
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -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" } } */
24 /* { dg-final { cleanup-tree-dump "optimized" } } */