]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V Regression test: Fix FAIL of slp-reduc-4.c for RVV
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Mon, 9 Oct 2023 13:41:23 +0000 (21:41 +0800)
committerPan Li <pan2.li@intel.com>
Mon, 9 Oct 2023 14:28:56 +0000 (22:28 +0800)
RVV vectortizes this case with stride8 load_lanes.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/slp-reduc-4.c: Adapt test for stride8 load_lanes.

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

index 15f5c259e980cdea2a6f459062e527dd9dd59b53..e2fe01bb13d6615c5936df0a924ffa24a87c0a17 100644 (file)
@@ -60,6 +60,6 @@ int main (void)
 /* For variable-length SVE, the number of scalar statements in the
    reduction exceeds the number of elements in a 128-bit granule.  */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! vect_multiple_sizes } xfail { vect_no_int_min_max || { aarch64_sve && vect_variable_length } } } } } */
-/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_multiple_sizes } } } } */
+/* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" { target { vect_multiple_sizes && { ! { vect_load_lanes && vect_strided8 } } } } } } */
 /* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" { xfail { aarch64_sve && vect_variable_length } } } } */