From ff7f7a7180d25da9d425671a48867b50bb7e7ac2 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sat, 22 Oct 2011 01:35:57 +0200 Subject: Cleanup various endianess issues in assembler backend. --- src/lj_asm_x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lj_asm_x86.h') diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index 21ab7c25..ae90309b 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h @@ -479,7 +479,7 @@ static void asm_setupresult(ASMState *as, IRIns *ir, const CCallInfo *ci) dest, RID_ESP, ofs); } if ((ci->flags & CCI_CASTU64)) { - emit_movtomro(as, RID_RET, RID_ESP, ofs); + emit_movtomro(as, RID_RETLO, RID_ESP, ofs); emit_movtomro(as, RID_RETHI, RID_ESP, ofs+4); } else { emit_rmro(as, irt_isnum(ir->t) ? XO_FSTPq : XO_FSTPd, @@ -2180,7 +2180,7 @@ static void asm_hiop(ASMState *as, IRIns *ir) case IR_CALLXS: ra_destreg(as, ir, RID_RETHI); if (!uselo) - ra_allocref(as, ir->op1, RID2RSET(RID_RET)); /* Mark call as used. */ + ra_allocref(as, ir->op1, RID2RSET(RID_RETLO)); /* Mark call as used. */ break; case IR_CNEWI: /* Nothing to do here. Handled by CNEWI itself. */ -- cgit v1.2.3-55-g6feb