]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Turn off late-combine for a few risc-v specific tests
authorJeff Law <jlaw@ventanamicro.com>
Sun, 25 Aug 2024 13:06:45 +0000 (07:06 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 25 Aug 2024 13:06:45 +0000 (07:06 -0600)
Just minor testsuite adjustments -- several of the shorten-memref tests are
slightly twiddled by the late-combine pass:

> Running /home/jlaw/test/gcc/gcc/testsuite/gcc.target/riscv/riscv.exp ...
> FAIL: gcc.target/riscv/shorten-memrefs-2.c   -Os   scan-assembler store1a:\n(\t?\\.[^\n]*\n)*\taddi
> XPASS: gcc.target/riscv/shorten-memrefs-3.c   -Os   scan-assembler-not load2a:\n.*addi[ \t]*[at][0-9],[at][0-9],[0-9]*
> FAIL: gcc.target/riscv/shorten-memrefs-5.c   -Os   scan-assembler store1a:\n(\t?\\.[^\n]*\n)*\taddi
> FAIL: gcc.target/riscv/shorten-memrefs-8.c   -Os   scan-assembler store:\n(\t?\\.[^\n]*\n)*\taddi\ta[0-7],a[0-7],1
This patch just turns off the late-combine pass for those tests.  Locally I'd
adjusted all the shorten-memref patches, but a quick re-rest shows that only 4
tests seem affected right now.

Anyway, pushing to the trunk to slightly clean up our test results.

gcc/testsuite
* gcc.target/riscv/shorten-memrefs-2.c: Turn off late-combine.
* gcc.target/riscv/shorten-memrefs-3.c: Likewise.
* gcc.target/riscv/shorten-memrefs-5.c: Likewise.
* gcc.target/riscv/shorten-memrefs-8.c: Likewise.

gcc/testsuite/gcc.target/riscv/shorten-memrefs-2.c
gcc/testsuite/gcc.target/riscv/shorten-memrefs-3.c
gcc/testsuite/gcc.target/riscv/shorten-memrefs-5.c
gcc/testsuite/gcc.target/riscv/shorten-memrefs-8.c

index a9ddb797d06ab93b4934318ab54bfa86567b32ca..29ece481c2619523efa632260ec43955157df391 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-march=rv32imc -mabi=ilp32" } */
+/* { dg-options "-march=rv32imc -mabi=ilp32 -fno-late-combine-instructions" } */
 /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
 
 /* shorten_memrefs should rewrite these load/stores into a compressible
index 3d561124b8189f1b0b67f51130e2c98eb2d3cbb3..273a68c373a12033613b200c769bea92f2e09cb6 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-march=rv32imc -mabi=ilp32" } */
+/* { dg-options "-march=rv32imc -mabi=ilp32 -fno-late-combine-instructions" } */
 /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
 
 /* These loads cannot be compressed because only one compressed reg is
index 11e858ed6da0fc9c5ef045a7ff8ff783729525d7..f554105f91f1a3344f4cdd9aafa0e9626a771f08 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-march=rv64imc -mabi=lp64" } */
+/* { dg-options "-march=rv64imc -mabi=lp64 -fno-late-combine-instructions" } */
 /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
 
 /* shorten_memrefs should rewrite these load/stores into a compressible
index 3ff6956b33e43dacca0f11d0832393192dc316b1..d533355409cabd5a9a15e97388d80f1578864c9b 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-march=rv32imc -mabi=ilp32" } */
+/* { dg-options "-march=rv32imc -mabi=ilp32 -fno-late-combine-instructions" } */
 /* { dg-skip-if "" { *-*-* } { "*" } { "-Os" } } */
 
 /* shorten_memrefs should use a correct base address*/