-
Notifications
You must be signed in to change notification settings - Fork 19k
cmd/compile: miscompile of shift on GOOS=arm #64715
Copy link
Copy link
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-armIssues solely affecting the 32-bit arm architecture.Issues solely affecting the 32-bit arm architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.release-blocker
Milestone
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-armIssues solely affecting the 32-bit arm architecture.Issues solely affecting the 32-bit arm architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.release-blocker
Type
Projects
Status
Done
Go version
go version devel go1.22-f2d243db8f Wed Dec 13 16:20:09 2023 +0000 linux/amd64
What operating system and processor architecture are you using (
go env)?What did you do?
NB: filing this issue on behalf of Jan Mercl, who discovered and reported the problem here
Run this program on a GOOS=linux GOARCH=arm machine:
What did you expect to see?
Expected:
What did you see instead?
Got instead:
Also worth noting that building with
-gcflags="-l -N"makes the problem go away.