Browse Source

PPC: Fix soft-float lj_num2u64().

Reported by Doug Crawford. #1411
Mike Pall 1 week ago
parent
commit
45b771bb2c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/vm_ppc.dasc

+ 2 - 0
src/vm_ppc.dasc

@@ -3268,7 +3268,9 @@ static void build_subroutines(BuildCtx *ctx)
   |  rldimi CRET2, CRET1, 0, 32
   |  mr CRET1, CRET2
   |.endif
+  |.if FPU
   |  addi sp, sp, 16
+  |.endif
   |  blr
   |2:
   |  subfic TMP1, RB, 0			// 64 bit left shift.