mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:15:31 +00:00
target/mips: Remove floatX_maybe_silence_nan from conversions
This is now handled properly by the generic softfloat code. Backports commit 4accd4a89f776b0d2a34d1edf74c785549c7f3b9 from qemu
This commit is contained in:
parent
4e9ca91bb2
commit
4c8b31e7fe
|
@ -1614,7 +1614,6 @@ static inline float16 float16_from_float32(int32_t a, flag ieee, float_status *s
|
|||
float16 f_val;
|
||||
|
||||
f_val = float32_to_float16((float32)a, ieee , status);
|
||||
f_val = float16_maybe_silence_nan(f_val, status);
|
||||
|
||||
return a < 0 ? (f_val | (1 << 15)) : f_val;
|
||||
}
|
||||
|
@ -1624,7 +1623,6 @@ static inline float32 float32_from_float64(int64_t a, float_status *status)
|
|||
float32 f_val;
|
||||
|
||||
f_val = float64_to_float32((float64)a, status);
|
||||
f_val = float32_maybe_silence_nan(f_val, status);
|
||||
|
||||
return a < 0 ? (f_val | (1 << 31)) : f_val;
|
||||
}
|
||||
|
@ -1634,7 +1632,6 @@ static inline float32 float32_from_float16(int16_t a, flag ieee, float_status *s
|
|||
float32 f_val;
|
||||
|
||||
f_val = float16_to_float32((float16)a, ieee, status);
|
||||
f_val = float32_maybe_silence_nan(f_val, status);
|
||||
|
||||
return a < 0 ? (f_val | (1 << 31)) : f_val;
|
||||
}
|
||||
|
@ -1644,7 +1641,6 @@ static inline float64 float64_from_float32(int32_t a, float_status *status)
|
|||
float64 f_val;
|
||||
|
||||
f_val = float32_to_float64((float64)a, status);
|
||||
f_val = float64_maybe_silence_nan(f_val, status);
|
||||
|
||||
return a < 0 ? (f_val | (1ULL << 63)) : f_val;
|
||||
}
|
||||
|
|
|
@ -2690,7 +2690,6 @@ uint64_t helper_float_cvtd_s(CPUMIPSState *env, uint32_t fst0)
|
|||
uint64_t fdt2;
|
||||
|
||||
fdt2 = float32_to_float64(fst0, &env->active_fpu.fp_status);
|
||||
fdt2 = float64_maybe_silence_nan(fdt2, &env->active_fpu.fp_status);
|
||||
update_fcr31(env, GETPC());
|
||||
return fdt2;
|
||||
}
|
||||
|
@ -2780,7 +2779,6 @@ uint32_t helper_float_cvts_d(CPUMIPSState *env, uint64_t fdt0)
|
|||
uint32_t fst2;
|
||||
|
||||
fst2 = float64_to_float32(fdt0, &env->active_fpu.fp_status);
|
||||
fst2 = float32_maybe_silence_nan(fst2, &env->active_fpu.fp_status);
|
||||
update_fcr31(env, GETPC());
|
||||
return fst2;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue