diff options
author | Vladimir Stefanovic <vladimir.stefanovic@imgtec.com> | 2016-12-27 16:26:41 +0100 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-01-03 15:42:06 +0000 |
commit | 155d314e50fb771e3106c6a890bb45887df22331 (patch) | |
tree | 50b8c84f57c5b1e0c329b4f59c245ebbde140b71 | |
parent | af7bc070490fb2024102ac9a2c8f598bcb481bc7 (diff) | |
download | go-155d314e50fb771e3106c6a890bb45887df22331.tar.gz go-155d314e50fb771e3106c6a890bb45887df22331.zip |
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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r-- | src/runtime/sys_linux_mipsx.s | 2 |
1 files changed, 1 insertions, 1 deletions
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 |