From: Ilya Tocar Date: Tue, 27 Mar 2018 20:21:49 +0000 (-0500) Subject: internal/bytealg: remove dependency on runtime·support_avx2 X-Git-Tag: go1.11beta1~1071 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f8b28e28f8e41d988ff1c08721e6f7d33f3fa7ff;p=gostls13.git internal/bytealg: remove dependency on runtime·support_avx2 Use internal/cpu instead. Change-Id: I8670440389cbd88951fee61e352c4a10ac7eee6e Reviewed-on: https://go-review.googlesource.com/102737 Run-TryBot: Ilya Tocar TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/internal/bytealg/count_amd64.s b/src/internal/bytealg/count_amd64.s index 19eb1ac642..cecba11cf9 100644 --- a/src/internal/bytealg/count_amd64.s +++ b/src/internal/bytealg/count_amd64.s @@ -151,7 +151,7 @@ endofpage: RET avx2: - CMPB runtime·support_avx2(SB), $1 + CMPB internal∕cpu·X86+const_x86_HasAVX2(SB), $1 JNE sse MOVD AX, X0 LEAQ -32(SI)(BX*1), R11