X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Filtests.il;h=1bc5a2cf720e6ea557da34f5fc621c3d13875b96;hb=3aeeae6230445e3544fde47221edf45f5230a316;hp=b5796520341be55f2ba19929cf8b695cde1a2395;hpb=7cec5b71231cfc136d6d70428370b3f7e0465051;p=mono.git diff --git a/mono/mini/iltests.il b/mono/mini/iltests.il index b5796520341..1bc5a2cf720 100644 --- a/mono/mini/iltests.il +++ b/mono/mini/iltests.il @@ -3044,4 +3044,62 @@ L_3: valuetype [mscorlib]System.Decimal) IL_0028: ret } + + .method private hidebysig static void fail_inline() cil managed + { + // Code size 9 (0x9) + .maxstack 8 + IL_0000: ldc.i4.s 16 + IL_0002: conv.u + IL_0003: ldc.i4.1 + IL_0004: mul.ovf.un + IL_0005: localloc + IL_0007: pop + IL_0008: ret + } + + .method private hidebysig static int32 + always_inline(int32 op) cil managed aggressiveinlining + { + // Code size 24 (0x18) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: brfalse.s IL_0009 + + IL_0003: ldarg.0 + IL_0004: ldc.i4.2 + IL_0005: beq.s IL_000b + + IL_0007: br.s IL_000d + + IL_0009: ldc.i4.0 + IL_000a: ret + + IL_000b: ldc.i4.3 + IL_000c: ret + + IL_000d: call void Tests::fail_inline() + IL_0012: newobj instance void [mscorlib]System.Exception::.ctor() + IL_0017: throw + } + + .method public hidebysig static int32 test_3_regress_59608() cil managed + { + .maxstack 8 + IL_0000: ldc.i4.2 + IL_0001: call int32 Tests::always_inline(int32) + IL_000c: ret + } + + .method public hidebysig static int32 test_104_conv_u_and_string() cil managed + { + .maxstack 8 + ldstr "hello" + conv.u + call int32 [mscorlib]System.Runtime.CompilerServices.RuntimeHelpers::get_OffsetToStringData() + add + ldind.u2 + ret + } + }