]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Fix reduc-[89].c again.
authorRobin Dapp <rdapp.gcc@gmail.com>
Sat, 15 Feb 2025 15:44:51 +0000 (08:44 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sat, 15 Feb 2025 15:44:51 +0000 (08:44 -0700)
my last fix wasn't sufficient.  This patch just scans for the scalar
insns now.

Going to commit as obvious if the CI is happy.

Regards
 Robin

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/reduc/reduc-8.c: Scan for add.
* gcc.target/riscv/rvv/autovec/reduc/reduc-9.c: Scan for fadd.

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

index 518f0c33cc4e4dfbd0f5a9355236e480a8921f86..1e5dc236a184cdbf39e61e619681ee575fe6955c 100644 (file)
@@ -12,4 +12,4 @@ add_loop (int *x, int n, int res)
   return res;
 }
 
-/* { dg-final { scan-assembler-times {vslide1up\.vx\s+v[0-9]+,\s*v[0-9]+,\s*[a-x0-9]+} 1 } } */
+/* { dg-final { scan-assembler-times {add\s+[a-x0-9]+,\s*[a-x0-9]+,a2} 1 } } */
index a5bb8dcccb81b3a010896e543db4f1baa2cb9e83..b5a1e8de009426d36b88352252766ddc02e7afd0 100644 (file)
@@ -12,4 +12,4 @@ add_loop (float *x, int n, float res)
   return res;
 }
 
-/* { dg-final { scan-assembler-times {vfslide1up\.vf\s+v[0-9]+,\s*v[0-9]+,\s*[a-x0-9]+} 1 } } */
+/* { dg-final { scan-assembler-times {fadd\.s\s+f[a-x0-9]+,\s*f[a-x0-9]+,fa0} 1 } } */