mirror of
https://github.com/golang/go
synced 2024-11-21 21:54:40 -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:
parent
3bbeef5201
commit
0b200b4d09
@ -94,5 +94,5 @@ loadloop1:
|
||||
MOVW R0, R1
|
||||
BL cas<>(SB)
|
||||
BCC loadloop1
|
||||
MOVW R0, val+4(FP)
|
||||
MOVW R1, val+4(FP)
|
||||
RET
|
||||
|
Loading…
Reference in New Issue
Block a user