https://gcc.gnu.org/g:17649698d6f1d1c626dcf245edd8e45f3f55a5eb
commit r17-2171-g17649698d6f1d1c626dcf245edd8e45f3f55a5eb Author: Jim Lin <[email protected]> Date: Mon Jul 6 08:59:30 2026 -0600 [PATCH] RISC-V: Skip zbb-min-max-05.c under -funroll-loops With -funroll-loops the loop body is duplicated, emitting more than one minu and breaking the scan-assembler-times {\mminu} 1 expectation. Skip the test when -funroll-loops is present, matching zbb-min-max-04.c. gcc/testsuite/ChangeLog: * gcc.target/riscv/zbb-min-max-05.c: Skip under -funroll-loops. Diff: --- gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c b/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c index f0b24ad44f1c..fd4e52f2ae77 100644 --- a/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c +++ b/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-march=rv64gc_zba_zbb -mabi=lp64d -O3" } */ +/* { dg-skip-if "" { *-*-* } { "-funroll-loops" } } */ /* Verify that minu/maxu/min/max si3 expansions set SUBREG_PROMOTED, so that no redundant sext.w is emitted after the min/max. */
