fixup! Dyncom/VFP: Convert denormal outputs into 0 when the FTZ flag is enabled.
This commit is contained in:
parent
b1a29371c9
commit
5b46a89230
|
@ -140,11 +140,9 @@ u32 vfp_double_normaliseround(ARMul_State* state, int dd, struct vfp_double* vd,
|
||||||
|
|
||||||
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
||||||
// Flush denormal to positive 0
|
// Flush denormal to positive 0
|
||||||
exponent = 0;
|
|
||||||
significand = 0;
|
significand = 0;
|
||||||
|
|
||||||
vd->sign = 0;
|
vd->sign = 0;
|
||||||
vd->exponent = exponent;
|
|
||||||
vd->significand = significand;
|
vd->significand = significand;
|
||||||
|
|
||||||
underflow = 0;
|
underflow = 0;
|
||||||
|
|
|
@ -143,11 +143,9 @@ u32 vfp_single_normaliseround(ARMul_State* state, int sd, struct vfp_single* vs,
|
||||||
|
|
||||||
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
if ((type & VFP_DENORMAL) && (fpscr & FPSCR_FLUSH_TO_ZERO)) {
|
||||||
// Flush denormal to positive 0
|
// Flush denormal to positive 0
|
||||||
exponent = 0;
|
|
||||||
significand = 0;
|
significand = 0;
|
||||||
|
|
||||||
vs->sign = 0;
|
vs->sign = 0;
|
||||||
vs->exponent = exponent;
|
|
||||||
vs->significand = significand;
|
vs->significand = significand;
|
||||||
|
|
||||||
underflow = 0;
|
underflow = 0;
|
||||||
|
|
Reference in New Issue