From d410642f498cb96734c55a4c0d91256671a03bae Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 30 Jun 2019 16:19:58 -0700 Subject: [PATCH] runtime: use correct register in darwin/386 pipe_trampoline Updates #31264 Change-Id: I745744dd3fdaa432d70e8dc9336547017bac89ee Reviewed-on: https://go-review.googlesource.com/c/go/+/184377 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Elias Naur --- src/runtime/sys_darwin_386.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/sys_darwin_386.s b/src/runtime/sys_darwin_386.s index ac5f4e4d63..e653c54f61 100644 --- a/src/runtime/sys_darwin_386.s +++ b/src/runtime/sys_darwin_386.s @@ -88,7 +88,7 @@ TEXT runtime·pipe_trampoline(SB),NOSPLIT,$0 PUSHL BP MOVL SP, BP SUBL $8, SP - MOVL 16(SP), CX // arg 1 pipefd + MOVL 16(SP), AX // arg 1 pipefd MOVL AX, 0(SP) CALL libc_pipe(SB) TESTL AX, AX -- 2.50.0