https://gcc.gnu.org/g:892771912e3d60d5629294cb0b856e1b2e411a70
commit 892771912e3d60d5629294cb0b856e1b2e411a70 Author: Alexandre Oliva <[email protected]> Date: Sat Jan 31 01:52:51 2026 -0300 testsuite: riscv: pr118170 goes 64-bit without choosing a 64-bit abi 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. Diff: --- gcc/testsuite/gcc.target/riscv/pr118170.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/pr118170.c b/gcc/testsuite/gcc.target/riscv/pr118170.c index baa7f8d3d9e6..a39c4170ff2f 100644 --- a/gcc/testsuite/gcc.target/riscv/pr118170.c +++ b/gcc/testsuite/gcc.target/riscv/pr118170.c @@ -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
