From 0134af4da66b6c886c466452ddd9bd81a8acf0f0 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Thu, 26 Nov 2015 19:16:53 +0100 Subject: [PATCH] SPLIT should pass through the hiword when droping 64/64 CONV --- src/lj_opt_split.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lj_opt_split.c b/src/lj_opt_split.c index 1cee5093..0dc413a2 100644 --- a/src/lj_opt_split.c +++ b/src/lj_opt_split.c @@ -472,6 +472,7 @@ 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. */ + hi = hiref; /* Pass through hiword. */ goto fwdlo; } else if ((ir->op2 & IRCONV_SEXT)) { /* Sign-extend to 64 bit. */ IRRef k31 = lj_ir_kint(J, 31);