@@ -27,7 +27,7 @@ extern "unadjusted" {
27
27
/// the 128-bit vector `a` into 4 x 32-bit float values stored in a 128-bit wide
28
28
/// vector.
29
29
#[ inline]
30
- #[ target_feature( enable = "avx512f " ) ]
30
+ #[ target_feature( enable = "f16c " ) ]
31
31
#[ cfg_attr( test, assert_instr( "vcvtph2ps" ) ) ]
32
32
pub unsafe fn _mm_cvtph_ps ( a : __m128i ) -> __m128 {
33
33
transmute ( llvm_vcvtph2ps_128 ( transmute ( a) ) )
@@ -36,7 +36,7 @@ pub unsafe fn _mm_cvtph_ps(a: __m128i) -> __m128 {
36
36
/// Converts the 8 x 16-bit half-precision float values in the 128-bit vector
37
37
/// `a` into 8 x 32-bit float values stored in a 256-bit wide vector.
38
38
#[ inline]
39
- #[ target_feature( enable = "avx512f " ) ]
39
+ #[ target_feature( enable = "f16c " ) ]
40
40
#[ cfg_attr( test, assert_instr( "vcvtph2ps" ) ) ]
41
41
pub unsafe fn _mm256_cvtph_ps ( a : __m128i ) -> __m256 {
42
42
transmute ( llvm_vcvtph2ps_256 ( transmute ( a) ) )
@@ -70,7 +70,7 @@ macro_rules! dispatch_rounding {
70
70
/// * `_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC`: truncate and suppress exceptions,
71
71
/// * `_MM_FROUND_CUR_DIRECTION`: use `MXCSR.RC` - see [`_MM_SET_ROUNDING_MODE`].
72
72
#[ inline]
73
- #[ target_feature( enable = "avx512f " ) ]
73
+ #[ target_feature( enable = "f16c " ) ]
74
74
#[ rustc_args_required_const( 1 ) ]
75
75
#[ cfg_attr( test, assert_instr( "vcvtps2ph" , imm_rounding = 0 ) ) ]
76
76
pub unsafe fn _mm_cvtps_ph ( a : __m128 , imm_rounding : i32 ) -> __m128i {
@@ -94,7 +94,7 @@ pub unsafe fn _mm_cvtps_ph(a: __m128, imm_rounding: i32) -> __m128i {
94
94
/// * `_MM_FROUND_TO_ZERO | _MM_FROUND_NO_EXC`: truncate and suppress exceptions,
95
95
/// * `_MM_FROUND_CUR_DIRECTION`: use `MXCSR.RC` - see [`_MM_SET_ROUNDING_MODE`].
96
96
#[ inline]
97
- #[ target_feature( enable = "avx512f " ) ]
97
+ #[ target_feature( enable = "f16c " ) ]
98
98
#[ rustc_args_required_const( 1 ) ]
99
99
#[ cfg_attr( test, assert_instr( "vcvtps2ph" , imm_rounding = 0 ) ) ]
100
100
pub unsafe fn _mm256_cvtps_ph ( a : __m256 , imm_rounding : i32 ) -> __m128i {
@@ -112,7 +112,7 @@ mod tests {
112
112
use crate :: { core_arch:: x86:: * , mem:: transmute} ;
113
113
use stdsimd_test:: simd_test;
114
114
115
- #[ simd_test( enable = "avx512f " ) ]
115
+ #[ simd_test( enable = "f16c " ) ]
116
116
unsafe fn test_mm_cvtph_ps ( ) {
117
117
let array = [ 1_f32 , 2_f32 , 3_f32 , 4_f32 ] ;
118
118
let float_vec: __m128 = transmute ( array) ;
@@ -122,7 +122,7 @@ mod tests {
122
122
assert_eq ! ( result, array) ;
123
123
}
124
124
125
- #[ simd_test( enable = "avx512f " ) ]
125
+ #[ simd_test( enable = "f16c " ) ]
126
126
unsafe fn test_mm256_cvtph_ps ( ) {
127
127
let array = [ 1_f32 , 2_f32 , 3_f32 , 4_f32 , 5_f32 , 6_f32 , 7_f32 , 8_f32 ] ;
128
128
let float_vec: __m256 = transmute ( array) ;
0 commit comments