From 027eac1db6070ddb9728be0210ad9051bd18c483 Mon Sep 17 00:00:00 2001 From: Chris Dearman Date: Tue, 11 May 2010 18:30:34 -0700 Subject: [PATCH] --- yaml --- r: 200816 b: refs/heads/master c: e48682ddaa8c553fe36a01be9fa07e2556a640df h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/math-emu/dp_simple.c | 1 + trunk/arch/mips/math-emu/sp_simple.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 28ddead7b12a..9ec0002fa5c8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4085467060dc31c8d1201f69e52529a08e2c2407 +refs/heads/master: e48682ddaa8c553fe36a01be9fa07e2556a640df diff --git a/trunk/arch/mips/math-emu/dp_simple.c b/trunk/arch/mips/math-emu/dp_simple.c index d9ae1dbabda7..b90974246e5b 100644 --- a/trunk/arch/mips/math-emu/dp_simple.c +++ b/trunk/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"); } diff --git a/trunk/arch/mips/math-emu/sp_simple.c b/trunk/arch/mips/math-emu/sp_simple.c index 3175477d36f6..2fd53c920e99 100644 --- a/trunk/arch/mips/math-emu/sp_simple.c +++ b/trunk/arch/mips/math-emu/sp_simple.c @@ -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"); }