diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/vfp/vfpdouble.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/vfp/vfpdouble.c b/arch/arm/vfp/vfpdouble.c index b801cd66b6ea..9b367a65cb4d 100644 --- a/arch/arm/vfp/vfpdouble.c +++ b/arch/arm/vfp/vfpdouble.c | |||
@@ -770,6 +770,9 @@ vfp_double_add(struct vfp_double *vdd, struct vfp_double *vdn, | |||
770 | if ((s64)m_sig < 0) { | 770 | if ((s64)m_sig < 0) { |
771 | vdd->sign = vfp_sign_negate(vdd->sign); | 771 | vdd->sign = vfp_sign_negate(vdd->sign); |
772 | m_sig = -m_sig; | 772 | m_sig = -m_sig; |
773 | } else if (m_sig == 0) { | ||
774 | vdd->sign = (fpscr & FPSCR_RMODE_MASK) == | ||
775 | FPSCR_ROUND_MINUSINF ? 0x8000 : 0; | ||
773 | } | 776 | } |
774 | } else { | 777 | } else { |
775 | m_sig += vdn->significand; | 778 | m_sig += vdn->significand; |