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:
parent
8bebf7d134
commit
091a35165f
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user