diff options
Diffstat (limited to 'arch/mips/math-emu/dp_sub.c')
-rw-r--r-- | arch/mips/math-emu/dp_sub.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips/math-emu/dp_sub.c b/arch/mips/math-emu/dp_sub.c index 2eb87cd23ba8..fc17a781b9ae 100644 --- a/arch/mips/math-emu/dp_sub.c +++ b/arch/mips/math-emu/dp_sub.c | |||
@@ -37,19 +37,20 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) | |||
37 | FLUSHYDP; | 37 | FLUSHYDP; |
38 | 38 | ||
39 | switch (CLPAIR(xc, yc)) { | 39 | switch (CLPAIR(xc, yc)) { |
40 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_QNAN): | ||
41 | case CLPAIR(IEEE754_CLASS_QNAN, IEEE754_CLASS_SNAN): | 40 | case CLPAIR(IEEE754_CLASS_QNAN, IEEE754_CLASS_SNAN): |
42 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_SNAN): | ||
43 | case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_SNAN): | 41 | case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_SNAN): |
44 | case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_SNAN): | 42 | case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_SNAN): |
45 | case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_SNAN): | 43 | case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_SNAN): |
46 | case CLPAIR(IEEE754_CLASS_INF, IEEE754_CLASS_SNAN): | 44 | case CLPAIR(IEEE754_CLASS_INF, IEEE754_CLASS_SNAN): |
45 | return ieee754dp_nanxcpt(y); | ||
46 | |||
47 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_SNAN): | ||
48 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_QNAN): | ||
47 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_ZERO): | 49 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_ZERO): |
48 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_NORM): | 50 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_NORM): |
49 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_DNORM): | 51 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_DNORM): |
50 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_INF): | 52 | case CLPAIR(IEEE754_CLASS_SNAN, IEEE754_CLASS_INF): |
51 | ieee754_setcx(IEEE754_INVALID_OPERATION); | 53 | return ieee754dp_nanxcpt(x); |
52 | return ieee754dp_nanxcpt(ieee754dp_indef()); | ||
53 | 54 | ||
54 | case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_QNAN): | 55 | case CLPAIR(IEEE754_CLASS_ZERO, IEEE754_CLASS_QNAN): |
55 | case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_QNAN): | 56 | case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_QNAN): |