diff options
author | Edwin Lu <ewlu@rivosinc.com> | 2024-07-03 17:17:27 -0700 |
---|---|---|
committer | Edwin Lu <ewlu@rivosinc.com> | 2024-07-10 09:54:05 -0700 |
commit | 04df2a924bba38c271bfe4ed0e94af1877413818 (patch) | |
tree | 9170bfe4fe8295bc99530bdd9b8fddb80d0264ec | |
parent | 2a90c41a131080e5fdd2b5554fcdba5c654cb93f (diff) | |
download | gcc-04df2a924bba38c271bfe4ed0e94af1877413818.zip gcc-04df2a924bba38c271bfe4ed0e94af1877413818.tar.gz gcc-04df2a924bba38c271bfe4ed0e94af1877413818.tar.bz2 |
RISC-V: Update testsuite to use b
Update all instances of zba_zbb_zbs in the testsuite to use b instead
gcc/testsuite/ChangeLog:
* g++.target/riscv/redundant-bitmap-1.C: Use gcb instead of
zba_zbb_zbs
* g++.target/riscv/redundant-bitmap-2.C: Ditto
* g++.target/riscv/redundant-bitmap-3.C: Ditto
* g++.target/riscv/redundant-bitmap-4.C: Ditto
* gcc.target/riscv/shift-add-1.c: Ditto
* gcc.target/riscv/shift-add-2.c: Ditto
* gcc.target/riscv/synthesis-1.c: Ditto
* gcc.target/riscv/synthesis-2.c: Ditto
* gcc.target/riscv/synthesis-3.c: Ditto
* gcc.target/riscv/synthesis-4.c: Ditto
* gcc.target/riscv/synthesis-5.c: Ditto
* gcc.target/riscv/synthesis-6.c: Ditto
* gcc.target/riscv/synthesis-7.c: Ditto
* gcc.target/riscv/synthesis-8.c: Ditto
* gcc.target/riscv/zba_zbs_and-1.c: Ditto
* gcc.target/riscv/zbs-zext-3.c: Ditto
* lib/target-supports.exp: Add b to riscv_get_arch
Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
-rw-r--r-- | gcc/testsuite/g++.target/riscv/redundant-bitmap-1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.target/riscv/redundant-bitmap-2.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.target/riscv/redundant-bitmap-3.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.target/riscv/redundant-bitmap-4.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/shift-add-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/shift-add-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-3.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-4.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-5.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-6.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-7.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/synthesis-8.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/zba_zbs_and-1.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/zbs-zext-3.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 2 |
17 files changed, 18 insertions, 18 deletions
diff --git a/gcc/testsuite/g++.target/riscv/redundant-bitmap-1.C b/gcc/testsuite/g++.target/riscv/redundant-bitmap-1.C index 37066f10..62bb2ab 100644 --- a/gcc/testsuite/g++.target/riscv/redundant-bitmap-1.C +++ b/gcc/testsuite/g++.target/riscv/redundant-bitmap-1.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-O2 -march=rv64gcb -mabi=lp64" } */ void setBit(char &a, int b) { char c = 0x1UL << b; diff --git a/gcc/testsuite/g++.target/riscv/redundant-bitmap-2.C b/gcc/testsuite/g++.target/riscv/redundant-bitmap-2.C index 86acaba..52204da 100644 --- a/gcc/testsuite/g++.target/riscv/redundant-bitmap-2.C +++ b/gcc/testsuite/g++.target/riscv/redundant-bitmap-2.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-O2 -march=rv64gcb -mabi=lp64" } */ void setBit(char &a, int b) { char c = 0x1UL << b; diff --git a/gcc/testsuite/g++.target/riscv/redundant-bitmap-3.C b/gcc/testsuite/g++.target/riscv/redundant-bitmap-3.C index 16bd7c1..6745220 100644 --- a/gcc/testsuite/g++.target/riscv/redundant-bitmap-3.C +++ b/gcc/testsuite/g++.target/riscv/redundant-bitmap-3.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-O2 -march=rv64gcb -mabi=lp64" } */ void setBit(char &a, int b) { char c = 0x1UL << b; diff --git a/gcc/testsuite/g++.target/riscv/redundant-bitmap-4.C b/gcc/testsuite/g++.target/riscv/redundant-bitmap-4.C index f664ee0..5e351fe 100644 --- a/gcc/testsuite/g++.target/riscv/redundant-bitmap-4.C +++ b/gcc/testsuite/g++.target/riscv/redundant-bitmap-4.C @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-O2 -march=rv64gcb -mabi=lp64" } */ void setBit(char &a, int b) { char c = 0x1UL << b; diff --git a/gcc/testsuite/gcc.target/riscv/shift-add-1.c b/gcc/testsuite/gcc.target/riscv/shift-add-1.c index d98875c..db84a51 100644 --- a/gcc/testsuite/gcc.target/riscv/shift-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/shift-add-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-march=rv64gcb -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } } */ int composeFromSurrogate(const unsigned short high) { diff --git a/gcc/testsuite/gcc.target/riscv/shift-add-2.c b/gcc/testsuite/gcc.target/riscv/shift-add-2.c index 8743985..ed95ced 100644 --- a/gcc/testsuite/gcc.target/riscv/shift-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/shift-add-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-march=rv64gcb -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } } */ int sub2(int a, long long b) { diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-1.c b/gcc/testsuite/gcc.target/riscv/synthesis-1.c index 9176d5f..c50abb0 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-1.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-1.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-2.c b/gcc/testsuite/gcc.target/riscv/synthesis-2.c index b88374d..8238340 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-2.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-2.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* All these cases have the same form. lui+slli.uw+addi /* { dg-final { scan-assembler-times "\\tadd" 367 } } */ diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-3.c b/gcc/testsuite/gcc.target/riscv/synthesis-3.c index 5d92ac8e..88ef0e8 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-3.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-3.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-4.c b/gcc/testsuite/gcc.target/riscv/synthesis-4.c index 328a55b..54d25e2 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-4.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-4.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-5.c b/gcc/testsuite/gcc.target/riscv/synthesis-5.c index 4d81565..4ed07e4 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-5.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-5.c @@ -6,7 +6,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-6.c b/gcc/testsuite/gcc.target/riscv/synthesis-6.c index 65cf748..2304855 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-6.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-6.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-7.c b/gcc/testsuite/gcc.target/riscv/synthesis-7.c index 1611c96..5a69d2e 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-7.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-7.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/synthesis-8.c b/gcc/testsuite/gcc.target/riscv/synthesis-8.c index 2bcdb4e..72fd711 100644 --- a/gcc/testsuite/gcc.target/riscv/synthesis-8.c +++ b/gcc/testsuite/gcc.target/riscv/synthesis-8.c @@ -5,7 +5,7 @@ and eliminates the usual sources of extraneous dead code that would throw off the counts. */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-O2" "-O3" "-Os" "-Oz" "-flto" } } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs" } */ +/* { dg-options "-march=rv64gcb" } */ /* Rather than test for a specific synthesis of all these constants or having thousands of tests each testing one variant, we just test the diff --git a/gcc/testsuite/gcc.target/riscv/zba_zbs_and-1.c b/gcc/testsuite/gcc.target/riscv/zba_zbs_and-1.c index 23fd769..ddff91a 100644 --- a/gcc/testsuite/gcc.target/riscv/zba_zbs_and-1.c +++ b/gcc/testsuite/gcc.target/riscv/zba_zbs_and-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs -mabi=lp64" } */ +/* { dg-options "-march=rv64gcb -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } } */ diff --git a/gcc/testsuite/gcc.target/riscv/zbs-zext-3.c b/gcc/testsuite/gcc.target/riscv/zbs-zext-3.c index 0239014..8dc3f28 100644 --- a/gcc/testsuite/gcc.target/riscv/zbs-zext-3.c +++ b/gcc/testsuite/gcc.target/riscv/zbs-zext-3.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_zba_zbb_zbs -mabi=lp64d" { target { rv64 } } } */ -/* { dg-options "-march=rv32gc_zba_zbb_zbs -mabi=ilp32" { target { rv32 } } } */ +/* { dg-options "-march=rv64gcb -mabi=lp64d" { target { rv64 } } } */ +/* { dg-options "-march=rv32gcb -mabi=ilp32" { target { rv32 } } } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" } } */ /* We need to adjust the constant so this works for rv32 and rv64. */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index d3edc7d..f001c28 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2140,7 +2140,7 @@ proc check_effective_target_riscv_v_misalign_ok { } { proc riscv_get_arch { } { set gcc_march "" # ??? do we neeed to add more extensions to the list below? - foreach ext { i m a f d q c v zicsr zifencei zfh zba zbb zbc zbs zvbb zvfh ztso zaamo zalrsc zabha } { + foreach ext { i m a f d q c b v zicsr zifencei zfh zba zbb zbc zbs zvbb zvfh ztso zaamo zalrsc zabha } { if { [check_no_compiler_messages riscv_ext_$ext assembly [string map [list DEF __riscv_$ext] { #ifndef DEF #error "Not DEF" |