Revert "[runtime] Avoid building a separate static library, use the shared object...
[mono.git] / mono / mini / iltests.il
index ddd09350921a0b1b0f6e093e58c27d16492b3b10..09c94309b70353d96b20dcc7a676d4e01665515b 100644 (file)
        
        // this only happens with the managed pointer, not an unmanaged one.
        .method static public int32 test_0_foo () il managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
        
                .locals init (
                        int32&  buf
        }
 
        .method static public int32 test_0_localloc () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .locals init (native int, native int, native int, native int, int32)
 
                ldc.i4 6
@@ -642,7 +640,6 @@ COND:   ldloc.0
        }
 
        .method static public int32 test_11_switch_with_nonempty_stack () il managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
 
                ldc.i4.5
@@ -755,7 +752,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_0_conv_ovf_u_un () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
 
                ldc.i4 1234
@@ -858,7 +854,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_0_lconv_ovf_u_un () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
 
                ldc.i4 1234
@@ -891,7 +886,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_0_lconv_to_ovf_u8_un () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
 
                ldc.i4 1234
@@ -908,7 +902,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_2_lconv_to_ovf_i4_un () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
                .locals init (int32 res)
 
@@ -1131,7 +1124,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_7_conv_ovf_u8_un () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
        .maxstack  2
         .locals    init (unsigned int64)
 
@@ -1218,7 +1210,6 @@ COND:   ldloc.0
    } // end of class xxx
 
        .method public static int32 test_0_newobj_vtype () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 6
                .locals init (
                        valuetype Tests/xxx V_0
@@ -1256,8 +1247,7 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_1_filters () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
-               // .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 08 21 42 49 54 43 4F 44 45 00 00 )          // ...!BITCODE..
+               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 08 21 42 49 54 43 4F 44 45 00 00 )          // ...!BITCODE..
                .maxstack 16
                .locals init (
                        int32 res
@@ -1305,7 +1295,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_5_cpobj () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 8
                .locals init (  
                                valuetype Tests/TheStruct v_0, 
@@ -1362,7 +1351,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_1_cpobj_reference () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 8
                .locals init (  
                                object v_0, 
@@ -1383,7 +1371,6 @@ COND:   ldloc.0
        }
 
        .method public static int32 test_1_initobj_reference () {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 8
                .locals init (  
                                object v_0
@@ -1823,7 +1810,6 @@ HAS_VALUE:        ldc.i4.1
 
        //Bug 372410
        .method static public int32 test_0_array_address_type_check () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .maxstack 16
                .locals init (object[] V_0,
                                          object[,] V_1)
@@ -2499,7 +2485,6 @@ OK_2:
 
        .method public static int32 test_2_leave_multiple_blocks_from_end ()
        {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .locals init (int32 V_0)
 
                .try {
@@ -2530,7 +2515,6 @@ END:
 
        .method public static int32 test_3_leave_multiple_blocks_from_hole ()
        {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .locals init (int32 V_0)
 
                .try {
@@ -2629,7 +2613,6 @@ END:
     }
 
        .method public static default int32 test_0_typespec_modopt () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                ldtoken class Tests modopt (Tests)
                pop
                ldc.i4.0
@@ -2645,7 +2628,6 @@ END:
        }
 
        .method public static default int32 test_1_sizeof_gshared () cil managed {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
            call   int32 Tests::SizeOfT<int8>()
                ldc.i4.1
                ceq
@@ -2707,7 +2689,6 @@ END:
        .method public static
                        default int32 test_0_llvm_regress_171 () cil managed
        {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                .locals init (
                        int32 i
                )
@@ -2730,7 +2711,6 @@ END:
        .method public static
                        default int32 test_4_ldfld_stfld_static () cil managed
        {
-               .custom instance void [TestDriver]CategoryAttribute::.ctor(string) = ( 01 00 0C 21 49 4E 54 45 52 50 52 45 54 45 52 00 00 )   // ...!INTERPRETER.
                ldnull
                ldc.i4 2
                stfld int32 Tests::static_a
@@ -2840,4 +2820,80 @@ END:
        pop
        ret
   }
+
+  .method public static int32 test_2_fault () cil managed
+  {
+       .maxstack 16
+       .locals init (int32 V_0)
+    IL_0000:  ldc.i4.0
+    IL_0001:  stloc.0
+    .try
+    {
+      .try
+      {
+        IL_0002:  newobj     instance void [mscorlib]System.Exception::.ctor()
+        IL_0007:  throw
+               leave.s    IL_0018
+      }  // end .try
+         fault
+      {
+        IL_0009:  ldloc.0
+        IL_000a:  ldc.i4.1
+        IL_000b:  add
+        IL_000c:  stloc.0
+                                 endfinally
+      }  // end handler
+      IL_000f:  leave.s    IL_0018
+
+    }  // end .try
+    catch [mscorlib]System.Object
+    {
+      IL_0011:  pop
+      IL_0012:  ldloc.0
+      IL_0013:  ldc.i4.1
+      IL_0014:  add
+      IL_0015:  stloc.0
+      IL_0016:  leave.s    IL_0018
+
+    }  // end handler
+    IL_0018:  ldloc.0
+       ret
+       }
+
+  .method public static int32 test_0_fault_no_exception () cil managed
+  {
+       .maxstack 16
+       .locals init (int32 V_0)
+    IL_0000:  ldc.i4.0
+    IL_0001:  stloc.0
+    .try
+    {
+      .try
+      {
+               leave.s    IL_0018
+      }  // end .try
+         fault
+      {
+        IL_0009:  ldloc.0
+        IL_000a:  ldc.i4.1
+        IL_000b:  add
+        IL_000c:  stloc.0
+                                 endfinally
+      }  // end handler
+      IL_000f:  leave.s    IL_0018
+
+    }  // end .try
+    catch [mscorlib]System.Object
+    {
+      IL_0011:  pop
+      IL_0012:  ldloc.0
+      IL_0013:  ldc.i4.1
+      IL_0014:  add
+      IL_0015:  stloc.0
+      IL_0016:  leave.s    IL_0018
+
+    }  // end handler
+    IL_0018:  ldloc.0
+       ret
+       }
 }