]> Cypherpunks repositories - gostls13.git/commit
math/big: fix the bug in assembly implementation of shlVU on arm64
authorerifan01 <eric.fang@arm.com>
Thu, 28 Mar 2019 10:53:42 +0000 (10:53 +0000)
committerCherry Zhang <cherryyz@google.com>
Wed, 8 May 2019 01:29:00 +0000 (01:29 +0000)
commit503e6ccd740c48f21c1d159d904b51da2d9a8ca9
tree529b72458c90b0477d1f52ffc451a5442dd05e6d
parentdc0388c56513c9ddfa0d84260bbed758a392fc01
math/big: fix the bug in assembly implementation of shlVU on arm64

For the case where the addresses of parameter z and x of the function
shlVU overlap and the address of z is greater than x, x (input value)
can be polluted during the calculation when the high words of x are
overlapped with the low words of z (output value).

Fixes #31084

Change-Id: I9bb0266a1d7856b8faa9a9b1975d6f57dece0479
Reviewed-on: https://go-review.googlesource.com/c/go/+/169780
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/math/big/arith_arm64.s
src/math/big/arith_test.go