File tree 4 files changed +8
-2
lines changed
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -245,4 +245,6 @@ features! {
245
245
/// MOVBE (Move Data After Swapping Bytes)
246
246
@FEATURE : #[ stable( feature = "simd_x86" , since = "1.27.0" ) ] ermsb: "ermsb" ;
247
247
/// ERMSB, Enhanced REP MOVSB and STOSB
248
+ @FEATURE : #[ unstable( feature = "xop_target_feature" , issue = "127208" ) ] xop: "xop" ;
249
+ /// XOP: eXtended Operations (AMD)
248
250
}
Original file line number Diff line number Diff line change @@ -279,6 +279,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
279
279
// These features are available on AMD arch CPUs:
280
280
enable ( extended_proc_info_ecx, 6 , Feature :: sse4a) ;
281
281
enable ( extended_proc_info_ecx, 21 , Feature :: tbm) ;
282
+ enable ( extended_proc_info_ecx, 11 , Feature :: xop) ;
282
283
}
283
284
}
284
285
Original file line number Diff line number Diff line change 5
5
#![ cfg_attr( target_arch = "powerpc64" , feature( stdarch_powerpc_feature_detection) ) ]
6
6
#![ cfg_attr(
7
7
any( target_arch = "x86" , target_arch = "x86_64" ) ,
8
- feature( sha512_sm_x86, x86_amx_intrinsics)
8
+ feature( sha512_sm_x86, x86_amx_intrinsics, xop_target_feature )
9
9
) ]
10
10
#![ allow( clippy:: unwrap_used, clippy:: use_debug, clippy:: print_stdout) ]
11
11
@@ -264,6 +264,7 @@ fn x86_all() {
264
264
println ! ( "amx-int8: {:?}" , is_x86_feature_detected!( "amx-int8" ) ) ;
265
265
println ! ( "amx-fp16: {:?}" , is_x86_feature_detected!( "amx-fp16" ) ) ;
266
266
println ! ( "amx-complex: {:?}" , is_x86_feature_detected!( "amx-complex" ) ) ;
267
+ println ! ( "xop: {:?}" , is_x86_feature_detected!( "xop" ) ) ;
267
268
}
268
269
269
270
#[ test]
Original file line number Diff line number Diff line change 4
4
stdarch_internal,
5
5
avx512_target_feature,
6
6
sha512_sm_x86,
7
- x86_amx_intrinsics
7
+ x86_amx_intrinsics,
8
+ xop_target_feature
8
9
) ]
9
10
10
11
extern crate cupid;
@@ -92,6 +93,7 @@ fn dump() {
92
93
println ! ( "amx-int8: {:?}" , is_x86_feature_detected!( "amx-int8" ) ) ;
93
94
println ! ( "amx-fp16: {:?}" , is_x86_feature_detected!( "amx-fp16" ) ) ;
94
95
println ! ( "amx-complex: {:?}" , is_x86_feature_detected!( "amx-complex" ) ) ;
96
+ println ! ( "xop: {:?}" , is_x86_feature_detected!( "xop" ) ) ;
95
97
}
96
98
97
99
#[ cfg( feature = "std_detect_env_override" ) ]
You can’t perform that action at this time.
0 commit comments