From 91c7321ca49343c86917f071babec8a004ca5c77 Mon Sep 17 00:00:00 2001 From: nimelehin Date: Wed, 15 Sep 2021 13:27:21 +0300 Subject: [PATCH] runtime: fix setting of cpu features for amd64 Because of wrong case of letters, the cpu features flags were not set properly for amd64. Fixes #48406 --- src/runtime/proc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 197441dfa75..605e1330000 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -623,7 +623,7 @@ 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. switch GOARCH { - case "386", "AMD64": + case "386", "amd64": x86HasPOPCNT = cpu.X86.HasPOPCNT x86HasSSE41 = cpu.X86.HasSSE41 x86HasFMA = cpu.X86.HasFMA