Skip to content

Commit

Permalink
target/ppc: Use helper_todouble in do_frsp
Browse files Browse the repository at this point in the history
We only needed one ieee arithmetic operation to raise
exceptions.  To convert back to register form, we can
use our simpler non-arithmetic function.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211119160502.17432-24-richard.henderson@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
  • Loading branch information
rth7680 authored and legoater committed Dec 17, 2021
1 parent 734cfbd commit 58c7ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/ppc/fpu_helper.c
Expand Up @@ -729,7 +729,7 @@ static uint64_t do_frsp(CPUPPCState *env, uint64_t arg, uintptr_t retaddr)
if (unlikely(flags & float_flag_invalid_snan)) {
float_invalid_op_vxsnan(env, retaddr);
}
return float32_to_float64(f32, &env->fp_status);
return helper_todouble(f32);
}

uint64_t helper_frsp(CPUPPCState *env, uint64_t arg)
Expand Down

0 comments on commit 58c7ede

Please sign in to comment.