aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_mips64x.s
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2016-08-30 14:46:25 -0400
committerCherry Zhang <cherryyz@google.com>2016-08-30 23:16:17 +0000
commitf9dafc742d7c0e892b6e4ff17cb9ec7165887e44 (patch)
treedb0e07eccf2addc770143a7e3c7e389cb5a52d2a /src/runtime/sys_linux_mips64x.s
parentb2e0e9688a512970ea8d270238c8ff3bbf85cbe1 (diff)
downloadgo-f9dafc742d7c0e892b6e4ff17cb9ec7165887e44.tar.xz
cmd/compile, runtime, etc: get rid of constant FP registers
On ARM64, MIPS64, and PPC64, some floating point registers were reserved for constants 0, 1, 2, 0.5, etc. This CL removes them. On ARM64, they are never used. On MIPS64 and PPC64, the only use case is a multiplication-by-2 in the old backend of the compiler, which is replaced with an addition. Change-Id: I737cbf43283756e3408964fc88c567a938c57036 Reviewed-on: https://go-review.googlesource.com/28095 Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/sys_linux_mips64x.s')
-rw-r--r--src/runtime/sys_linux_mips64x.s5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/runtime/sys_linux_mips64x.s b/src/runtime/sys_linux_mips64x.s
index d0141bce78..c9e03a24ce 100644
--- a/src/runtime/sys_linux_mips64x.s
+++ b/src/runtime/sys_linux_mips64x.s
@@ -238,9 +238,6 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$64
SRLV $32, R31, RSB
SLLV $32, RSB
- // initialize essential registers (just in case)
- JAL runtime·reginit(SB)
-
// this might be called in external code context,
// where g is not set.
MOVB runtime·iscgo(SB), R1
@@ -328,8 +325,6 @@ TEXT runtime·clone(SB),NOSPLIT,$-8
RET
// In child, on new stack.
- // initialize essential registers
- JAL runtime·reginit(SB)
MOVV -32(R29), R16
MOVV $1234, R1
BEQ R16, R1, 2(PC)