Skip to content

Add missing avx512vl intrinsics for f32->u32 conversions - #2197

Open
Shnatsel wants to merge 1 commit into
rust-lang:mainfrom
Shnatsel:missing-avx512vl-conversions
Open

Add missing avx512vl intrinsics for f32->u32 conversions#2197
Shnatsel wants to merge 1 commit into
rust-lang:mainfrom
Shnatsel:missing-avx512vl-conversions

Conversation

@Shnatsel

@Shnatsel Shnatsel commented Jul 26, 2026

Copy link
Copy Markdown
Member

Fixes rust-lang/rust#158196

Adds 6 intrinsics that were apparently forgotten by Intel and not included into the Intrinsics Guide web viewer, despite being present in the Intel Software Development Manual and implemented in clang. They all lower into a single hardware instruction and there is no other way to access that instruction; the AVX2 emulation is very costly compared to these native conversions.

The implementation mirrors both the existing 512-bit-wide form and the clang implementation for these 128-bit and 256-bit forms.

This is my first contribution so I have no idea what I'm doing. I don't know what the stabilization process for these would be and if these are supposed to be instantly stable or not, so I just made up a new unstable feature name.

@rustbot

rustbot commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

r? @sayantn

rustbot has assigned @sayantn.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn
  • @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn expanded to Amanieu, adamgemmell, davidtwco, folkertdev, sayantn
  • Random selection from Amanieu, adamgemmell, davidtwco, folkertdev, sayantn

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

Successfully merging this pull request may close these issues.

Missing AVX-512 intrinsics from the avx512vl extension

3 participants