From 1036f6f48595a9a8aedf265c5e17df84cbf03a9f Mon Sep 17 00:00:00 2001 From: Srinivas Pokala Date: Tue, 11 Nov 2025 04:25:23 +0100 Subject: [PATCH] internal/abi: define s390x ABI constants Updates #40724 Change-Id: I9b6c56194b2cbc95c08441dfa1f779ed5efbadb8 Reviewed-on: https://go-review.googlesource.com/c/go/+/719461 Reviewed-by: Mark Freeman Reviewed-by: Keith Randall Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI Reviewed-by: Vishwanatha HD --- src/internal/abi/abi_s390x.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/internal/abi/abi_s390x.go diff --git a/src/internal/abi/abi_s390x.go b/src/internal/abi/abi_s390x.go new file mode 100644 index 00000000000..9b07f27382d --- /dev/null +++ b/src/internal/abi/abi_s390x.go @@ -0,0 +1,19 @@ +// Copyright 2025 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. + + // R2 - R9. + IntArgRegs = 8 + + // F0 - F15 + FloatArgRegs = 16 + + EffectiveFloatRegSize = 8 +)