Skip to content

Comments

cranelift/x64: implement cls for all integer types#12644

Open
shreyasravi320 wants to merge 1 commit intobytecodealliance:mainfrom
shreyasravi320:cls-impl-x86_64
Open

cranelift/x64: implement cls for all integer types#12644
shreyasravi320 wants to merge 1 commit intobytecodealliance:mainfrom
shreyasravi320:cls-impl-x86_64

Conversation

@shreyasravi320
Copy link

Fixes issue #5107
cls implemented with the identity cls(x) = clz(x ^ (x >> 1)) - 1
All integer types (i8, i16, i32, i64, and i128) handled
Added tests to filetests

@shreyasravi320 shreyasravi320 requested a review from a team as a code owner February 24, 2026 03:35
@shreyasravi320 shreyasravi320 requested review from alexcrichton and removed request for a team February 24, 2026 03:35
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant