diff options
author | Nick Clifton <nickc@redhat.com> | 2017-09-27 16:21:36 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-09-27 16:21:36 +0100 |
commit | 8e43602e34ba404d82f7c74f6629f01e40c740e0 (patch) | |
tree | 6eff6a48f8a4cd5c54a4ea7f14ae251b1a06dfb7 /gas | |
parent | f21b4d5c59136c38bb6d94eb6a29ad80d02043f4 (diff) | |
download | gdb-8e43602e34ba404d82f7c74f6629f01e40c740e0.zip gdb-8e43602e34ba404d82f7c74f6629f01e40c740e0.tar.gz gdb-8e43602e34ba404d82f7c74f6629f01e40c740e0.tar.bz2 |
Add support for the new names of the RISC-V fmv.x.s and fmv.s.x instructions, vis: fmv.x.w and fmv.w.x.
PR 22179
opcodes * riscv-opc.c (riscv_opcodes): Add fmv.x.w and fmv.w.x as the new
names for the fmv.x.s and fmv.s.x instructions respectively.
gas * testsuite/gas/riscv/fmv.x.s: New file: Tests the support for the
renamed fmv.x.s and fmv.s.x instructions.
* testsuite/gas/riscv/fmv.x.d: New file: Test driver.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/fmv.x.d | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/fmv.x.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/riscv.exp | 1 |
4 files changed, 25 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 8554dd5..acf75a9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2017-09-27 Nick Clifton <nickc@redhat.com> + + PR 22179 + * testsuite/gas/riscv/fmv.x.s: New file: Tests the support for the + renamed fmv.x.s and fmv.s.x instructions. + * testsuite/gas/riscv/fmv.x.d: New file: Test driver. + 2017-09-21 Maciej W. Rozycki <macro@imgtec.com> * testsuite/gas/mips/elf_mach_5900.d: New test. diff --git a/gas/testsuite/gas/riscv/fmv.x.d b/gas/testsuite/gas/riscv/fmv.x.d new file mode 100644 index 0000000..7392e0c --- /dev/null +++ b/gas/testsuite/gas/riscv/fmv.x.d @@ -0,0 +1,13 @@ +#as: +#objdump: -dr + +.*:[ ]+file format .* + + +Disassembly of section .text: + +0+000 <.text>: +[ ]+0:[ ]+e00b8653[ ]+fmv.x.w[ ]+a2,fs7 +[ ]+4:[ ]+e00b8653[ ]+fmv.x.w[ ]+a2,fs7 +[ ]+8:[ ]+f00800d3[ ]+fmv.w.x[ ]+ft1,a6 +[ ]+c:[ ]+f00800d3[ ]+fmv.w.x[ ]+ft1,a6 diff --git a/gas/testsuite/gas/riscv/fmv.x.s b/gas/testsuite/gas/riscv/fmv.x.s new file mode 100644 index 0000000..a16feda --- /dev/null +++ b/gas/testsuite/gas/riscv/fmv.x.s @@ -0,0 +1,4 @@ +fmv.x.w a2, fs7 +fmv.x.s a2, fs7 +fmv.w.x ft1, a6 +fmv.s.x ft1, a6 diff --git a/gas/testsuite/gas/riscv/riscv.exp b/gas/testsuite/gas/riscv/riscv.exp index 6922318..005238f 100644 --- a/gas/testsuite/gas/riscv/riscv.exp +++ b/gas/testsuite/gas/riscv/riscv.exp @@ -20,4 +20,5 @@ if [istarget riscv*-*-*] { run_dump_test "t_insns" + run_dump_test "fmv.x" } |