]> gcc.gnu.org Git - gcc.git/commit
RISC-V/testsuite/pr111466.c: update test and expected output
authorVineet Gupta <vineetg@rivosinc.com>
Tue, 17 Oct 2023 17:05:41 +0000 (10:05 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 23 Oct 2023 02:08:12 +0000 (20:08 -0600)
commit2332d766f1fa0ca75eabb93b9b7cbf01df87b184
tree6e408cfbe60cf2327cf9e2e6cf2d5317cdcdd141
parent471f46045dd448aba7f402a707fd6debc7352386
RISC-V/testsuite/pr111466.c: update test and expected output

Update the test to potentially generate two SEXT.W instructions: one for
incoming function arg, other for function return.

But after commit 8eb9cdd14218
("expr: don't clear SUBREG_PROMOTED_VAR_P flag for a promoted subreg")
the test is not supposed to generate either of them so fix the expected
assembler output which was errorneously introduced by commit above.

gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr111466.c (foo2): Change return to unsigned
int as that will potentially generate two SEXT.W instructions.
dg-final: Change to scan-assembler-not SEXT.W.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
(cherry picked from commit 9cad42786ca28461633d524bbb6480f388bfdc55)
gcc/testsuite/gcc.target/riscv/pr111466.c
This page took 0.065964 seconds and 6 git commands to generate.