MIPS: math-emu: Don't pass qNaNs through quieting handlers
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 Apr 2015 22:25:30 +0000 (23:25 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Apr 2015 23:09:29 +0000 (01:09 +0200)
commit539bfb579babbe5a14b405370ecc99b4ed53bc4e
tree3ff8ef8e4a4d6796685b292f9a74f5fa1ecc7048
parentd19cf86e2e295b0406b5fa3a35609fb0a99f1bde
MIPS: math-emu: Don't pass qNaNs through quieting handlers

Don't call the `ieee754sp_nanxcpt' and `ieee754dp_nanxcpt' sNaN quieting
handlers for a qNaN supplied to floating-point format conversions or
SQRT.S/SQRT.D instructions, or for a qNaN produced out of a negative
operand supplied to SQRT.S/SQRT.D instructions.  Return the qNaN right
away in these cases.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9687/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/dp_fsp.c
arch/mips/math-emu/dp_sqrt.c
arch/mips/math-emu/sp_fdp.c
arch/mips/math-emu/sp_sqrt.c