]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/math-emu/sp_simple.c
MIPS: Restore signalling NaN behaviour for abs.[sd]
[net-next-2.6.git] / arch / mips / math-emu / sp_simple.c
index 3175477d36f6a57690bcbb5535458d29550758bc..2fd53c920e9907ce93219b16c4b0174313194e87 100644 (file)
@@ -78,6 +78,7 @@ ieee754sp ieee754sp_abs(ieee754sp x)
        SPSIGN(x) = 0;
 
        if (xc == IEEE754_CLASS_SNAN) {
+               SETCX(IEEE754_INVALID_OPERATION);
                return ieee754sp_nanxcpt(ieee754sp_indef(), "abs");
        }