]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM: Fix register hint for FFI calls with FP results.
authorMike Pall <mike>
Sun, 8 Oct 2023 19:22:50 +0000 (21:22 +0200)
committerMike Pall <mike>
Sun, 8 Oct 2023 19:22:50 +0000 (21:22 +0200)
src/lj_asm_arm.h

index a003d5cab4226967041764b5b45d0e307c0866b8..ac3d1b580b055dec1975e9a39baf82bc216387c8 100644 (file)
@@ -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)