PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp59.c
blob5f6e9d956f096bb87f457c6947fdd23ed65cf1e8
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fdump-tree-vrp1" } */
4 int f(int x)
6 if (x >= 0 && x <= 3)
8 x = x ^ 3;
9 x = x & 3;
11 return x;
14 int g(int x)
16 if (x >= 0 && x <= 3)
18 x = x ^ 2;
19 x = x & 3;
21 return x;
24 int h(int x)
26 if (x >= 0 && x <= 3)
28 x = x ^ 1;
29 x = x & 3;
31 return x;
34 /* { dg-final { scan-tree-dump-not " & 3;" "vrp1" } } */