Skip to content

Vector.ConditionalSelect and Vector128.ConditionalSelect don't emit vpblendvb on x64 #67039

Closed

Description

Vector.ConditionalSelect emits on x64 with AVX2 supported a series of

vpand
vpandn
vpor

instead of emitting

vpblendvb

only.

The same is for Vector128.ConditionalSelect.

Is this by design or a missed oppurtunity to use available instructions?

See also sharplab and I see the same on .NET 7 Preview 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions