summaryrefslogtreecommitdiff
path: root/src/runtime/memmove_amd64.s
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2017-04-24 16:59:33 +0200
committerMartin Möhrmann <moehrmann@google.com>2017-04-25 04:50:04 +0000
commitb64e817853531cc73dd5fd13a5038434283d3e5b (patch)
treefa4dc1b0fbbc0fa8adb6a72751eed7277a1e3f61 /src/runtime/memmove_amd64.s
parent16271b8b52b059b892165d7dd32ecd4ff1070347 (diff)
downloadgo-git-b64e817853531cc73dd5fd13a5038434283d3e5b.tar.gz
runtime: simplify detection of preference to use AVX memmove
Reduces cmd/go by 4464 bytes on amd64. Removes the duplicate detection of AVX support and presence of Intel processors. Change-Id: I4670189951a63760fae217708f68d65e94a30dc5 Reviewed-on: https://go-review.googlesource.com/41570 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@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 ed674fe40b..510d0d694b 100644
--- a/src/runtime/memmove_amd64.s
+++ b/src/runtime/memmove_amd64.s
@@ -64,8 +64,8 @@ tail:
JBE move_129through256
// TODO: use branch table and BSR to make this just a single dispatch
- TESTB $1, runtime·useRepMovs(SB)
- JZ avxUnaligned
+ TESTB $1, runtime·useAVXmemmove(SB)
+ JNZ avxUnaligned
/*
* check and set for backwards