* generics.2.cs: Reenable vtype tests.
* inssel-x86.brg: Remove an icorrect valuetype rule.
svn path=/trunk/mono/; revision=55178
+2006-01-06 Zoltan Varga <vargaz@gmail.com>
+
+ * generics.2.cs: Reenable vtype tests.
+
+ * inssel-x86.brg: Remove an icorrect valuetype rule.
+
2006-01-06 Neale Ferguson <neale@sinenomine.net>
* mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
{
return TestDriver.RunTests (typeof (Tests));
}
-
+
public static int test_1_nullable_unbox ()
{
return Unbox<int?> (1).Value;
return (o is int?) ? 1 : 0;
}
- /* FIXME: This doesn't work yet
-
public static int test_1_nullable_unbox_vtype ()
{
return Unbox<TestStruct?> (new TestStruct (1)).Value.i;
object o = new TestStruct (1);
return (o is TestStruct?) ? 1 : 0;
}
- */
static object Box<T> (T t)
{
mono_bblock_add_inst (s->cbb, tree);
}
-stmt: OP_OUTARG (CEE_LDOBJ (reg)) {
- tree->opcode = OP_X86_PUSH;
- tree->sreg1 = state->left->reg1;
- mono_bblock_add_inst (s->cbb, tree);
-}
-
stmt: OP_OUTARG (freg) {
MONO_EMIT_NEW_BIALU_IMM (s, OP_SUB_IMM, X86_ESP, X86_ESP, 8);
tree->opcode = OP_STORER8_MEMBASE_REG;