aboutsummaryrefslogtreecommitdiff
path: root/opcodes/frv-opc.h
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2020-03-26 18:38:27 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-07-22 17:24:47 +0800
commit9706e698b79ac00bcc9bb93f3347b768a3817dc2 (patch)
tree866cde352fd7e6778750c6009f2053c9377f4327 /opcodes/frv-opc.h
parent2fde1f4f215caefd0f59ea0be98d7a36461177bc (diff)
downloadfsf-binutils-gdb-9706e698b79ac00bcc9bb93f3347b768a3817dc2.zip
fsf-binutils-gdb-9706e698b79ac00bcc9bb93f3347b768a3817dc2.tar.gz
fsf-binutils-gdb-9706e698b79ac00bcc9bb93f3347b768a3817dc2.tar.bz2
RISC-V/zfh: Add half-precision floating-point v0.1 instructions.
This patch is porting from the following riscv github, https://github.com/riscv/riscv-binutils-gdb/commits/rvv-1.0.x-zfh And here is the draft zfh spec, https://github.com/riscv/riscv-isa-manual/tree/zfh bfd/ * elfxx-riscv.c (riscv_std_draft_ext_strtab): Added zfh. (riscv_implicit_subset): Add implicit f and zicsr for zfh. gas/ * config/tc-riscv.c (extended_ext_version_table): Added default version of zfh to v0.1. (riscv_extended_subset_supports): Handle INSN_CLASS*_ZFH. (extended_macro): Handle M_FLH and M_FSH. * testsuite/gas/riscv/extended/extended.exp: Updated. * testsuite/gas/riscv/extended/fp-zfh-insns.d: New testcase. * testsuite/gas/riscv/extended/fp-zfh-insns.s: Likewise. include/ * opcode/riscv-opc-extended.h: Added zfh encoding macros and DECLARE_INSN. * opcode/riscv.h (enum riscv_extended_insn_class): Added INSN_CLASS*_ZFH. (enum M_FLH, M_FSH): Added. opcodes/ * riscv-opc.c (riscv_draft_opcodes): Added zfh instructions.
Diffstat (limited to 'opcodes/frv-opc.h')
0 files changed, 0 insertions, 0 deletions