[gcc(refs/vendors/riscv/heads/gcc-15-with-riscv-opts)] Fix minor RISC-V testsuite failure
Jeff Law
law@gcc.gnu.org
Sat Jan 17 07:20:16 GMT 2026
https://gcc.gnu.org/g:16c69514997402f95951578bd552e683d9169d33
commit 16c69514997402f95951578bd552e683d9169d33
Author: Jeff Law <jlaw@ventanamicro.com>
Date: Mon Oct 20 16:31:20 2025 -0600
Fix minor RISC-V testsuite failure
This fixes reduc-8 yet again. This time the required "a2" moved to the other source operand of the add. So the regexp is further expanded to allow add anyreg,anyreg,a2 or add anyreg,a2,anyreg.
gcc/testsuite
* gcc.target/riscv/rvv/autovec/reduc/reduc-8.c: Adjust expected output.
(cherry picked from commit f2b5e49c5968ef8fa28f9e24a0866437d6289b53)
Diff:
---
gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c
index 1e5dc236a184..15a1d6364538 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c
@@ -12,4 +12,4 @@ add_loop (int *x, int n, int res)
return res;
}
-/* { dg-final { scan-assembler-times {add\s+[a-x0-9]+,\s*[a-x0-9]+,a2} 1 } } */
+/* { dg-final { scan-assembler-times {add\s+[a-x0-9]+,\s*(?:a2,\s*[a-x0-9]+|[a-x0-9]+,\s*a2)} 1 } } */
More information about the Gcc-cvs
mailing list