Skip to content

Commit

Permalink
FFI: Fix SPLIT pass for CONV i64.u64.
Browse files Browse the repository at this point in the history
Thanks to Vyacheslav Egorov.
  • Loading branch information
Mike Pall committed Nov 26, 2015
1 parent 367cba2 commit 3d4c9f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lj_opt_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@ static void split_ir(jit_State *J)
}
#endif
else if (st == IRT_I64 || st == IRT_U64) { /* 64/64 bit cast. */
/* Drop cast, since assembler doesn't care. */
/* Drop cast, since assembler doesn't care. But fwd both parts. */
hi = hiref;
goto fwdlo;
} else if ((ir->op2 & IRCONV_SEXT)) { /* Sign-extend to 64 bit. */
IRRef k31 = lj_ir_kint(J, 31);
Expand Down

0 comments on commit 3d4c9f9

Please sign in to comment.