diff --git a/src/internal/bytealg/compare_386.s b/src/internal/bytealg/compare_386.s index 89296e1690..f73e3f8b35 100644 --- a/src/internal/bytealg/compare_386.s +++ b/src/internal/bytealg/compare_386.s @@ -45,7 +45,7 @@ TEXT cmpbody<>(SB),NOSPLIT,$0-0 JEQ allsame CMPL BP, $4 JB small - CMPB runtime·support_sse2(SB), $1 + CMPB internal∕cpu·X86+const_offsetX86HasSSE2(SB), $1 JNE mediumloop largeloop: CMPL BP, $16 diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 75d309a9f6..73b4a1d9d6 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -510,7 +510,6 @@ func cpuinit() { // Support cpu feature variables are used in code generated by the compiler // to guard execution of instructions that can not be assumed to be always supported. support_popcnt = cpu.X86.HasPOPCNT - support_sse2 = cpu.X86.HasSSE2 support_sse41 = cpu.X86.HasSSE41 arm64_support_atomics = cpu.ARM64.HasATOMICS diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index e4c6b3b52a..259bb376ae 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -847,7 +847,6 @@ var ( // Set in runtime.cpuinit. // TODO: deprecate these; use internal/cpu directly. support_popcnt bool - support_sse2 bool support_sse41 bool arm64_support_atomics bool