]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust testsuite/gcc.dg/tree-ssa/vrp-float-1.c
authorAldy Hernandez <aldyh@redhat.com>
Tue, 2 Aug 2022 18:56:49 +0000 (20:56 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 2 Aug 2022 18:59:22 +0000 (20:59 +0200)
I missed the -details dump flag, plus I wasn't checking the actual folding.
As a bonus I had flipped the dump file name and the count, so the test
was coming out as unresolved, which I missed because I was only checking
for failures and passes.

Whooops.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/vrp-float-1.c: Adjust test so it passes.

gcc/testsuite/gcc.dg/tree-ssa/vrp-float-1.c

index 88faf72ac42578d1602dc38dcc1ef3775d9ed0aa..5be54267cf7dbfde75ff41aa8583d9e61de64755 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-O2 -fdisable-tree-ethread -fdisable-tree-fre1 -fdump-tree-evrp" }
+// { dg-options "-O2 -fdisable-tree-ethread -fdisable-tree-fre1 -fdump-tree-evrp-details" }
 
 void bar ();
 void george ();
@@ -16,4 +16,4 @@ foo (float x, float y)
     }
 }
 
-// { dg-final { scan-tree-dump-times "Folding predicate x_*to 1" "evrp" 1 } }
+// { dg-final { scan-tree-dump-times "Folded into: if \\(1 != 0\\)" 1 "evrp" } }