Skip to content

Commit 491a596

Browse files
committed
runtime: Fix setting of cpu features for amd64
1 parent ad97d20 commit 491a596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/proc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ func cpuinit() {
623623
// Support cpu feature variables are used in code generated by the compiler
624624
// to guard execution of instructions that can not be assumed to be always supported.
625625
switch GOARCH {
626-
case "386", "AMD64":
626+
case "386", "amd64":
627627
x86HasPOPCNT = cpu.X86.HasPOPCNT
628628
x86HasSSE41 = cpu.X86.HasSSE41
629629
x86HasFMA = cpu.X86.HasFMA

0 commit comments

Comments
 (0)