https://gcc.gnu.org/g:a02a5bc24013f9e05f1c514ad37ec6aa67947cc0

commit a02a5bc24013f9e05f1c514ad37ec6aa67947cc0
Author: Dongyan Chen <chendong...@isrc.iscas.ac.cn>
Date:   Wed May 21 21:46:52 2025 -0600

    [PATCH] testsuite: RISC-V: Update the cset-sext-sfb/zba-slliuw test 
optimization level.
    
    Failed testcases occurred in the regression test of gcc: cset-sext-sfb.c 
failed
    the -Oz test, and zba-slliuw.c failed the -Og test.
    This patch solves the problem by skipping the optimization.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/riscv/cset-sext-sfb.c: Skip for -Oz.
            * gcc.target/riscv/zba-slliuw.c: Skip for -Og.
    
    (cherry picked from commit d8636b05c559e6f060e16652bb10c59d9fb0fb54)

Diff:
---
 gcc/testsuite/gcc.target/riscv/cset-sext-sfb.c | 2 +-
 gcc/testsuite/gcc.target/riscv/zba-slliuw.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/cset-sext-sfb.c 
b/gcc/testsuite/gcc.target/riscv/cset-sext-sfb.c
index 4a8477e81621..3d46306f1e19 100644
--- a/gcc/testsuite/gcc.target/riscv/cset-sext-sfb.c
+++ b/gcc/testsuite/gcc.target/riscv/cset-sext-sfb.c
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { ! riscv_abi_e } } } */
-/* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O1" "-Os" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O1" "-Os" "-Oz" } } */
 /* { dg-options "-march=rv32gc -mtune=sifive-7-series -mbranch-cost=1 
-fno-ssa-phiopt -fdump-rtl-ce1" { target { rv32 } } } */
 /* { dg-options "-march=rv64gc -mtune=sifive-7-series -mbranch-cost=1 
-fno-ssa-phiopt -fdump-rtl-ce1" { target { rv64 } } } */
 
diff --git a/gcc/testsuite/gcc.target/riscv/zba-slliuw.c 
b/gcc/testsuite/gcc.target/riscv/zba-slliuw.c
index c123bb5ece0f..69914db95a2c 100644
--- a/gcc/testsuite/gcc.target/riscv/zba-slliuw.c
+++ b/gcc/testsuite/gcc.target/riscv/zba-slliuw.c
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-march=rv64gc_zba_zbs -mabi=lp64" } */
-/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
 
 long
 foo (long i)

Reply via email to