On 1/31/2026 1:18 AM, Alexandre Oliva wrote:
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.

Regstrapped on x86_64-linux-gnu along with other patches in this batch;
also tested with targets riscv64-elf and riscv32-elf on the same host,
both trunk and gcc-15.  Ok to install?


for  gcc/testsuite/ChangeLog

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

Reply via email to