2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / andor-4.c
blob172c29e8b712f86c02059cf5a8ee68750bdf60e9
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" } } */