Fix code generation for Intel Atom in x64 mode.

This commit is contained in:
Mike Pall 2011-03-03 00:49:45 +01:00
parent 6c43767c23
commit 1cb58fb7bb

View File

@ -4394,7 +4394,7 @@ void lj_asm_trace(jit_State *J, GCtrace *T)
if (!as->loopref) { if (!as->loopref) {
/* Leave room for ESP adjustment: add esp, imm or lea esp, [esp+imm] */ /* Leave room for ESP adjustment: add esp, imm or lea esp, [esp+imm] */
as->mcp -= (as->flags & JIT_F_LEA_AGU) ? 7 : 6 + (LJ_64 ? 1 : 0); as->mcp -= ((as->flags & JIT_F_LEA_AGU) ? 7 : 6) + (LJ_64 ? 1 : 0);
as->invmcp = NULL; as->invmcp = NULL;
asm_tail_link(as); asm_tail_link(as);
} }