MIPS: Ignore float->int overflow behaviour, as on PPC, ARM, and SPARC
authorDamien Diederen <dd@crosstwine.com>
Mon, 7 Feb 2011 22:22:40 +0000 (23:22 +0100)
committerDamien Diederen <dd@crosstwine.com>
Thu, 10 Feb 2011 23:08:13 +0000 (00:08 +0100)
From the comment:

$TARGET handles overflow by clipping, but this test assumes no overflow
handling.  According to ECMA the result of float->int conversion is undefined
if overflow occurs, so both behaviours are valid.

Commit contributed under the MIT/X11 license.

mono/mini/iltests.il.in

index 4b415de358b16d4ab72ded9883ffc45f12602134..c8de9d04510012c7770bad1ce5f7766b0d5d39bb 100644 (file)
@@ -967,7 +967,7 @@ COND:   ldloc.0
                ret
        }
 
-#if !defined(__ppc__) && !defined(__powerpc__) && !defined(__arm__) && !defined(__sparc__)
+#if !defined(__ppc__) && !defined(__powerpc__) && !defined(__arm__) && !defined(__sparc__) && !defined(__mips__)
        // PPC handles overflow by clipping, but this test assumes
        // no overflow handling.  According to ECMA the result of
        // float->int conversion is undefined if overflow occurs, so