Skip to content

x64: Optimize some lowerings using ptest#13462

Open
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:x64-more-vptest
Open

x64: Optimize some lowerings using ptest#13462
alexcrichton wants to merge 1 commit into
bytecodealliance:mainfrom
alexcrichton:x64-more-vptest

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit handles a few more patterns that the ptest instruction can be used for on x64, notably when testing v128 values for equality. This additionally handles cases where v128.and'd values are used for a branch which is naturally handled by the ptest instruction, too.

Closes #13405

This commit handles a few more patterns that the `ptest` instruction can
be used for on x64, notably when testing `v128` values for equality.
This additionally handles cases where `v128.and`'d values are used for a
branch which is naturally handled by the `ptest` instruction, too.

Closes bytecodealliance#13405
@alexcrichton alexcrichton requested review from a team as code owners May 23, 2026 11:33
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team May 23, 2026 11:33
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels May 23, 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.

Compiler should detect equality/inequality comparisons for v128 in wasm and generate one VTEST instruction only

1 participant