]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
vect: Fix dot-product slp testcases [PR116000]
authorFeng Xue <fxue@os.amperecomputing.com>
Mon, 5 Aug 2024 10:13:55 +0000 (18:13 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Mon, 5 Aug 2024 10:15:06 +0000 (18:15 +0800)
These testcases were added by the patch of supporting multiple lane-reducing
operations. For target that has no dot-product instrution, we should add
matching condition to skip it.

2024-08-05 Feng Xue <fxue@os.amperecomputing.com>

gcc/testsuite/
PR tree-optimization/116000
* gcc.dg/vect/vect-reduc-chain-dot-slp-1.c: Skip target with no dot-
product instruction.
* gcc.dg/vect/vect-reduc-chain-dot-slp-2.c: Likewise.
* gcc.dg/vect/vect-reduc-chain-dot-slp-3.c: Likewise.
* gcc.dg/vect/vect-reduc-chain-dot-slp-4.c: Likewise.

gcc/testsuite/gcc.dg/vect/vect-reduc-chain-dot-slp-1.c
gcc/testsuite/gcc.dg/vect/vect-reduc-chain-dot-slp-2.c
gcc/testsuite/gcc.dg/vect/vect-reduc-chain-dot-slp-3.c
gcc/testsuite/gcc.dg/vect/vect-reduc-chain-dot-slp-4.c

index 72a370ab3c01c70808b354e9bc91d08b21ee59f5..0901357ea6adc61833b6a16e4e95cd9b0e6662da 100644 (file)
@@ -91,5 +91,4 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump "vect_recog_dot_prod_pattern: detected" "vect" } } */
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing statement: \\S+ = DOT_PROD_EXPR" 16 "vect" } } */
+/* { dg-final { scan-tree-dump "vectorizing SLP node starting from: \\S+ = DOT_PROD_EXPR" "vect" { target vect_sdot_qi } } } */
index aab86ee2f1cd0289f55e3d1c631e5b1e9682e282..818eeddcece190d559d19056712fc6dc5fcafe31 100644 (file)
@@ -63,5 +63,4 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump "vect_recog_dot_prod_pattern: detected" "vect" } } */
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing statement: \\S+ = DOT_PROD_EXPR" 5 "vect" } } */
+/* { dg-final { scan-tree-dump "vectorizing SLP node starting from: \\S+ = DOT_PROD_EXPR" "vect" { target vect_sdot_qi } } } */
index 9f1d2136ab6ee46559288a7dc7e0e1ea35c7a076..87541cd834236f6bef3dab1b956f7bc4401c60a4 100644 (file)
@@ -75,5 +75,4 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump "vect_recog_dot_prod_pattern: detected" "vect" } } */
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing statement: \\S+ = DOT_PROD_EXPR" 8 "vect"  { target vect_sdot_hi } } } */
+/* { dg-final { scan-tree-dump "vectorizing SLP node starting from: \\S+ = DOT_PROD_EXPR" "vect" { target vect_sdot_hi } } } */
index f4dcebdfa100c791bee6f6eee2269be894dea4ca..11719430e582b10a22d1dd80cc744e728d80c26d 100644 (file)
@@ -59,5 +59,4 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump "vect_recog_dot_prod_pattern: detected" "vect" } } */
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump-times "vectorizing statement: \\S+ = DOT_PROD_EXPR" 3 "vect"  { target vect_sdot_hi } } } */
+/* { dg-final { scan-tree-dump "vectorizing SLP node starting from: \\S+ = DOT_PROD_EXPR" "vect" { target vect_sdot_hi } } } */