]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] RISC-V: Skip zbb-min-max-05.c under -funroll-loops
authorJim Lin <jim@andestech.com>
Mon, 6 Jul 2026 14:59:30 +0000 (08:59 -0600)
committerJeff Law <jeffrey.law@oss.qualcomm.com>
Mon, 6 Jul 2026 14:59:30 +0000 (08:59 -0600)
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.

gcc/testsuite/gcc.target/riscv/zbb-min-max-05.c

index f0b24ad44f1c29bbfbefe9ed6633218473315ff3..fd4e52f2ae77e8e4fe1095c252550eef7424dded 100644 (file)
@@ -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.  */