From 7b26cb954050291b593b36170d25214e948ceba5 Mon Sep 17 00:00:00 2001 From: Guoqi Chen Date: Tue, 15 Aug 2023 19:38:33 +0800 Subject: [PATCH] internal/abi: define loong64 regABI constants Update #40724 Co-authored-by: Xiaolin Zhao Change-Id: Id580d9e22a562adee2ae02a467ac38a54949e737 Reviewed-on: https://go-review.googlesource.com/c/go/+/521778 Reviewed-by: David Chase Auto-Submit: David Chase Reviewed-by: Meidan Li Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot Run-TryBot: David Chase --- src/internal/abi/abi_loong64.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/internal/abi/abi_loong64.go diff --git a/src/internal/abi/abi_loong64.go b/src/internal/abi/abi_loong64.go new file mode 100644 index 0000000000..c2306ae8d8 --- /dev/null +++ b/src/internal/abi/abi_loong64.go @@ -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 +) -- 2.50.0