Skip to content

Commit 03df68d

Browse files
nimelehinaclements
authored andcommitted
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. Change-Id: If19782851670e91fd31d119f4701c47373fa7e71 GitHub-Last-Rev: 91c7321 GitHub-Pull-Request: #48403 Reviewed-on: https://go-review.googlesource.com/c/go/+/350151 Trust: Keith Randall <[email protected]> Reviewed-by: Austin Clements <[email protected]> Run-TryBot: Austin Clements <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 6196979 commit 03df68d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/proc.go

+1-1
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)