From e48682ddaa8c553fe36a01be9fa07e2556a640df Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Tue, 11 May 2010 18:30:34 -0700 Subject: MIPS: Restore signalling NaN behaviour for abs.[sd] Atsushi Nemoto spotted that this had been incorrectly removed in a previous patch Signed-off-by: Chris Dearman To: linux-mips@linux-mips.org Patchwork: http://patchwork.linux-mips.org/patch/1213/ Tested-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- arch/mips/math-emu/dp_simple.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/mips/math-emu/dp_simple.c') diff --git a/arch/mips/math-emu/dp_simple.c b/arch/mips/math-emu/dp_simple.c index d9ae1dbabda7..b90974246e5b 100644 --- a/arch/mips/math-emu/dp_simple.c +++ b/arch/mips/math-emu/dp_simple.c @@ -78,6 +78,7 @@ ieee754dp ieee754dp_abs(ieee754dp x) DPSIGN(x) = 0; if (xc == IEEE754_CLASS_SNAN) { + SETCX(IEEE754_INVALID_OPERATION); return ieee754dp_nanxcpt(ieee754dp_indef(), "abs"); } -- cgit v1.2.3-55-g7522