2003-11-16 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Sun, 16 Nov 2003 15:02:57 +0000 (15:02 -0000)
committerZoltan Varga <vargaz@gmail.com>
Sun, 16 Nov 2003 15:02:57 +0000 (15:02 -0000)
* iltests.il (test_0_div_regalloc): New regression test.

svn path=/trunk/mono/; revision=20063

mono/mini/ChangeLog
mono/mini/iltests.il

index c188f3d6ea9341e23e5abb25f3f753d8a1876e00..a24187c75e13fe429f3494eed2fe1687312928b1 100644 (file)
@@ -1,5 +1,7 @@
 2003-11-16  Zoltan Varga  <vargaz@freemail.hu>
 
+       * iltests.il (test_0_div_regalloc): New regression test.
+
        * arrays.cs: Fix compilation error.
 
 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
index d397cc40fdf448c587c2f3c0e54dcd08c7affd9b..384e77cb991ada19b59706f576ad04f3e74bf53d 100644 (file)
                ret\r
        }\r
 \r
+       // make sure the register allocator works when the return value of\r
+       // 'div' is discarded\r
+       .method static public int32 test_0_div_regalloc () il managed {\r
+               .locals init (\r
+                       int32 i\r
+               )\r
+\r
+               ldloc 0\r
+               ldc.i4.s 0xa\r
+               div\r
+               pop\r
+               ldc.i4.0\r
+               ret\r
+       }\r
+\r
        .method static public int32 test_3_copy_used_bug () il managed {\r
 \r
                .locals init (\r