diff options
author | Mike Pall <mike> | 2023-10-08 21:20:10 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-10-08 21:20:10 +0200 |
commit | 1e93951b258cdf885779992434201c6114445665 (patch) | |
tree | 61bc299ba8ad5d35e3fe57726f60204cec55f693 | |
parent | 007e4dce13673b01a38b19384f54fa50a79a66de (diff) | |
download | luajit-1e93951b258cdf885779992434201c6114445665.tar.gz luajit-1e93951b258cdf885779992434201c6114445665.tar.bz2 luajit-1e93951b258cdf885779992434201c6114445665.zip |
ARM64: Fix register hint for FFI calls with FP results.
Thanks to Peter Cawley. #1096
-rw-r--r-- | src/lj_asm_arm64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index 82f14405..9f165fa8 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h | |||
@@ -1985,7 +1985,7 @@ static Reg asm_setup_call_slots(ASMState *as, IRIns *ir, const CCallInfo *ci) | |||
1985 | as->evenspill = nslots; | 1985 | as->evenspill = nslots; |
1986 | } | 1986 | } |
1987 | #endif | 1987 | #endif |
1988 | return REGSP_HINT(RID_RET); | 1988 | return REGSP_HINT(irt_isfp(ir->t) ? RID_FPRET : RID_RET); |
1989 | } | 1989 | } |
1990 | 1990 | ||
1991 | static void asm_setup_target(ASMState *as) | 1991 | static void asm_setup_target(ASMState *as) |