2008-08-22 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / iltests.il.in
index ddb33a4af136a19712639145eeeac365976b8cfa..44359946250f2ac56a25469502fbd4ff1cdb6ede 100644 (file)
@@ -563,16 +563,33 @@ COND:   ldloc.0
 #endif
 
        .method public static int32 test_5_jmp () cil managed {
-               jmp int32 Tests::jmp2 ()
-               ldc.i4.0
+               ldc.i4.1
+               ldc.i4.2
+               call int32 Tests::jmp2 (int32, int32)
                ret
        }
 
-       .method public static int32 jmp2 () cil managed {
-               ldc.i4.5
+       .method public static int32 jmp2 (int32, int32) cil managed {
+               ldarg.0
+               ldc.i4.1
+               add
+               starg.s 0
+               ldarg.1
+               ldc.i4.1
+               add
+               starg.s 1
+               jmp int32 Tests::jmp3 (int32, int32)
+               ldc.i4.0
                ret
        }               
 
+       .method public static int32 jmp3 (int32 i, int32 j) cil managed {
+               ldarg.0
+               ldarg.1
+               add
+               ret
+       }
+
        .method static public int32 test_11_switch_with_nonempty_stack () il managed {
                .maxstack 16
 
@@ -885,6 +902,21 @@ COND:   ldloc.0
                ret
        }
 
+       .method public static int32 test_0_fconv_to_i () cil managed {
+               .maxstack 16
+
+               ldc.r8 2147483648.0
+               conv.i
+               ldc.i8 2147483648
+               conv.i
+               beq L1
+               ldc.i4.1
+               ret
+       L1:
+               ldc.i4.0
+               ret
+       }
+
        .method public static int32 test_0_get_type_from_handle_on_bblock_boundary () cil managed 
        {
                .maxstack 16
@@ -1851,4 +1883,37 @@ HAS_VALUE:       ldc.i4.1
                        ldc.i4.0
                        ret                     
        }
+
+    .method public static int32 test_0_stelem_any_null_opt () cil managed
+    {
+               .maxstack 16
+               .locals init (
+                               object[]        V_0,
+                               int32   V_1)
+
+               ldc.i4.s 10
+               newarr [mscorlib]System.Object
+               stloc.0
+
+               ldc.i4.0
+               stloc.1
+               br L0
+
+       L1:
+               ldloc.0
+               ldloc.1
+               ldnull
+               stelem.any [mscorlib]System.Object
+               ldloc.1
+               ldc.i4.1
+               add
+               stloc.1
+       L0:
+               ldloc.1
+               ldc.i4.s 10
+               blt L1
+
+               ldc.i4.0
+               ret
+       }
 }