* mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
is one byte shorter than cmp DWORD PTR [eax], 0.
svn path=/trunk/mono/; revision=31043
+2004-07-12 Ben Maurer <bmaurer@ximian.com>
+
+ * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
+ is one byte shorter than cmp DWORD PTR [eax], 0.
Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
break;
}
case OP_CHECK_THIS:
- /* ensure ins->sreg1 is not NULL */
- x86_alu_membase_imm (code, X86_CMP, ins->sreg1, 0, 0);
+ /* ensure ins->sreg1 is not NULL
+ * note that cmp DWORD PTR [eax], eax is one byte shorter than
+ * cmp DWORD PTR [eax], 0
+ */
+ x86_alu_membase_reg (code, X86_CMP, ins->sreg1, 0, ins->sreg1);
break;
case OP_ARGLIST: {
int hreg = ins->sreg1 == X86_EAX? X86_ECX: X86_EAX;