https://gcc.gnu.org/g:56805976a1cb252253118e8da40873857d6b0c9f
commit r17-4698-g56805976a1cb252253118e8da40873857d6b0c9f Author: Jeff Law <[email protected]> Date: Sun Sep 27 11:35:55 2026 -0600 [RISC-V] Fix typo and minor bugs in recently added bclr test As Andreas noted, the bclr test got goof'd up. I vaguely recall adjusting the submitted test, probably an attempt to make it work on both rv32 and rv64. I must have goof'd that. Test also needs c99 mode, so in addition to fixing the typo, this fixes that oversight. Pushed to the trunk after testing on riscv32-elf and riscv64-elf. gcc/testsuite * gcc.target/riscv/bclr-lowest-set-bit-2.c: Fix typos and force c99 mode. Diff: --- gcc/testsuite/gcc.target/riscv/bclr-lowest-set-bit-2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/bclr-lowest-set-bit-2.c b/gcc/testsuite/gcc.target/riscv/bclr-lowest-set-bit-2.c index e40fd6c10f78..9b7ff5c928e9 100644 --- a/gcc/testsuite/gcc.target/riscv/bclr-lowest-set-bit-2.c +++ b/gcc/testsuite/gcc.target/riscv/bclr-lowest-set-bit-2.c @@ -1,6 +1,6 @@ /* { dg-do run } */ -/* { dg-additional options "-march=rv64gc_zbb_zbs -mabi=lp64d" { target rv64 } } */ -/* { dg-additional options "-march=rv32gc_zbb_zbs -mabi=ilp32" { target rv32 } } */ +/* { dg-additional-options "-std=c99 -march=rv64gc_zbb_zbs -mabi=lp64d" { target rv64 } } */ +/* { dg-additional-options "-std=c99 -march=rv32gc_zbb_zbs -mabi=ilp32" { target rv32 } } */ /* If bclr drops the sign extension, this loop never terminates. */
