aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-05-27 17:24:11 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-05-27 17:29:09 -0700
commit4fcdc37e8856bde847d3b8dd2915b68d56ad1d62 (patch)
tree65d78caab21c590192b4cffb628d71378b807750 /gcc
parent958a682794d9f7666557e2a92869312b2a187c00 (diff)
downloadgcc-4fcdc37e8856bde847d3b8dd2915b68d56ad1d62.zip
gcc-4fcdc37e8856bde847d3b8dd2915b68d56ad1d62.tar.gz
gcc-4fcdc37e8856bde847d3b8dd2915b68d56ad1d62.tar.bz2
Fix bitops-9.c for -m32 and other targets that don't have vector modes
This just moves the tree scan earlier so we can detect the optimization and not need to detect the vector splitting too. Committed as obvious after a quick test. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/bitops-9.c: Look at cdcde1 rather than optmization. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c b/gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c
index a18b6bf..bcf079a 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized-raw" } */
+/* { dg-options "-O2 -fdump-tree-cddce1-raw" } */
/* PR tree-optimization/115238 */
@@ -10,6 +10,8 @@ void f(int a, vector8 int *b)
a = 1;
*b = a | ((~a) ^ *b);
}
-/* { dg-final { scan-tree-dump-not "bit_xor_expr, " "optimized" } } */
-/* { dg-final { scan-tree-dump-times "bit_ior_expr, " 1 "optimized" } } */
-/* { dg-final { scan-tree-dump-times "bit_not_expr, " 1 "optimized" } } */
+/* Scan early on in the phases before the vector has possibily been split
+ but late enough after forwprop or other match-simplify has happened though. */
+/* { dg-final { scan-tree-dump-not "bit_xor_expr, " "cddce1" } } */
+/* { dg-final { scan-tree-dump-times "bit_ior_expr, " 1 "cddce1" } } */
+/* { dg-final { scan-tree-dump-times "bit_not_expr, " 1 "cddce1" } } */