c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr94718-1.c
blob510eec815ebf9d3772342be55737caa1986d8439
1 /* PR tree-optimization/94718 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-ipa-icf -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-times "= \[xy]_\[0-9]+\\\(D\\\) \\^ \[xy]_\[0-9]+\\\(D\\\);" 6 "optimized" } } */
5 /* { dg-final { scan-tree-dump-times "\[0-9]+ < 0;" 6 "optimized" } } */
7 #define I (-__INT_MAX__ - 1)
9 int
10 f1 (int x, int y)
12 return (x & I) != (y & I);
15 int
16 f2 (int x, int y)
18 return (~x & I) != (~y & I);
21 int
22 f3 (int x, int y)
24 return ((x & I) ^ I) != ((y & I) ^ I);
27 int
28 f4 (int x, int y)
30 int s = (x & I);
31 int t = (y & I);
32 return s != t;
35 int
36 f5 (int x, int y)
38 int s = (~x & I);
39 int t = (~y & I);
40 return s != t;
43 int
44 f6 (int x, int y)
46 int s = ((x & I) ^ I);
47 int t = ((y & I) ^ I);
48 return s != t;