]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] internal/abi: define ARM64 register ABI constants
authorCherry Mui <cherryyz@google.com>
Thu, 27 May 2021 22:22:49 +0000 (18:22 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 1 Jun 2021 22:33:44 +0000 (22:33 +0000)
Change-Id: I9cdf0f2b6c1739f13a859a8e37351f8ecd77804a
Reviewed-on: https://go-review.googlesource.com/c/go/+/323932
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/abi/abi_arm64.go [new file with mode: 0644]

diff --git a/src/internal/abi/abi_arm64.go b/src/internal/abi/abi_arm64.go
new file mode 100644 (file)
index 0000000..7544d75
--- /dev/null
@@ -0,0 +1,20 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build goexperiment.regabireflect
+// +build goexperiment.regabireflect
+
+package abi
+
+const (
+       // See abi_generic.go.
+
+       // R0 - R15.
+       IntArgRegs = 16
+
+       // F0 - F15.
+       FloatArgRegs = 16
+
+       EffectiveFloatRegSize = 8
+)