]> Cypherpunks repositories - gostls13.git/commitdiff
internal/abi: define loong64 regABI constants
authorGuoqi Chen <chenguoqi@loongson.cn>
Tue, 15 Aug 2023 11:38:33 +0000 (19:38 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 21 Nov 2023 17:59:39 +0000 (17:59 +0000)
Update #40724

Co-authored-by: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
Change-Id: Id580d9e22a562adee2ae02a467ac38a54949e737
Reviewed-on: https://go-review.googlesource.com/c/go/+/521778
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: David Chase <drchase@google.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: David Chase <drchase@google.com>

src/internal/abi/abi_loong64.go [new file with mode: 0644]

diff --git a/src/internal/abi/abi_loong64.go b/src/internal/abi/abi_loong64.go
new file mode 100644 (file)
index 0000000..c2306ae
--- /dev/null
@@ -0,0 +1,19 @@
+// Copyright 2023 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.regabiargs
+
+package abi
+
+const (
+       // See abi_generic.go.
+
+       // R4 - R19
+       IntArgRegs = 16
+
+       // F0 - F15
+       FloatArgRegs = 16
+
+       EffectiveFloatRegSize = 8
+)