ret
}
-#if !defined(__ppc__) && !defined(__powerpc__) && !defined(__arm__) && !defined(__sparc__) && !defined(__mips__)
- // PPC handles overflow by clipping, but this test assumes
- // no overflow handling. According to ECMA the result of
- // float->int conversion is undefined if overflow occurs, so
- // both behaviours are valid.
- .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
- }
-#endif
-
.method public static int32 test_0_get_type_from_handle_on_bblock_boundary () cil managed
{
.maxstack 16
ret
}
+ .method public static default int32 test_1_sizeof_ref () cil managed {
+ call int32 Tests::SizeOfT<object>()
+ sizeof [mscorlib]System.IntPtr
+ ceq
+ ret
+ }
+
.field static public int32 volatile_int
.method public static default int32 test_5_volatile_load_store () cil managed {
ret
}
+ .field public static int32 static_a
+
+ .method public static
+ default int32 test_4_ldfld_stfld_static () cil managed
+ {
+ ldnull
+ ldc.i4 2
+ stfld int32 Tests::static_a
+ ldnull
+ ldfld int32 Tests::static_a
+ ldnull
+ ldflda int32 Tests::static_a
+ ldind.i4
+ add
+ ret
+ }
}