]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix spill-12 test
authorJeff Law <jlaw@ventanamicro.com>
Sun, 27 Aug 2023 18:52:38 +0000 (12:52 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 27 Aug 2023 18:52:38 +0000 (12:52 -0600)
Jivan's recent work on IRA results in more efficient code for this test. This
adjusts the expected output for the removal of 5 instructions and conversion of
an addi into a simple mv.

gcc/testsuite
* gcc.target/riscv/rvv/base/spill-12.c: Update expected output.

gcc/testsuite/gcc.target/riscv/rvv/base/spill-12.c

index de6e0604a3cd35d2719f7a7be2869de270f5b959..7e83cb7b7c1c276c86e7b9cc89d266be10b555fc 100644 (file)
@@ -15,12 +15,7 @@ void fn3 (char*);
 **     addi\tt0,t0,192
 **     add\tsp,sp,t0
 **     ...
-**     li\ta0,-8192
-**     addi\ta0,a0,192
-**     li\ta5,8192
-**     addi\ta5,a5,-192
-**     add\ta5,a5,a0
-**     add\ta0,a5,sp
+**     mv\ta0,sp
 **     ...
 **     tail\t__riscv_restore_0
 */