]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix minor RISC-V testsuite failure
authorJeff Law <jlaw@ventanamicro.com>
Mon, 20 Oct 2025 22:31:20 +0000 (16:31 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 20 Oct 2025 22:31:56 +0000 (16:31 -0600)
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.

gcc/testsuite/gcc.target/riscv/rvv/autovec/reduc/reduc-8.c

index 1e5dc236a184cdbf39e61e619681ee575fe6955c..15a1d63645385f97d160af0d249a37d72381fc94 100644 (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 } } */