summaryrefslogtreecommitdiff
path: root/lib/thread/atomic-impl+plan9-x64.s
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/atomic-impl+plan9-x64.s')
-rw-r--r--lib/thread/atomic-impl+plan9-x64.s9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/thread/atomic-impl+plan9-x64.s b/lib/thread/atomic-impl+plan9-x64.s
index 2b4f5dd..8765199 100644
--- a/lib/thread/atomic-impl+plan9-x64.s
+++ b/lib/thread/atomic-impl+plan9-x64.s
@@ -32,13 +32,16 @@ TEXT thread$xaddp+0(SB),1,$0
RET
TEXT thread$xsub32+0(SB),1,$0
- LOCK; XADDL SI, (DI)
+ LOCK; XSUBL SI, (DI)
+ MOVL SI, AX
RET
TEXT thread$xsub64+0(SB),1,$0
- LOCK; XADDQ SI, (DI)
+ LOCK; XSUBQ SI, (DI)
+ MOVQ SI, AX
RET
TEXT thread$xsubp+0(SB),1,$0
- LOCK; XADDQ SI, (DI)
+ LOCK; XSUBQ SI, (DI)
+ MOVQ SI, AX
RET
TEXT thread$xcas32+0(SB),1,$0