]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: riscv: pr118170 goes 64-bit without choosing a 64-bit abi
authorAlexandre Oliva <oliva@adacore.com>
Sun, 1 Feb 2026 07:35:41 +0000 (04:35 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 1 Feb 2026 07:35:41 +0000 (04:35 -0300)
The test selects a 64-bit cpu explicitly, which enables a 64-bit arch,
but the test doesn't set the abi, so it fails on riscv32-elf.  Set a
64-bit abi explicitly.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/pr118170.c: Set the abi explicitly.

gcc/testsuite/gcc.target/riscv/pr118170.c

index baa7f8d3d9e6d6779ce472ea062157d504a065d9..a39c4170ff2f5b20249442f332dda05055d519ab 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do "compile" { target { ! riscv_abi_e } } } */
-/* { dg-options "-O2 -mcpu=tt-ascalon-d8" } */
+/* { dg-options "-O2 -mcpu=tt-ascalon-d8 -mabi=lp64d" } */
 _Float16 f;
 
 void