Fix PHI stack slot syncing.

This commit is contained in:
Mike Pall
2012-05-07 23:16:19 +02:00
parent afc17b3c1a
commit 0d824b7d14
8 changed files with 97 additions and 5 deletions

View File

@@ -146,6 +146,12 @@ static void emit_branch(ASMState *as, MIPSIns mi, Reg rs, Reg rt, MCode *target)
as->mcp = p;
}
static void emit_jmp(ASMState *as, MCode *target)
{
*--as->mcp = MIPSI_NOP;
emit_branch(as, MIPSI_B, RID_ZERO, RID_ZERO, (target));
}
static void emit_call(ASMState *as, void *target)
{
MCode *p = as->mcp;