]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix bitops-9.c for -m32 and other targets that don't have vector modes
authorAndrew Pinski <quic_apinski@quicinc.com>
Tue, 28 May 2024 00:24:11 +0000 (17:24 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Tue, 28 May 2024 00:29:09 +0000 (17:29 -0700)
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>
gcc/testsuite/gcc.dg/tree-ssa/bitops-9.c

index a18b6bf3214cda05d563a8c276b314219702f403..bcf079ab59de7d3d63ae43c7ce03c32e9063894b 100644 (file)
@@ -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" } } */