aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/memmove_amd64.s
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2017-04-27 08:30:27 +0200
committerMartin Möhrmann <moehrmann@google.com>2017-05-01 20:46:03 +0000
commit5a6c58099085a8156bc42b68a7cf51b5b9c72802 (patch)
tree245a4db2af872b465cfb8e6220c4b8ae26996466 /src/runtime/memmove_amd64.s
parent1f85d3ad09152e09d5f4e9b6d9dcec72dbb4ad9b (diff)
downloadgo-5a6c58099085a8156bc42b68a7cf51b5b9c72802.tar.gz
go-5a6c58099085a8156bc42b68a7cf51b5b9c72802.zip
runtime: refactor cpu feature detection for 386 & amd64
Changes all cpu features to be detected and stored in bools in rt0_go. Updates: #15403 Change-Id: I5a9961cdec789b331d09c44d86beb53833d5dc3e Reviewed-on: https://go-review.googlesource.com/41950 Run-TryBot: Martin Möhrmann <moehrmann@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ilya Tocar <ilya.tocar@intel.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/memmove_amd64.s')
-rw-r--r--src/runtime/memmove_amd64.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/memmove_amd64.s b/src/runtime/memmove_amd64.s
index 510d0d694b..21bf8e47e0 100644
--- a/src/runtime/memmove_amd64.s
+++ b/src/runtime/memmove_amd64.s
@@ -81,8 +81,8 @@ forward:
JLS move_256through2048
// If REP MOVSB isn't fast, don't use it
- TESTL $(1<<9), runtime·cpuid_ebx7(SB) // erms, aka enhanced REP MOVSB/STOSB
- JEQ fwdBy8
+ CMPB runtime·support_erms(SB), $1 // enhanced REP MOVSB/STOSB
+ JNE fwdBy8
// Check alignment
MOVL SI, AX