target/openrisc: Fix lf.ftoi.s

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

Reviewed-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2019-08-26 15:15:05 -07:00
parent 8bebf7d134
commit 091a35165f

View File

@ -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) \