aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
authorsmasher164 <aindurti@gmail.com>2018-10-15 03:14:57 -0400
committerKeith Randall <khr@golang.org>2019-10-21 17:42:47 +0000
commit58b031949b26efa92a80f39cf68a189b9c0ff07f (patch)
treedc73caed45bab6d1fea6485e368c06f6f0aa130a /src/runtime/proc.go
parent06ac26279cb93140bb2b03bcef9a3300c166cade (diff)
downloadgo-58b031949b26efa92a80f39cf68a189b9c0ff07f.tar.xz
cmd/compile: add fma intrinsic for arm
This change introduces an arm intrinsic that generates the FMULAD instruction for the fused-multiply-add operation on systems that support it. System support is detected via cpu.ARM.HasVFPv4. A rewrite rule translates the generic intrinsic to FMULAD. Updates #25819. Change-Id: I8459e5dd1cdbdca35f88a78dbeb7d387f1e20efa Reviewed-on: https://go-review.googlesource.com/c/go/+/142117 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 1a51b1d83b..71e756b991 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -516,6 +516,8 @@ func cpuinit() {
x86HasSSE41 = cpu.X86.HasSSE41
x86HasFMA = cpu.X86.HasFMA
+ armHasVFPv4 = cpu.ARM.HasVFPv4
+
arm64HasATOMICS = cpu.ARM64.HasATOMICS
}