aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-29 10:45:14 +0200
committerRichard Biener <rguenther@suse.de>2023-03-29 10:47:32 +0200
commitad32fcb8e91ba85cb4676c6249b6adc4b0daf9df (patch)
tree831c8a17415ac61911695d0581495202912ea924
parent7fd1d28d2436065da7fc0fe01d787fcdf3c14b83 (diff)
downloadgcc-ad32fcb8e91ba85cb4676c6249b6adc4b0daf9df.zip
gcc-ad32fcb8e91ba85cb4676c6249b6adc4b0daf9df.tar.gz
gcc-ad32fcb8e91ba85cb4676c6249b6adc4b0daf9df.tar.bz2
scan generic vector tests before lowering
The g++.dg/pr94920.C testcase looks for a specific number of ABS_EXPRs but the vector example is prone to vector lowering so the following instead of scanning the optimized dump scans the forwprop1 dump which is before vector lowering and the point the transforms should have happened. * g++.dg/pr94920.C: Scan forwprop1 instead of optimized.
-rw-r--r--gcc/testsuite/g++.dg/pr94920.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/pr94920.C b/gcc/testsuite/g++.dg/pr94920.C
index 126b004..65ece36 100644
--- a/gcc/testsuite/g++.dg/pr94920.C
+++ b/gcc/testsuite/g++.dg/pr94920.C
@@ -1,6 +1,6 @@
/* PR tree-optimization/94920 */
/* { dg-do compile } */
-/* { dg-options "-O2 -Wno-psabi -fdump-tree-optimized" } */
+/* { dg-options "-O2 -Wno-psabi -fdump-tree-forwprop1" } */
typedef int __attribute__((vector_size(4*sizeof(int)))) vint;
@@ -60,4 +60,4 @@ __attribute__((noipa)) int qux(int x) {
return (x >= 0 ? x : 0) + (x >= 0 ? x : 0);
}
-/* { dg-final {scan-tree-dump-times " ABS_EXPR " 6 "optimized" } } */
+/* { dg-final {scan-tree-dump-times " ABS_EXPR " 6 "forwprop1" } } */