FFI: Compile C function calls with 64 bit args/results in 32 bit mode.

This commit is contained in:
Mike Pall
2011-04-29 19:40:50 +02:00
parent eb7b452d53
commit c77ca54564
4 changed files with 42 additions and 4 deletions

View File

@@ -3346,6 +3346,7 @@ static void asm_hiop(ASMState *as, IRIns *ir)
break;
}
case IR_CALLN:
case IR_CALLXS:
ra_destreg(as, ir, RID_RETHI);
if (!uselo)
ra_allocref(as, ir->op1, RID2RSET(RID_RET)); /* Mark call as used. */