]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix asan asm on amd64
authorMatthew Dempsky <mdempsky@google.com>
Wed, 9 Aug 2023 09:51:59 +0000 (02:51 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 10 Aug 2023 00:43:30 +0000 (00:43 +0000)
On amd64, the 8-byte move instruction is MOVQ, not MOVD.

Change-Id: I48d9b6f5f9f6c7f2e3fe20fd017b816cfb3983a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/517635
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/asan_amd64.s

index bf847f26015e545b5a980736cef6ecd19e282473..ac09ec1105e15ebf1256ab5e452f18974367f23c 100644 (file)
@@ -63,10 +63,10 @@ TEXT        runtime·asanpoison(SB), NOSPLIT, $0-16
 
 // func runtime·asanregisterglobals(addr unsafe.Pointer, n uintptr)
 TEXT   runtime·asanregisterglobals(SB), NOSPLIT, $0-16
-       MOVD    addr+0(FP), RARG0
-       MOVD    size+8(FP), RARG1
+       MOVQ    addr+0(FP), RARG0
+       MOVQ    size+8(FP), RARG1
        // void __asan_register_globals_go(void *addr, uintptr_t n);
-       MOVD    $__asan_register_globals_go(SB), AX
+       MOVQ    $__asan_register_globals_go(SB), AX
        JMP     asancall<>(SB)
 
 // Switches SP to g0 stack and calls (AX). Arguments already set.