1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:00:09 -07:00

sync/atomic: fix LoadInt32 on ARM

R0 is clobbered after cas,
while R1 preserves its value.

R=golang-dev
CC=golang-dev
https://golang.org/cl/4782042
This commit is contained in:
Dmitriy Vyukov 2011-07-19 22:10:07 +10:00 committed by Rob Pike
parent 3bbeef5201
commit 0b200b4d09

View File

@ -94,5 +94,5 @@ loadloop1:
MOVW R0, R1 MOVW R0, R1
BL cas<>(SB) BL cas<>(SB)
BCC loadloop1 BCC loadloop1
MOVW R0, val+4(FP) MOVW R1, val+4(FP)
RET RET