[PATCH v3] RISC-V: Add support for svvptc extension.

Dongyan Chen chendongyan@isrc.iscas.ac.cn
Mon Apr 14 09:02:51 GMT 2025


This implements the svvptc extensons, version 1.0[1].

[1] https://github.com/riscv/riscv-svvptc

Changes for v3:
- Delete the INSN_CLASS_* of svvptc.

Changes for v2:
- Add the github link of svvptc.

bfd/ChangeLog:

	* elfxx-riscv.c: Handle svvptc.

gas/ChangeLog:

	* NEWS: Updated.
	* testsuite/gas/riscv/march-help.l: Ditto.

---
 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..bac4cf5ea63 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -1479,6 +1479,7 @@ static struct riscv_supported_ext riscv_supported_std_s_ext[] =
   {"svinval",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"svnapot",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"svpbmt",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
+  {"svvptc",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"ssqosid",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"ssnpm",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
   {"smnpm",		ISA_SPEC_CLASS_DRAFT,		1, 0, 0 },
diff --git a/gas/NEWS b/gas/NEWS
index b4fc2e9e9be..939b5d527e8 100644
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -16,6 +16,8 @@

 * Add support for the x86 Zhaoxin PadLock XMODX instructions.

+* Add support for the RISC-V svvptc extension, 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..fe41832afdd 100644
--- a/gas/testsuite/gas/riscv/march-help.l
+++ b/gas/testsuite/gas/riscv/march-help.l
@@ -139,6 +139,7 @@ All available -march extensions for RISC-V:
 	svinval                                 1.0
 	svnapot                                 1.0
 	svpbmt                                  1.0
+    svvptc                                  1.0
 	ssqosid                                 1.0
 	ssnpm                                   1.0
 	smnpm                                   1.0
--
2.43.0



More information about the Binutils mailing list