diff options
author | Jim Wilson <jimw@sifive.com> | 2019-11-12 16:13:00 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2019-11-12 16:13:00 -0800 |
commit | 7722d40a9c412d26c30db8af5005b36de5618737 (patch) | |
tree | 37bc13ff53e7dc1bc0ef1040b7ef5e5a625c5b58 /gas | |
parent | 31175a0d7167ab7f98878076be02dc4330b825bb (diff) | |
download | gdb-7722d40a9c412d26c30db8af5005b36de5618737.zip gdb-7722d40a9c412d26c30db8af5005b36de5618737.tar.gz gdb-7722d40a9c412d26c30db8af5005b36de5618737.tar.bz2 |
RISC-V: Support the INSN_CLASS.*F.* classes for .insn directive.
We have to enable the f extension through -march or ELF attribute if we use the
FPR in .insn directive. The behavior is same as the riscv_opcodes.
2019-11-12 Nelson Chu <nelson.chu@sifive.com>
opcodes/
* riscv-opc.c (riscv_insn_types): Replace the INSN_CLASS_I with
INSN_CLASS_F and the INSN_CLASS_C with INSN_CLASS_F_AND_C if we
use the floating point register (FPR).
gas/
* testsuite/gas/riscv/insn.d: Add the f extension to -march option.
Change-Id: I4f59d04c82673ef84c56ecd2659ad8ce164dd626
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/riscv/insn.d | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d0ce992..0094366 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2019-11-12 Nelson Chu <nelson.chu@sifive.com> + + * testsuite/gas/riscv/insn.d: Add the f extension to -march option. + 2019-11-12 Mihail Ionescu <mihail.ionescu@arm.com> * config/tc-arm.c (do_vfp_nsyn_push): Move in order to enable it for diff --git a/gas/testsuite/gas/riscv/insn.d b/gas/testsuite/gas/riscv/insn.d index 47b3a8e..8f0badf 100644 --- a/gas/testsuite/gas/riscv/insn.d +++ b/gas/testsuite/gas/riscv/insn.d @@ -1,4 +1,4 @@ -#as: -march=rv32ic +#as: -march=rv32ifc #objdump: -dr .*:[ ]+file format .* |