|
From: | Richard Henderson |
Subject: | Re: [PATCH] target/riscv: Fix froundnx.h nanbox check |
Date: | Thu, 20 Jun 2024 21:22:30 -0700 |
User-agent: | Mozilla Thunderbird |
On 6/8/24 14:45, Branislav Brzak wrote:
t/riscv/fpu_helper.c b/target/riscv/fpu_helper.c index 871a70a316..91b1a56d10 100644 --- a/target/riscv/fpu_helper.c +++ b/target/riscv/fpu_helper.c @@ -676,7 +676,7 @@ uint64_t helper_fround_h(CPURISCVState *env, uint64_t rs1)uint64_t helper_froundnx_h(CPURISCVState *env, uint64_t rs1){ - float16 frs1 = check_nanbox_s(env, rs1); + float16 frs1 = check_nanbox_h(env, rs1); frs1 = float16_round_to_int(frs1, &env->fp_status); return nanbox_h(env, frs1); }
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |