2 .assembly extern TestDriver {}
3 .assembly extern mscorlib {}
5 .class public auto ansi sealed beforefieldinit Tests {
7 .method static public int32 Main() il managed {
11 call class [mscorlib]System.Type [mscorlib]System.Type::GetTypeFromHandle(valuetype [mscorlib]System.RuntimeTypeHandle)
12 call int32 [TestDriver]TestDriver::RunTests(class [mscorlib]System.Type)
16 // make sure the register allocator works when the return value of
18 .method static public int32 test_0_div_regalloc () il managed {
32 .method static public int32 test_1_ceq_to_i4 () il managed {
46 .method static public int32 test_3_shl_regvars () il managed {
93 .method static public int32 test_1_fceq_to_i4 () il managed {
113 // This should be manually checked. Basically under -O=linears,
114 // you should not see tons of register spilling.
116 .method static public int32 test_1_bytedreg_free () il managed {
152 // This should be manually checked. Basically under -O=linears,
153 // you should not see tons of register spilling.
155 .method static public int32 test_0_bytesreg1_free () il managed {
194 .method static public int32 test_1_shift_regvar () il managed {
215 // this only happens with the managed pointer, not an unmanaged one.
216 .method static public int32 test_0_foo () il managed {
233 .method static public int32 test_0_localloc () cil managed {
234 .locals init (native int, native int, native int)
277 .method private static void do_localloc () cil managed {
282 IL_0001: ldc.i4 131072
289 // Check that localloc can't be inlined
290 .method static public int32 test_0_localloc_inline () cil managed {
300 START: call void class Tests::do_localloc()
313 .method static public int32 test_3_copy_used_bug () il managed {
339 // demonstrate that the copy_used_var is not a fix for the above bug
340 .method static public int32 test_3_copy_used_indir_bug () il managed {
367 .method static public void do_nothing (int32 a) il managed {
371 // demonstrate the block_split failure: needs -O=inline
372 // mini -O=inline --compile Tests:test_0_split_block_bug iltests.exe
373 .method static public int32 test_0_split_block_bug () il managed {
383 call void class Tests::do_nothing (int32)
391 .method public void inline_do_nothing () il managed {
394 .method static public int32 test_1_checkthis_inlining () il managed {
396 call instance void class Tests::inline_do_nothing ()
401 .class nested private auto ansi sealed beforefieldinit TailCallStruct
402 extends [mscorlib]System.ValueType {
403 .field public int32 a
404 .field public int32 b
407 .method static valuetype Tests/TailCallStruct tail1 (valuetype Tests/TailCallStruct arg) {
410 ldfld int32 Tests/TailCallStruct::a
413 stfld int32 Tests/TailCallStruct::a
416 ldfld int32 Tests/TailCallStruct::a
419 stfld int32 Tests/TailCallStruct::a
424 .method static valuetype Tests/TailCallStruct tail2 (valuetype Tests/TailCallStruct arg) {
427 call valuetype Tests/TailCallStruct Tests::tail1 (valuetype Tests/TailCallStruct)
431 .method static public int32 test_0_tail_calls () il managed {
434 valuetype Tests/TailCallStruct arg
438 stfld int32 Tests/TailCallStruct::a
441 stfld int32 Tests/TailCallStruct::b
443 call valuetype Tests/TailCallStruct Tests::tail2 (valuetype Tests/TailCallStruct)
446 ldfld int32 Tests/TailCallStruct::a
448 ldfld int32 Tests/TailCallStruct::b
455 .method static public int32 test_11_switch_with_nonempty_stack () il managed {
470 .method public static int32 test_5_endfinally_with_nonempty_stack () il managed {
484 .method public static int32 test_0_conv_ovf_i8_neg () il managed {
499 .method public static int32 test_0_get_type_from_handle_on_bblock_boundary () cil managed
507 ldtoken [mscorlib]System.String
510 ldtoken [mscorlib]System.Object
512 call class [mscorlib]'System.Type' class [mscorlib]'System.Type'::'GetTypeFromHandle'(valuetype [mscorlib]'System.RuntimeTypeHandle')
513 callvirt string class [mscorlib]System.Type::get_FullName ()
514 ldstr "System.String"
515 callvirt bool class [mscorlib]System.Object::Equals(object)
521 .method public static int32 test_0_bug59580 ()
523 ldc.r4 float32(0x7FC00000)
524 ldc.r4 float32(0x7FC00000)
535 .method public static int32 test_1_bug60056 () {
536 .locals init (int32 m5)
554 .method public static int32 test_1_conv_u8_cfold () {
558 ldc.i8 0x00000000ffffffff