[binutils-gdb] RISC-V: Added lost zcmt in gas imply testcase.

Nelson Chu nelsonc1225@sourceware.org
Fri Jan 17 04:37:51 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e2632e5b0065b09645e8dbbed04eaac24bf2c7f

commit 9e2632e5b0065b09645e8dbbed04eaac24bf2c7f
Author: Nelson Chu <nelson@rivosinc.com>
Date:   Fri Jan 17 12:30:00 2025 +0800

    RISC-V: Added lost zcmt in gas imply testcase.

Diff:
---
 bfd/elfxx-riscv.c               | 2 +-
 gas/testsuite/gas/riscv/imply.d | 1 +
 gas/testsuite/gas/riscv/imply.s | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index 9354886a54f..c9e4b03b17d 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1218,7 +1218,7 @@ static struct riscv_implicit_subset riscv_implicit_subsets[] =
   {"zcf", "+f,+zca", check_implicit_always},
   {"zcmp", "+zca", check_implicit_always},
   {"zcmop", "+zca", check_implicit_always},
-  {"zcmt", "+zca,+zicsr",	check_implicit_always},
+  {"zcmt", "+zca,+zicsr", check_implicit_always},
 
   {"zicfilp", "+zicsr", check_implicit_always},
   {"zicfiss", "+zimop,+zicsr", check_implicit_always},
diff --git a/gas/testsuite/gas/riscv/imply.d b/gas/testsuite/gas/riscv/imply.d
index 529910dd5d9..78ff200e810 100644
--- a/gas/testsuite/gas/riscv/imply.d
+++ b/gas/testsuite/gas/riscv/imply.d
@@ -48,6 +48,7 @@ SYMBOL TABLE:
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_f2p2_zicsr2p0_zca1p0_zcf1p0
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_zca1p0_zcmp1p0
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_zca1p0_zcmop1p0
+[0-9a-f]+ l       .text	0+000 \$xrv32i2p1_zicsr2p0_zca1p0_zcmt1p0
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_zicfilp1p0_zicsr2p0
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_zicfiss1p0_zicsr2p0_zimop1p0
 [0-9a-f]+ l       .text	0+000 \$xrv32i2p1_h1p0_zicsr2p0_shcounterenw1p0
diff --git a/gas/testsuite/gas/riscv/imply.s b/gas/testsuite/gas/riscv/imply.s
index 88ade91484f..d696b52655a 100644
--- a/gas/testsuite/gas/riscv/imply.s
+++ b/gas/testsuite/gas/riscv/imply.s
@@ -52,6 +52,7 @@ imply zcd
 imply zcf
 imply zcmp
 imply zcmop
+imply zcmt
 
 imply zicfilp
 imply zicfiss


More information about the Binutils-cvs mailing list