Commit 0b200b4d authored by Dmitriy Vyukov's avatar Dmitriy Vyukov Committed by Rob Pike

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
parent 3bbeef52
......@@ -94,5 +94,5 @@ loadloop1:
MOVW R0, R1
BL cas<>(SB)
BCC loadloop1
MOVW R0, val+4(FP)
MOVW R1, val+4(FP)
RET
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment