aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2023-10-08 21:22:50 +0200
committerMike Pall <mike>2023-10-08 21:22:50 +0200
commit9cc8bbb7ae3675382d016e33b6d8b022101077b8 (patch)
treebce2fdb9a58128380138d535c86f4fb2e3c1027e
parent1e93951b258cdf885779992434201c6114445665 (diff)
downloadluajit-9cc8bbb7ae3675382d016e33b6d8b022101077b8.tar.gz
luajit-9cc8bbb7ae3675382d016e33b6d8b022101077b8.tar.bz2
luajit-9cc8bbb7ae3675382d016e33b6d8b022101077b8.zip
ARM: Fix register hint for FFI calls with FP results.
-rw-r--r--src/lj_asm_arm.h2
1 files changed, 1 insertions, 1 deletions
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)
2255 } 2255 }
2256 if (nslots > as->evenspill) /* Leave room for args in stack slots. */ 2256 if (nslots > as->evenspill) /* Leave room for args in stack slots. */
2257 as->evenspill = nslots; 2257 as->evenspill = nslots;
2258 return REGSP_HINT(RID_RET); 2258 return REGSP_HINT(irt_isfp(ir->t) ? RID_FPRET : RID_RET);
2259} 2259}
2260 2260
2261static void asm_setup_target(ASMState *as) 2261static void asm_setup_target(ASMState *as)