]> Git Repo - qemu.git/commitdiff
target/openrisc: Fix lf.ftoi.s
authorRichard Henderson <[email protected]>
Mon, 26 Aug 2019 22:15:05 +0000 (15:15 -0700)
committerRichard Henderson <[email protected]>
Wed, 4 Sep 2019 19:51:56 +0000 (12:51 -0700)
The specification of this insn is round-to-zero.

Reviewed-by: Stafford Horne <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
target/openrisc/fpu_helper.c

index b9d2ebbb8ce154599072d17118893bdd9152bc7d..4cc5b297c5c2bc27a9a93f5bf6ffaab5f8177d54 100644 (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)                                                  \
This page took 0.025366 seconds and 4 git commands to generate.