[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/6] target/riscv: NaN-boxing for multiple precison
From: |
LIU Zhiwei |
Subject: |
[PATCH 0/6] target/riscv: NaN-boxing for multiple precison |
Date: |
Sat, 27 Jun 2020 04:59:11 +0800 |
Multiple precison shoule be supported by NaN-boxing. That means, we should
flush not valid NaN-boxing input to canonical NaN before effective
calculation and we should NaN-boxing the result after the effective
calculation.
In this patch set, split the implementation to three steps for compute,
sign-injection, and some covert insns, which are check_nanboxed,
effective calculation and gen_nanbox_fpr.
Check_nanboxed checks the inputs and flushes not valid inputs to cancical NaN.
Effective calculation is direct calculation on fp32 values.
Gen_nanbox_fpr does the NaN-boxing, writing the 1s to upper 32 bits.
LIU Zhiwei (6):
target/riscv: move gen_nanbox_fpr to translate.c
target/riscv: NaN-boxing compute, sign-injection and convert
instructions.
target/riscv: Check for LEGAL NaN-boxing
target/riscv: check before allocating TCG temps
target/riscv: Flush not valid NaN-boxing input to canonical NaN
target/riscv: clean up fmv.w.x
target/riscv/insn_trans/trans_rvd.inc.c | 16 +-
target/riscv/insn_trans/trans_rvf.inc.c | 317 +++++++++++++++++++-----
target/riscv/translate.c | 43 ++++
3 files changed, 306 insertions(+), 70 deletions(-)
--
2.23.0
- [PATCH 0/6] target/riscv: NaN-boxing for multiple precison,
LIU Zhiwei <=
- [PATCH 1/6] target/riscv: move gen_nanbox_fpr to translate.c, LIU Zhiwei, 2020/06/26
- [PATCH 2/6] target/riscv: NaN-boxing compute, sign-injection and convert instructions., LIU Zhiwei, 2020/06/26
- [PATCH 3/6] target/riscv: Check for LEGAL NaN-boxing, LIU Zhiwei, 2020/06/26
- [PATCH 4/6] target/riscv: check before allocating TCG temps, LIU Zhiwei, 2020/06/26
- [PATCH 5/6] target/riscv: Flush not valid NaN-boxing input to canonical NaN, LIU Zhiwei, 2020/06/26
- [PATCH 6/6] target/riscv: clean up fmv.w.x, LIU Zhiwei, 2020/06/26