aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lj_asm_arm64.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h
index d2cb7823..d9866e9d 100644
--- a/src/lj_asm_arm64.h
+++ b/src/lj_asm_arm64.h
@@ -1391,8 +1391,7 @@ static void asm_intmul(ASMState *as, IRIns *ir)
1391 if (irt_isguard(ir->t)) { /* IR_MULOV */ 1391 if (irt_isguard(ir->t)) { /* IR_MULOV */
1392 asm_guardcc(as, CC_NE); 1392 asm_guardcc(as, CC_NE);
1393 emit_dm(as, A64I_MOVw, dest, dest); /* Zero-extend. */ 1393 emit_dm(as, A64I_MOVw, dest, dest); /* Zero-extend. */
1394 emit_nm(as, A64I_CMPw | A64F_SH(A64SH_ASR, 31), RID_TMP, dest); 1394 emit_nm(as, A64I_CMPx | A64F_EX(A64EX_SXTW), dest, dest);
1395 emit_dn(as, A64I_ASRx | A64F_IMMR(32), RID_TMP, dest);
1396 emit_dnm(as, A64I_SMULL, dest, right, left); 1395 emit_dnm(as, A64I_SMULL, dest, right, left);
1397 } else { 1396 } else {
1398 emit_dnm(as, irt_is64(ir->t) ? A64I_MULx : A64I_MULw, dest, left, right); 1397 emit_dnm(as, irt_is64(ir->t) ? A64I_MULx : A64I_MULw, dest, left, right);