diff options
author | Tsukasa #01 (a4lg) <research_trasio@irq.a4lg.com> | 2021-12-08 11:28:44 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 18:28:44 -0800 |
commit | a68c7b12e6b9e9b9abd7ad1cee05c4a8432719ec (patch) | |
tree | 5ce0295f0e44d09ed9c87accc75bd6f4228a0197 /riscv/insns/flh.h | |
parent | 9b3b305e42d9427618b08c33b5dfe1b5180b9f43 (diff) | |
download | spike-a68c7b12e6b9e9b9abd7ad1cee05c4a8432719ec.zip spike-a68c7b12e6b9e9b9abd7ad1cee05c4a8432719ec.tar.gz spike-a68c7b12e6b9e9b9abd7ad1cee05c4a8432719ec.tar.bz2 |
Add 'Zfhmin' extension (#880)
Zfhmin is a subset of Zfh (half-precision IEEE 754 binary16 floating
point) extension, consisting only of data transfer and conversion
instructions.
This commit adds `EXT_ZFHMIN` to `isa_extension_t`, permits "zfhmin"
as a multi-letter extension and adjusts feature gate for
data transfer / conversion instructions.
* FLH / FSH
* FMV.X.H / FMV.H.X
* FCVT.S.H / FCVT.H.S
* FCVT.D.H / FCVT.H.D (if 'D' extension is also present)
* FCVT.Q.H / FCVT.H.Q (if 'Q' extension is also present)
Diffstat (limited to 'riscv/insns/flh.h')
-rw-r--r-- | riscv/insns/flh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/flh.h b/riscv/insns/flh.h index c887999..bdb22d3 100644 --- a/riscv/insns/flh.h +++ b/riscv/insns/flh.h @@ -1,3 +1,3 @@ -require_extension(EXT_ZFH); +require_extension(EXT_ZFHMIN); require_fp; WRITE_FRD(f16(MMU.load_uint16(RS1 + insn.i_imm()))); |