]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: don't use R18 in ARM64 assembly
authorCherry Zhang <cherryyz@google.com>
Tue, 6 Mar 2018 15:16:32 +0000 (10:16 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 6 Mar 2018 15:34:00 +0000 (15:34 +0000)
R18 seems reserved on Apple platforms.

May fix darwin/arm64 build.

Change-Id: Ia2c1de550a64827c85a64affa53b94c62aacce8e
Reviewed-on: https://go-review.googlesource.com/98896
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Elias Naur <elias.naur@gmail.com>
src/math/big/arith_arm64.s

index 2f6b7004d70446062534da0ae46b145578631b48..8b4b7136fa4f3759f93849206275db2259c4a64f 100644 (file)
@@ -54,11 +54,11 @@ loop:
        LDP.P   32(R8), (R11, R12)
        LDP     -16(R8), (R13, R14)
        LDP.P   32(R9), (R15, R16)
-       LDP     -16(R9), (R17, R18)
+       LDP     -16(R9), (R17, R19)
        ADCS    R15, R11
        ADCS    R16, R12
        ADCS    R17, R13
-       ADCS    R18, R14
+       ADCS    R19, R14
        STP.P   (R11, R12), 32(R10)
        STP     (R13, R14), -16(R10)
        SUB     $4, R0
@@ -95,11 +95,11 @@ loop:
        LDP.P   32(R8), (R11, R12)
        LDP     -16(R8), (R13, R14)
        LDP.P   32(R9), (R15, R16)
-       LDP     -16(R9), (R17, R18)
+       LDP     -16(R9), (R17, R19)
        SBCS    R15, R11
        SBCS    R16, R12
        SBCS    R17, R13
-       SBCS    R18, R14
+       SBCS    R19, R14
        STP.P   (R11, R12), 32(R10)
        STP     (R13, R14), -16(R10)
        SUB     $4, R0