MIPS64: Fix Math.ceil/floor intrinsics
The latest MIPS64R6 emulator supports NAN2008 standard. When
FCSR.NAN2008=1 (required from R6) ceil.l.d and floor.l.d instructions
will return -2^63 when the input value is smaller than -2^63. This
wasn't the case when FCSR.NAN2008=0. In that case, result from the
instructions was 2^63-1 when the input value was smaller than -2^63.
This fixes test 082-inline-execute.
Test: ./testrunner.py --target --optimizing --64 -j1 (in QEMU)
Change-Id: I3d2cdd1d55b3694549f88f4f5b903a0c4f1c0d09
1 file changed