From 155d314e50fb771e3106c6a890bb45887df22331 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Tue, 27 Dec 2016 16:26:41 +0100 Subject: [PATCH] runtime: fix SP alignment in mips{,le} sigfwd Fixes misc/cgo/testsigfwd, enabled for mips{,le} with the next commit (https://golang.org/cl/34646). Change-Id: I2bec894b0492fd4d84dd73a4faa19eafca760107 Reviewed-on: https://go-review.googlesource.com/34645 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/runtime/sys_linux_mipsx.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/sys_linux_mipsx.s b/src/runtime/sys_linux_mipsx.s index 6f089f5932..73ce06114c 100644 --- a/src/runtime/sys_linux_mipsx.s +++ b/src/runtime/sys_linux_mipsx.s @@ -249,7 +249,7 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-16 MOVW fn+0(FP), R25 MOVW R29, R22 SUBU $16, R29 - AND $0x7, R29 // shadow space for 4 args aligned to 8 bytes as per O32 ABI + AND $~7, R29 // shadow space for 4 args aligned to 8 bytes as per O32 ABI JAL (R25) MOVW R22, R29 RET -- 2.48.1