]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: riscv: set expected code model
authorAlexandre Oliva <oliva@adacore.com>
Sun, 1 Feb 2026 07:35:30 +0000 (04:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 1 Feb 2026 07:35:30 +0000 (04:35 -0300)
commitbb70d650353fca0e472d0341acff1d12445a6f9e
tree617c42ae3bffad9e3374a536794380c38a33be65
parentd7a7ac3c83eecbac6555e8820905899d7f0b84c7
testsuite: riscv: set expected code model

When testing a compiler configured to default to the medany code
model, riscv autovec binop vadd and vsub -nofm tests fail because
their codegen expectations don't match the generated code.

Set the code model to the medlow model that the tests expect.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/rvv/autovec/binop/vadd-rv32gcv-nofm.c: Set the
expected code model explicitly.
* gcc.target/riscv/rvv/autovec/binop/vadd-rv64gcv-nofm.c: Likewise.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv32gcv-nofm.c: Likewise.
* gcc.target/riscv/rvv/autovec/binop/vsub-rv64gcv-nofm.c: Likewise.
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vadd-rv32gcv-nofm.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vadd-rv64gcv-nofm.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vsub-rv32gcv-nofm.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vsub-rv64gcv-nofm.c