From 9cc8bbb7ae3675382d016e33b6d8b022101077b8 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 8 Oct 2023 21:22:50 +0200 Subject: ARM: Fix register hint for FFI calls with FP results. --- src/lj_asm_arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h index a003d5ca..ac3d1b58 100644 --- a/src/lj_asm_arm.h +++ b/src/lj_asm_arm.h @@ -2255,7 +2255,7 @@ static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) } if (nslots > as->evenspill) /* Leave room for args in stack slots. */ as->evenspill = nslots; - return REGSP_HINT(RID_RET); + return REGSP_HINT(irt_isfp(ir->t) ? RID_FPRET : RID_RET); } static void asm_setup_target(ASMState *as) -- cgit v1.2.3-55-g6feb