aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-ppc/op_helper.c')
-rw-r--r--target-ppc/op_helper.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c
index 17a99768d9..b8e5538587 100644
--- a/target-ppc/op_helper.c
+++ b/target-ppc/op_helper.c
@@ -1502,6 +1502,7 @@ uint64_t helper_fsqrt (uint64_t arg)
uint64_t helper_fre (uint64_t arg)
{
CPU_DoubleU farg;
+ farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN reciprocal */
@@ -1515,8 +1516,9 @@ uint64_t helper_fre (uint64_t arg)
/* fres - fres. */
uint64_t helper_fres (uint64_t arg)
{
- CPU_Double farg;
+ CPU_DoubleU farg;
float32 f32;
+ farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN reciprocal */
@@ -1534,6 +1536,7 @@ uint64_t helper_frsqrte (uint64_t arg)
{
CPU_DoubleU farg;
float32 f32;
+ farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN reciprocal square root */