]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Fix register hint for FFI calls with FP results.
authorMike Pall <mike>
Sun, 8 Oct 2023 19:20:10 +0000 (21:20 +0200)
committerMike Pall <mike>
Sun, 8 Oct 2023 19:20:10 +0000 (21:20 +0200)
Thanks to Peter Cawley. #1096

src/lj_asm_arm64.h

index 82f14405edb43fed3d968a6b70310f98508dcbd8..9f165fa80ebeb2f2b4ec36bf1e8c6ad382136c49 100644 (file)
@@ -1985,7 +1985,7 @@ static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci)
       as->evenspill = nslots;
   }
 #endif
-  return REGSP_HINT(RID_RET);
+  return REGSP_HINT(irt_isfp(ir->t) ? RID_FPRET : RID_RET);
 }
 
 static void asm_setup_target(ASMState *as)