From e41fbc79ccfedc5bf4d07356c20de0731bd9cfd9 Mon Sep 17 00:00:00 2001 From: Lynn Boger Date: Mon, 22 Oct 2018 16:02:43 -0400 Subject: runtime: use unsigned load for iscgo variable in ppc64x runtime asm This changes the runtime asm code that loads iscgo to use MOVBZ instead of MOVB, avoiding an unnecessary sign extension. This is most significant in runtime.save_g, reducing the size from 8 to 7 instructions. Change-Id: Iaa2121464b5309e1f27fd91b19b5603c7aaf619d Reviewed-on: https://go-review.googlesource.com/c/144217 Run-TryBot: Lynn Boger TryBot-Result: Gobot Gobot Reviewed-by: David Chase --- src/runtime/sys_linux_ppc64x.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/sys_linux_ppc64x.s') diff --git a/src/runtime/sys_linux_ppc64x.s b/src/runtime/sys_linux_ppc64x.s index 5b5df50d41..bf01099830 100644 --- a/src/runtime/sys_linux_ppc64x.s +++ b/src/runtime/sys_linux_ppc64x.s @@ -301,7 +301,7 @@ TEXT runtime·_sigtramp(SB),NOSPLIT,$64 // this might be called in external code context, // where g is not set. - MOVB runtime·iscgo(SB), R6 + MOVBZ runtime·iscgo(SB), R6 CMP R6, $0 BEQ 2(PC) BL runtime·load_g(SB) -- cgit v1.3