]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V Regression tests: Fix FAIL of pr97832* for RVV
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 9 Oct 2023 13:15:30 +0000 (21:15 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 9 Oct 2023 14:35:16 +0000 (22:35 +0800)
These cases are vectorized by vec_load_lanes with strided = 8 instead of SLP
with -fno-vect-cost-model.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/pr97832-2.c: Adapt dump check for target supports load_lanes with stride = 8.
* gcc.dg/vect/pr97832-3.c: Ditto.
* gcc.dg/vect/pr97832-4.c: Ditto.

gcc/testsuite/gcc.dg/vect/pr97832-2.c
gcc/testsuite/gcc.dg/vect/pr97832-3.c
gcc/testsuite/gcc.dg/vect/pr97832-4.c

index 4f0578120eecc4aed62d295cfe85f82e6cf71565..7d8d2691432717eaac8e08e877300d9880ee8646 100644 (file)
@@ -25,5 +25,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen)
   }
 }
 
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */
+/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */
index ad1225ddbaae661ada33100cc7b27ca0247e5bbb..c0603e1432e90c679a88f68019c916a17d0f8bf9 100644 (file)
@@ -46,5 +46,5 @@ void foo(double* restrict y, const double* restrict x0, const double* restrict x
   }
 }
 
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */
+/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */
index 74ae27ff873a1b3bb93749531cafc4c9993f443c..c03442816a460b799877e29bebc66ef36bc0964f 100644 (file)
@@ -24,5 +24,5 @@ void foo1x1(double* restrict y, const double* restrict x, int clen)
   }
 }
 
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
-/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */
+/* { dg-final { scan-tree-dump "Loop contains only SLP stmts" "vect" { target { ! { vect_load_lanes && vect_strided8 } } } } } */