mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/riscv: zfh: half-precision floating-point classify
Signed-off-by: Kito Cheng <kito.cheng@sifive.com> Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com> Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-id: 20211210074329.5775-6-frank.chang@sifive.com Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
11f9c450a6
commit
6bc6fc96d1
4 changed files with 20 additions and 0 deletions
|
@ -372,6 +372,18 @@ static bool trans_fle_h(DisasContext *ctx, arg_fle_h *a)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool trans_fclass_h(DisasContext *ctx, arg_fclass_h *a)
|
||||
{
|
||||
REQUIRE_FPU;
|
||||
REQUIRE_ZFH(ctx);
|
||||
|
||||
TCGv dest = dest_gpr(ctx, a->rd);
|
||||
|
||||
gen_helper_fclass_h(dest, cpu_fpr[a->rs1]);
|
||||
gen_set_gpr(ctx, a->rd, dest);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool trans_fcvt_w_h(DisasContext *ctx, arg_fcvt_w_h *a)
|
||||
{
|
||||
REQUIRE_FPU;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue