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.
This commit is contained in:
Jeff Law
2025-10-20 16:31:20 -06:00
parent ce5cff6bfe
commit f2b5e49c59

View File

@@ -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 } } */