diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2022-11-13 16:59:20 +0100 |
---|---|---|
committer | Nelson Chu <nelson@rivosinc.com> | 2022-11-17 16:43:49 +0800 |
commit | 4a3bc79bf4c0e89c876c930a1e95a02213277460 (patch) | |
tree | 4a82c5fbaf454ec2fcf147c1134d67b2f38d5879 /gas/testsuite | |
parent | 7a4ce4a1bcff9710b7dede9797e6d5eb2364c06e (diff) | |
download | gdb-4a3bc79bf4c0e89c876c930a1e95a02213277460.zip gdb-4a3bc79bf4c0e89c876c930a1e95a02213277460.tar.gz gdb-4a3bc79bf4c0e89c876c930a1e95a02213277460.tar.bz2 |
RISC-V: Add T-Head Fmv vendor extension
This patch adds the XTheadFmv extension, which allows to access the
upper 32 bits of a double-precision floating-point register in RV32.
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 <lifang_xia@linux.alibaba.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/riscv/x-thead-fmv.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/x-thead-fmv.s | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gas/testsuite/gas/riscv/x-thead-fmv.d b/gas/testsuite/gas/riscv/x-thead-fmv.d new file mode 100644 index 0000000..f2bbe01 --- /dev/null +++ b/gas/testsuite/gas/riscv/x-thead-fmv.d @@ -0,0 +1,11 @@ +#as: -march=rv32i_xtheadfmv +#source: x-thead-fmv.s +#objdump: -dr + +.*:[ ]+file format .* + +Disassembly of section .text: + +0+000 <target>: +[ ]+[0-9a-f]+:[ ]+6005950b[ ]+th.fmv.hw.x[ ]+a0,fa1 +[ ]+[0-9a-f]+:[ ]+5005158b[ ]+th.fmv.x.hw[ ]+a1,fa0 diff --git a/gas/testsuite/gas/riscv/x-thead-fmv.s b/gas/testsuite/gas/riscv/x-thead-fmv.s new file mode 100644 index 0000000..250ba83 --- /dev/null +++ b/gas/testsuite/gas/riscv/x-thead-fmv.s @@ -0,0 +1,3 @@ +target: + th.fmv.hw.x a0, fa1 + th.fmv.x.hw a1, fa0 |