]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: riscv: set abi along with arch word size
authorAlexandre Oliva <oliva@adacore.com>
Sun, 1 Feb 2026 07:35:37 +0000 (04:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 1 Feb 2026 07:35:37 +0000 (04:35 -0300)
The shuffle-slide.c test fails on riscv32-elf because it overrides
arch to rv64gcv without selecting a 64-bit abi.  Set it to lp64d.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/rvv/autovec/vls-vlmax/shuffle-slide.c:
Set the abi explicitly.

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/shuffle-slide.c

index 98c560eaea127fe5ff4ccaafc09a7e58e4ead765..ad6a7b8593518731d4cabed423b5264c74058c37 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! riscv_abi_e } } } */
-/* { dg-options "-O3 -march=rv64gcv -mrvv-max-lmul=m8 -Wno-overflow" } */
+/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d -mrvv-max-lmul=m8 -Wno-overflow" } */
 
 #include "perm.h"