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

s2: Fix GOAMD64_v3 #492

Merged
merged 1 commit into from Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion s2/_generate/gen.go
Expand Up @@ -2507,8 +2507,14 @@ func (o options) matchLen(name string, a, b, len reg.GPVirtual, end LabelRef) re
// 2016 BMI :TZCNT r64, r64 L: 0.57ns= 2.0c T: 0.29ns= 1.00c
// 315 AMD64 :BSF r64, r64 L: 0.88ns= 3.1c T: 0.86ns= 3.00c
TZCNTQ(tmp, tmp)
Comment("#elifdef GOAMD64_v4")
Comment("#define TZCNTQ_EMITTED 1")
Comment("#endif\n")
Comment("#ifdef GOAMD64_v4")
TZCNTQ(tmp, tmp)
Comment("#define TZCNTQ_EMITTED 1")
Comment("#endif\n")
Comment("#ifdef TZCNTQ_EMITTED")
Comment("#undef TZCNTQ_EMITTED")
Comment("#else")
BSFQ(tmp, tmp)
Comment("#endif")
Expand Down