[jit] Disable the optimization added by 63eb94e451a59491034516f2ec9f27d586b34d86...
[mono.git] / mono / mini / basic-float.cs
index 9a48e772f13697afed6f587cb98679ede03cd4da..11e3e2725b181f350d220009244a4f37b72986ec 100644 (file)
@@ -80,6 +80,20 @@ class Tests
                sbyte sb = (sbyte)a;
                if (sb != 2)
                        return 6;
+               /* MS.NET special cases these */
+               double d = Double.NaN;
+               ui = (uint)d;
+               if (ui != 0)
+                       return 7;
+               d = Double.PositiveInfinity;
+               ui = (uint)d;
+               if (ui != 0)
+                       return 8;
+               d = Double.NegativeInfinity;
+               ui = (uint)d;
+               if (ui != 0)
+                       return 9;
+
                return 0;
        }