diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-08-26 15:15:05 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-09-04 12:51:56 -0700 |
commit | 091a35165f206718ecce1f0ddf42563b81086170 (patch) | |
tree | 64b774a62711d3f3b502033fc6851d30a9928b58 | |
parent | 8bebf7d1349d52355c5b71ca415e6ed86cb2d4d2 (diff) |
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>
-rw-r--r-- | target/openrisc/fpu_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/openrisc/fpu_helper.c b/target/openrisc/fpu_helper.c index b9d2ebbb8c..4cc5b297c5 100644 --- a/target/openrisc/fpu_helper.c +++ b/target/openrisc/fpu_helper.c @@ -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) \ |