]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: riscv: set expected code model for pr113206-2.c
authorAlexandre Oliva <oliva@adacore.com>
Sun, 1 Feb 2026 07:35:33 +0000 (04:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 1 Feb 2026 07:35:33 +0000 (04:35 -0300)
commit8f2f78a72ec3f5f94d20e47b88943e6fcde2ddc5
treeaa6a23028733ca729e061a204c030baef04e0cd8
parentbb70d650353fca0e472d0341acff1d12445a6f9e
testsuite: riscv: set expected code model for pr113206-2.c

With a compiler that defaults to cmodel medany, pr113206-2.c ends up
generating an extra vsetvli insn.

Set the code model explicitly to medlow to meet the expectation.

This is unfortunately not enough to get the test to a pass on trunk.
It is on gcc-15 and the change is an improvement, but trunk still gets
an unexpected vsetvli even with the change.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/rvv/autovec/pr113206-2.c: Set the expected
code model explicitly.
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr113206-2.c