Skip to content

Commit 7f1ec08

Browse files
Rollup merge of #118908 - Urgau:check-cfg-target-features, r=TaKO8Ki,GuillaumeGomez,workingjubilee
Add all known `target_feature` configs to check-cfg This PR adds all the known `target_feature` from ~~`rustc_codegen_ssa`~~ `rustc_target` to the well known list of check-cfg. It does so by moving the list from `rustc_codegen_ssa` to `rustc_target` ~~`rustc_session` (I not sure about this, but some of the moved function take a `Session`)~~, then using it the `fill_well_known` function. This already proved to be useful since portable-simd had a bad cfg. cc `@nnethercote` (since we discussed it in rust-lang/rust#118494)
2 parents 438ebbe + 603173c commit 7f1ec08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/core_simd/src/swizzle_dyn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ where
5555
16 => transize(vqtbl1q_u8, self, idxs),
5656
#[cfg(all(target_feature = "avx2", not(target_feature = "avx512vbmi")))]
5757
32 => transize_raw(avx2_pshufb, self, idxs),
58-
#[cfg(target_feature = "avx512vl,avx512vbmi")]
58+
#[cfg(all(target_feature = "avx512vl", target_feature = "avx512vbmi"))]
5959
32 => transize(x86::_mm256_permutexvar_epi8, self, idxs),
6060
// Notable absence: avx512bw shuffle
6161
// If avx512bw is available, odds of avx512vbmi are good

0 commit comments

Comments
 (0)