Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASM #17

Open
kriskwiatkowski opened this issue Jun 15, 2019 · 0 comments
Open

ASM #17

kriskwiatkowski opened this issue Jun 15, 2019 · 0 comments

Comments

@kriskwiatkowski
Copy link

Linter reports variables used only in assembly as unused.

Consider this very common code used in crypto libraries:

test.go:

import "golang.org/x/sys/cpu"
var hasBoth = cpu.HasBMI2 && cpu.HasADX
test.s

CMPB hasBoth
JE jump_to_optimized_implementation
....

linter will report hasBoth is not used, where it actually is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant