From: Jim Lin Date: Mon, 6 Jul 2026 14:59:30 +0000 (-0600) Subject: [PATCH] RISC-V: Skip zbb-min-max-05.c under -funroll-loops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17649698d6f1d1c626dcf245edd8e45f3f55a5eb;p=thirdparty%2Fgcc.git [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 --git a/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c b/gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c index f0b24ad44f1..fd4e52f2ae7 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. */