]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.12] math/big: fix the bug in assembly implementation of shlVU...
authorerifan01 <eric.fang@arm.com>
Thu, 28 Mar 2019 10:53:42 +0000 (10:53 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 2 Aug 2019 20:42:53 +0000 (20:42 +0000)
commit2da8ca41a7ae6f125e0240f66ce504613562fe5b
tree08ac196ab26544f7100c72938bd64d6781e089eb
parent047a326569a5d75c2f5c1fd49fccb4da623b038a
[release-branch.go1.12] 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).

Updates #31084
Fixes #32940

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>
(cherry picked from commit 503e6ccd740c48f21c1d159d904b51da2d9a8ca9)
Reviewed-on: https://go-review.googlesource.com/c/go/+/185041
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
src/math/big/arith_arm64.s
src/math/big/arith_test.go