diff options
author | Ludi Rehak <ludi317@gmail.com> | 2023-07-29 18:25:42 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-11-20 17:19:36 +0000 |
commit | ee6b34797b66b957fdf9b7211ee3f0b80ac57758 (patch) | |
tree | f13457ea0e7e4bc4ca4629c6a1b4d56a80de4b38 /src/cmd/go/alldocs.go | |
parent | e6b154defba046609b6a36313298cfc207945df7 (diff) | |
download | go-ee6b34797b66b957fdf9b7211ee3f0b80ac57758.tar.gz go-ee6b34797b66b957fdf9b7211ee3f0b80ac57758.zip |
all: add floating point option for ARM targets
This change introduces new options to set the floating point
mode on ARM targets. The GOARM version number can optionally be
followed by ',hardfloat' or ',softfloat' to select whether to
use hardware instructions or software emulation for floating
point computations, respectively. For example,
GOARM=7,softfloat.
Previously, software floating point support was limited to
GOARM=5. With these options, software floating point is now
extended to all ARM versions, including GOARM=6 and 7. This
change also extends hardware floating point to GOARM=5.
GOARM=5 defaults to softfloat and GOARM=6 and 7 default to
hardfloat.
For #61588
Change-Id: I23dc86fbd0733b262004a2ed001e1032cf371e94
Reviewed-on: https://go-review.googlesource.com/c/go/+/514907
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/cmd/go/alldocs.go')
-rw-r--r-- | src/cmd/go/alldocs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index a5148ad4863..a40d0556ff1 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -2285,6 +2285,8 @@ // GOARM // For GOARCH=arm, the ARM architecture for which to compile. // Valid values are 5, 6, 7. +// The value can be followed by an option specifying how to implement floating point instructions. +// Valid options are ,softfloat (default for 5) and ,hardfloat (default for 6 and 7). // GO386 // For GOARCH=386, how to implement floating point instructions. // Valid values are sse2 (default), softfloat. |