aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2023-08-29 22:38:20 +0200
committerMike Pall <mike>2023-08-29 22:38:20 +0200
commit2f6c451ce8db5b5bc88126c9856e15f25fd5beae (patch)
tree131c9abfe5e98de36067d6f4082fb2e3aded0206
parent7ff8f26eb852953778736cf244b2884e339d80aa (diff)
downloadluajit-2f6c451ce8db5b5bc88126c9856e15f25fd5beae.tar.gz
luajit-2f6c451ce8db5b5bc88126c9856e15f25fd5beae.tar.bz2
luajit-2f6c451ce8db5b5bc88126c9856e15f25fd5beae.zip
ARM64: Improve register allocation for integer IR_MUL/IR_MULOV.
Thanks to Peter Cawley. #1062
-rw-r--r--src/lj_asm_arm64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h
index c216fced..5e690308 100644
--- a/src/lj_asm_arm64.h
+++ b/src/lj_asm_arm64.h
@@ -1441,7 +1441,7 @@ static void asm_intneg(ASMState *as, IRIns *ir)
1441static void asm_intmul(ASMState *as, IRIns *ir) 1441static void asm_intmul(ASMState *as, IRIns *ir)
1442{ 1442{
1443 Reg dest = ra_dest(as, ir, RSET_GPR); 1443 Reg dest = ra_dest(as, ir, RSET_GPR);
1444 Reg left = ra_alloc1(as, ir->op1, rset_exclude(RSET_GPR, dest)); 1444 Reg left = ra_alloc1(as, ir->op1, RSET_GPR);
1445 Reg right = ra_alloc1(as, ir->op2, rset_exclude(RSET_GPR, left)); 1445 Reg right = ra_alloc1(as, ir->op2, rset_exclude(RSET_GPR, left));
1446 if (irt_isguard(ir->t)) { /* IR_MULOV */ 1446 if (irt_isguard(ir->t)) { /* IR_MULOV */
1447 asm_guardcc(as, CC_NE); 1447 asm_guardcc(as, CC_NE);