1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-vrp1 -fno-tree-ccp" } */
3
4 int foo (void)
5 {
6 volatile int a = -1;
7 long long b = (1LL << (sizeof (b) * 8 - 1)); // LLONG_MIN
8 long long x = (a & b); // x == 0x8000000000000000
9 if (x < 1LL) { ; } else { __builtin_abort(); }
10 return 0;
11 }
12
13 /* { dg-final { scan-tree-dump "\\\[-INF, -INF\\\]\\\[0, 0\\\]" "vrp1" } } */