diff mbox series

[committed,RISC-V] Fix test expectations after recent late-combine changes

Message ID 8ea8b309-6b1a-4772-b5d3-0e3a6282a713@gmail.com
State New
Headers show
Series [committed,RISC-V] Fix test expectations after recent late-combine changes | expand

Commit Message

Jeff Law July 4, 2024, 3:31 p.m. UTC
With the recent DCE related adjustment to late-combine the 
rvv/base/vcreate.c test no longer has those undesirable vmvNr statements.

It's a bit unclear why this wasn't written as a scan-assembler-not and 
xfailed given the comment says we don't want to see vmvNr insructions. 
I must have missed that during review.

This patch adjusts the test to expect no vmvNr statements and if they're 
ever re-introduced, we'll get a nice unexpected failure.

Pushing to the trunk.

Jeff
gcc/testsuite
	* gcc.target/riscv/rvv/base/vcreate.c: Update expected output.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vcreate.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vcreate.c
index 01006de7c81..1c7c154637e 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/base/vcreate.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vcreate.c
@@ -256,6 +256,6 @@  test_vcreate_v_i64m2x4 (vint64m2_t v0, vint64m2_t v1, vint64m2_t v2,
 }
 
 // Ideally with O3, should find 0 instances of any vmvnr.v PR113913
-/* { dg-final { scan-assembler-times {vmv1r.v\s+v[0-9]+,\s*v[0-9]+} 72 } } */
-/* { dg-final { scan-assembler-times {vmv2r.v\s+v[0-9]+,\s*v[0-9]+} 36 } } */
-/* { dg-final { scan-assembler-times {vmv4r.v\s+v[0-9]+,\s*v[0-9]+} 16 } } */
+/* { dg-final { scan-assembler-not {vmv1r.v\s+v[0-9]+,\s*v[0-9]+} } } */
+/* { dg-final { scan-assembler-not {vmv2r.v\s+v[0-9]+,\s*v[0-9]+} } } */
+/* { dg-final { scan-assembler-not {vmv4r.v\s+v[0-9]+,\s*v[0-9]+} } } */