Author: zoltan
Date: 2005-03-06 13:17:20 -0500 (Sun, 06 Mar 2005)
New Revision: 41484
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-amd64.c
Log:
2005-03-06 Zoltan Varga <[EMAIL PROTECTED]>
* mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2005-03-06 18:13:10 UTC (rev 41483)
+++ trunk/mono/mono/mini/ChangeLog 2005-03-06 18:17:20 UTC (rev 41484)
@@ -1,3 +1,7 @@
+2005-03-06 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
+
2005-03-04 Neale Ferguson <[EMAIL PROTECTED]>
* inssel-s390.brg, mini-s390.c: Add support for passing/returning small
Modified: trunk/mono/mono/mini/mini-amd64.c
===================================================================
--- trunk/mono/mono/mini/mini-amd64.c 2005-03-06 18:13:10 UTC (rev 41483)
+++ trunk/mono/mono/mini/mini-amd64.c 2005-03-06 18:17:20 UTC (rev 41484)
@@ -1295,7 +1295,7 @@
}
/* FIXME: Add more instructions */
-#define INST_IGNORES_CFLAGS(ins) (((ins)->opcode == CEE_BR) || ((ins)->opcode
== OP_STORE_MEMBASE_IMM) || ((ins)->opcode == OP_STOREI8_MEMBASE_REG))
+#define INST_IGNORES_CFLAGS(ins) (((ins)->opcode == CEE_BR) || ((ins)->opcode
== OP_STORE_MEMBASE_IMM) || ((ins)->opcode == OP_STOREI8_MEMBASE_REG) ||
((ins)->opcode == OP_MOVE) || ((ins)->opcode == OP_SETREG) || ((ins)->opcode ==
OP_ICONST) || ((ins)->opcode == OP_I8CONST) || ((ins)->opcode ==
OP_LOAD_MEMBASE))
static void
peephole_pass (MonoCompile *cfg, MonoBasicBlock *bb)
@@ -1310,7 +1310,7 @@
case OP_I8CONST:
/* reg = 0 -> XOR (reg, reg) */
/* XOR sets cflags on x86, so we cant do it always */
- if (ins->inst_c0 == 0 && ins->next &&
INST_IGNORES_CFLAGS (ins->next)) {
+ if (ins->inst_c0 == 0 && (ins->next &&
INST_IGNORES_CFLAGS (ins->next))) {
ins->opcode = CEE_XOR;
ins->sreg1 = ins->dreg;
ins->sreg2 = ins->dreg;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches