[PATCH] RISC-V: Add support for zama16b extension.
Dongyan Chen
chendongyan@isrc.iscas.ac.cn
Fri Apr 18 08:48:57 GMT 2025
This implements the zama16b extension, version 1.0[1].
[1]https://github.com/riscv/riscv-profiles/blob/main/src/rva23-profile.adoc
bfd/ChangeLog:
* elfxx-riscv.c: Handle zama16b.
gas/ChangeLog:
* NEWS: Updated.
* testsuite/gas/riscv/march-help.l: Updated.
---
bfd/elfxx-riscv.c | 1 +
gas/NEWS | 2 ++
gas/testsuite/gas/riscv/march-help.l | 1 +
3 files changed, 4 insertions(+)
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index ec254915c76..28dde34a6e9 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1369,6 +1369,7 @@ static struct riscv_supported_ext riscv_supported_std_z_ext[] =
{"zaamo", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"zabha", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"zacas", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
+ {"zama16b", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"zalrsc", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"zawrs", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
{"zfbfmin", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
diff --git a/gas/NEWS b/gas/NEWS
index b4fc2e9e9be..f1cb651a7fe 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -16,6 +16,8 @@
* Add support for the x86 Zhaoxin PadLock XMODX instructions.
+* Add support for RISC-V zama16b extension with version 1.0.
+
Changes in 2.44:
* Add support for the x86 Intel Diamond Rapids AMX instructions, including
diff --git a/gas/testsuite/gas/riscv/march-help.l b/gas/testsuite/gas/riscv/march-help.l
index d77472fda9c..d406e9f9f64 100644
--- a/gas/testsuite/gas/riscv/march-help.l
+++ b/gas/testsuite/gas/riscv/march-help.l
@@ -35,6 +35,7 @@ All available -march extensions for RISC-V:
zabha 1.0
zacas 1.0
zalrsc 1.0
+ zama16b 1.0
zawrs 1.0
zfbfmin 1.0
zfa 1.0
--
2.43.0
More information about the Binutils
mailing list