]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[RISC-V] Fix risc-v expected test output after recent iv changes
authorJeff Law <jlaw@ventanamicro.com>
Thu, 6 Feb 2025 19:37:11 +0000 (12:37 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Thu, 6 Feb 2025 19:37:11 +0000 (12:37 -0700)
Richard S's recent change to iv increment insertion removed a reg->reg move
(which was its intent AFAICT).  This triggered a failure on a riscv test.

That test was meant to verify that we didn't have an extraneous reg->reg move
due to a buglet in the risc-v splitters.  Before the 2023 change we had two
vector reg->reg moves and after the 2023 fix we had just one.  With Richard's
change we have none ;-)  Adjusting test accordingly.

Pushed to the trunk.

gcc/testsuite
* gcc.target/riscv/rvv/autovec/madd-split2-1.c: Update expected
output.

gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c

index 4f99a5f87c46019a5280a0013c4ae7c5b23abb7d..8cc0c9f407c97c0fe5c9fb2aecaf6199ed3504c1 100644 (file)
@@ -10,4 +10,4 @@ foo (long *__restrict a, long *__restrict b, long n)
   return a[1];
 }
 
-/* { dg-final { scan-assembler-times {\tvmv1r\.v} 1 } } */
+/* { dg-final { scan-assembler-not {\tvmv1r\.v} } } */