2
0
Эх сурвалжийг харах

ARM: Fix register hint for FFI calls with FP results.

Mike Pall 2 жил өмнө
parent
commit
9cc8bbb7ae

+ 1 - 1
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. */
   if (nslots > as->evenspill)  /* Leave room for args in stack slots. */
     as->evenspill = nslots;
     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)
 static void asm_setup_target(ASMState *as)