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

commit e5a69d295e67e75c8974bd814932c42de906af30
Author: Alexandre Oliva <[email protected]>
Date:   Sat Jan 31 01:53:04 2026 -0300

    testsuite: riscv: check for Zbs support in pr116715.c
    
    The test wants Zbs support, but it didn't check for runtime support.
    
    Also use rv64 and rv32 so that multilibs with different bit widths
    work.
    
    
    for  gcc/testsuite/ChangeLog
    
            * gcc.target/riscv/pr116715.c: Require Zbs support.  Select
            arch by active bitwidth.

Diff:
---
 gcc/testsuite/gcc.target/riscv/pr116715.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/pr116715.c 
b/gcc/testsuite/gcc.target/riscv/pr116715.c
index 55daab20171e..b4f7fa71715e 100644
--- a/gcc/testsuite/gcc.target/riscv/pr116715.c
+++ b/gcc/testsuite/gcc.target/riscv/pr116715.c
@@ -1,6 +1,6 @@
-/* { dg-do run } */
-/* { dg-options "-march=rv64gc_zbs -mabi=lp64d" { target { riscv64*-*-* } } } 
*/
-/* { dg-options "-march=rv32gc_zbs -mabi=ilp32" { target { riscv32*-*-* } } } 
*/
+/* { dg-do run { target riscv_b_ok } } */
+/* { dg-options "-march=rv64gc_zbs -mabi=lp64d" { target { rv64 } } } */
+/* { dg-options "-march=rv32gc_zbs -mabi=ilp32" { target { rv32 } } } */
 #include <stdint-gcc.h>
 int32_t a, b;
 int32_t d;

Reply via email to