@@ -11,11 +11,6 @@ use target_arch::CpuidResult;
1111use target_arch:: __m128;
1212#[ cfg( any( target_feature = "avx2" , doc) ) ]
1313use target_arch:: __m256i;
14- #[ cfg( all(
15- feature = "nightly" ,
16- any( all( target_feature = "avx512vl" , target_feature = "avx512bf16" ) , doc)
17- ) ) ]
18- use target_arch:: { __m128bh, __m256bh} ;
1914#[ cfg( any( target_feature = "sse2" , doc) ) ]
2015use target_arch:: { __m128d, __m128i} ;
2116#[ cfg( any( target_feature = "avx" , doc) ) ]
@@ -98,17 +93,16 @@ pessimize_asm_values!(
9893) ;
9994
10095/// AVX-512 specific functionality
101- #[ cfg_attr(
102- feature = "nightly" ,
103- doc( cfg( all( feature = "nightly" , target_feature = "avx512f" ) ) )
104- ) ]
105- #[ cfg( all( feature = "nightly" , any( target_feature = "avx512f" , doc) ) ) ]
96+ #[ doc( cfg( target_feature = "avx512f" ) ) ]
97+ #[ cfg( any( target_feature = "avx512f" , doc) ) ]
10698pub mod avx512 {
10799 use super :: * ;
108100 use crate :: Pessimize ;
109101 use core:: arch:: asm;
110102 #[ cfg( any( target_feature = "avx512bf16" , doc) ) ]
111103 use target_arch:: __m512bh;
104+ #[ cfg( any( all( target_feature = "avx512vl" , target_feature = "avx512bf16" ) , doc) ) ]
105+ use target_arch:: { __m128bh, __m256bh} ;
112106 use target_arch:: { __m512, __m512d, __m512i} ;
113107
114108 // Basic register type support
@@ -731,6 +725,9 @@ mod tests {
731725 }
732726 }
733727
728+ // This is nightly-only even though the rest of avx512 is not nightly only
729+ // anymore because we can't easily test without safe_arch or portable_simd
730+ // and portable_simd doesn't have support for AVX-512 yet.
734731 #[ cfg( all( feature = "nightly" , target_feature = "avx512f" ) ) ]
735732 mod avx512 {
736733 use super :: * ;
0 commit comments