]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/vect: Make check more accurate.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 7 Nov 2023 08:15:02 +0000 (09:15 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 7 Nov 2023 12:20:05 +0000 (13:20 +0100)
Similar to before this modifies a check so we do only match a
vectorization attempt if it succeeded.  On riscv we potentially try
several modes if which some may fail.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/vect-cond-reduc-4.c: Make check more accurate.

gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c

index 8ea8c5387136670ca7c8ed63753ff152fbf773f8..27f18dc5bdaea76b0f9d21ad342f641dd05f29d1 100644 (file)
@@ -42,7 +42,6 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 2 "vect" } } */
-/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 2 "vect" { target { vect_fold_extract_last && vect_pack_trunc } } } } */
-/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 4 "vect" { target { { vect_fold_extract_last } && { ! vect_pack_trunc } } } } } */
+/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST(?:(?!failed)(?!Re-trying).)*succeeded" 2 "vect" { target { vect_fold_extract_last && vect_pack_trunc } } } } */
 /* { dg-final { scan-tree-dump-times "condition expression based on integer induction." 2 "vect" { target { ! vect_fold_extract_last } } } } */