Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp20.c
blobe5822992fe485a55b0196a8c5616f65d6e86f6df
1 /* { dg-do compile } */
2 /* { dg-options "-fwrapv -O1 -fno-tree-fre -fdisable-tree-evrp -ftree-vrp -fdump-tree-vrp1 -fdisable-tree-ethread -fdisable-tree-thread1" } */
4 extern void abort ();
5 extern void exit (int);
7 int f (int a) {
8 if (a != 0) {
9 a = a > 0 ? a : -a;
10 if (a == 0)
11 return 1;
12 return 0;
14 return 0;
17 int g (int b) {
18 if (b != 0) {
19 b = b > 0 ? b : -b;
20 if (b != 0)
21 return 0;
23 return 1;
26 /* { dg-final { scan-tree-dump "Folding predicate a_\.\* == 0 to 0" "vrp1" } } */
27 /* { dg-final { scan-tree-dump "Folding predicate b_\.\* != 0 to 1" "vrp1" } } */