aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/asm_386.s
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-04-11 09:57:18 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2018-04-11 13:50:04 +0000
commite0ac5f540bf0d5fff39ce05d60e82d97a011e935 (patch)
treef4081b9912223fe70db94a7b1415d19873c7409d /src/runtime/asm_386.s
parent51533fdac6157c4abb546619bf05530821557539 (diff)
downloadgo-e0ac5f540bf0d5fff39ce05d60e82d97a011e935.tar.gz
go-e0ac5f540bf0d5fff39ce05d60e82d97a011e935.zip
runtime: use internal/cpu instead of support_avx
After CL 104636 cpu.X86.HasAVX is set early enough that it can be used to determine useAVXmemmove. Use it and remove support_avx. Change-Id: Ib7a627bede2bf96c92362507e742bd833cb42a74 Reviewed-on: https://go-review.googlesource.com/106235 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/asm_386.s')
-rw-r--r--src/runtime/asm_386.s6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/runtime/asm_386.s b/src/runtime/asm_386.s
index 4ba1d5b278..e68f727076 100644
--- a/src/runtime/asm_386.s
+++ b/src/runtime/asm_386.s
@@ -176,11 +176,6 @@ notintel:
TESTL $(1<<27), DI // OSXSAVE
SETNE runtime·support_osxsave(SB)
- // If OS support for XMM and YMM is not present
- // support_avx will be set back to false later.
- TESTL $(1<<28), DI // AVX
- SETNE runtime·support_avx(SB)
-
eax7:
// Load EAX=7/ECX=0 cpuid flags
CMPL SI, $7
@@ -211,7 +206,6 @@ osavx:
JE nocpuinfo
#endif
noavx:
- MOVB $0, runtime·support_avx(SB)
MOVB $0, runtime·support_avx2(SB)
nocpuinfo: