Author: zoltan
Date: 2007-07-10 11:40:58 -0400 (Tue, 10 Jul 2007)
New Revision: 81723
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/cpu-x86.md
trunk/mono/mono/mini/inssel-x86.brg
Log:
2007-07-10 Zoltan Varga <[EMAIL PROTECTED]>
* cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
* inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2007-07-10 15:26:18 UTC (rev 81722)
+++ trunk/mono/mono/mini/ChangeLog 2007-07-10 15:40:58 UTC (rev 81723)
@@ -1,4 +1,9 @@
+2007-07-10 Zoltan Varga <[EMAIL PROTECTED]>
+ * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
+
+ * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
+
Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* inssel.brg, mini.c, mini.h, mini-trampolines.c:
@@ -24,8 +29,8 @@
* mini.c (mono_codegen): Add an assert.
- * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler
method enter/
- leave code.
+ * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler
method
+ enter and leave code.
* mini-amd64.c (mono_arch_emit_prolog): Likewise.
Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
Modified: trunk/mono/mono/mini/cpu-x86.md
===================================================================
--- trunk/mono/mono/mini/cpu-x86.md 2007-07-10 15:26:18 UTC (rev 81722)
+++ trunk/mono/mono/mini/cpu-x86.md 2007-07-10 15:40:58 UTC (rev 81723)
@@ -306,8 +306,8 @@
sqrt: dest:f src1:f len:2
op_bigmul: len:2 dest:l src1:a src2:i
op_bigmul_un: len:2 dest:l src1:a src2:i
-sext_i1: dest:i src1:i len:3
-sext_i2: dest:i src1:i len:3
+sext_i1: dest:i src1:y len:3
+sext_i2: dest:i src1:y len:3
tls_get: dest:i len:20
atomic_add_i4: src1:b src2:i dest:i len:16
atomic_add_new_i4: src1:b src2:i dest:i len:16
Modified: trunk/mono/mono/mini/inssel-x86.brg
===================================================================
--- trunk/mono/mono/mini/inssel-x86.brg 2007-07-10 15:26:18 UTC (rev 81722)
+++ trunk/mono/mono/mini/inssel-x86.brg 2007-07-10 15:40:58 UTC (rev 81723)
@@ -75,6 +75,12 @@
MONO_EMIT_NEW_UNALU (s, OP_MOVE, X86_EDX, state->right->reg2);
}
+reg: CEE_LDIND_I1 (OP_REGVAR) {
+ MONO_EMIT_UNALU (s, tree, OP_SEXT_I1, state->reg1,
state->left->tree->dreg);}
+
+reg: CEE_LDIND_I2 (OP_REGVAR) {
+ MONO_EMIT_UNALU (s, tree, OP_SEXT_I2, state->reg1,
state->left->tree->dreg);}
+
lreg: OP_LNEG (lreg) "3" {
int tmpr = mono_regstate_next_int (s->rs);
MONO_EMIT_NEW_UNALU (s, CEE_NEG, state->reg1, state->left->reg1);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches