From 01804a098dea7d08857eee82bcaad04676dd8ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=BCllner?= Date: Sun, 13 Nov 2022 16:59:21 +0100 Subject: RISC-V: Add T-Head Int vendor extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds the XTheadInt extension, which provides interrupt stack management instructions. The XTheadFmv extension is documented in the RISC-V toolchain contentions: https://github.com/riscv-non-isa/riscv-toolchain-conventions Co-developed-by: Lifang Xia Signed-off-by: Christoph Müllner --- gas/testsuite/gas/riscv/x-thead-int.d | 11 +++++++++++ gas/testsuite/gas/riscv/x-thead-int.s | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 gas/testsuite/gas/riscv/x-thead-int.d create mode 100644 gas/testsuite/gas/riscv/x-thead-int.s (limited to 'gas/testsuite') diff --git a/gas/testsuite/gas/riscv/x-thead-int.d b/gas/testsuite/gas/riscv/x-thead-int.d new file mode 100644 index 00000000000..23a82a2c809 --- /dev/null +++ b/gas/testsuite/gas/riscv/x-thead-int.d @@ -0,0 +1,11 @@ +#as: -march=rv32i_xtheadint +#source: x-thead-int.s +#objdump: -dr + +.*:[ ]+file format .* + +Disassembly of section .text: + +0+000 : +[ ]+[0-9a-f]+:[ ]+0040000b[ ]+th.ipush +[ ]+[0-9a-f]+:[ ]+0050000b[ ]+th.ipop diff --git a/gas/testsuite/gas/riscv/x-thead-int.s b/gas/testsuite/gas/riscv/x-thead-int.s new file mode 100644 index 00000000000..23d867423d4 --- /dev/null +++ b/gas/testsuite/gas/riscv/x-thead-int.s @@ -0,0 +1,3 @@ +target: + th.ipush + th.ipop -- cgit v1.2.1