]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix RISC-V test after recent vectorizer changes
authorJeff Law <jeffrey.law@oss.qualcomm.com>
Thu, 15 Jan 2026 19:49:55 +0000 (12:49 -0700)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Thu, 15 Jan 2026 19:49:55 +0000 (12:49 -0700)
Richi's patch to fix costing of permuted contiguous loads changed the code
generation for pr122445.c in the testsuite.  After reviewing the code, it looks
clearly better to me -- essentially covering 2X as many elements per vector op
with fewer total vector ops in the end (without resulting to LMUL > 1).

I've verified this fixes the overnight regressions seen on riscv{32,64}-elf.
The bootstrap and regression tests are in flight, but won't finish for many
more hours.

gcc/testsuite
* gcc.target/riscv/rvv/autovec/pr122445.c: Adjust expected output.

gcc/testsuite/gcc.target/riscv/rvv/autovec/pr122445.c

index 47368684faa1e3f97b19168bd54da754e3f02cc3..cd046647656a93fc857b9de57d1f4b915fc769b9 100644 (file)
@@ -22,5 +22,5 @@ x264_add4x4_idct (uint8_t *p_dst, int16_t d[16])
     }
 }
 
-/* { dg-final { scan-rtl-dump "Propagating AVL: \\(const_int 4" "avlprop" } } */
+/* { dg-final { scan-rtl-dump "Propagating AVL: \\(const_int 8" "avlprop" } } */
 /* { dg-final { scan-rtl-dump-not "Propagating AVL: \\(const_int 1" "avlprop" } } */