Skip to content

Commit

Permalink
target/openrisc: Fix lf.ftoi.s
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 committed Sep 4, 2019
1 parent 8bebf7d commit 091a351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/openrisc/fpu_helper.c
Expand Up @@ -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) \
Expand Down

0 comments on commit 091a351

Please sign in to comment.