Commit 091a3516 authored by Richard Henderson's avatar Richard Henderson
Browse files

target/openrisc: Fix lf.ftoi.s



The specification of this insn is round-to-zero.

Reviewed-by: default avatarStafford Horne <shorne@gmail.com>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 8bebf7d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ uint64_t HELPER(ftoid)(CPUOpenRISCState *env, uint64_t val)

uint32_t HELPER(ftois)(CPUOpenRISCState *env, uint32_t val)
{
    return float32_to_int32(val, &env->fp_status);
    return float32_to_int32_round_to_zero(val, &env->fp_status);
}

#define FLOAT_CALC(name)                                                  \