11#![ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
22#![ allow( internal_features) ]
3- #![ feature( stdarch_internal, avx512_target_feature, sha512_sm_x86) ]
3+ #![ feature(
4+ stdarch_internal,
5+ avx512_target_feature,
6+ sha512_sm_x86,
7+ x86_amx_intrinsics
8+ ) ]
49
510extern crate cupid;
611#[ macro_use]
@@ -27,34 +32,34 @@ fn dump() {
2732 println ! ( "sha512: {:?}" , is_x86_feature_detected!( "sha512" ) ) ;
2833 println ! ( "sm3: {:?}" , is_x86_feature_detected!( "sm3" ) ) ;
2934 println ! ( "sm4: {:?}" , is_x86_feature_detected!( "sm4" ) ) ;
30- println ! ( "avx512f {:?}" , is_x86_feature_detected!( "avx512f" ) ) ;
31- println ! ( "avx512cd {:?}" , is_x86_feature_detected!( "avx512cd" ) ) ;
32- println ! ( "avx512er {:?}" , is_x86_feature_detected!( "avx512er" ) ) ;
33- println ! ( "avx512pf {:?}" , is_x86_feature_detected!( "avx512pf" ) ) ;
34- println ! ( "avx512bw {:?}" , is_x86_feature_detected!( "avx512bw" ) ) ;
35- println ! ( "avx512dq {:?}" , is_x86_feature_detected!( "avx512dq" ) ) ;
36- println ! ( "avx512vl {:?}" , is_x86_feature_detected!( "avx512vl" ) ) ;
37- println ! ( "avx512_ifma {:?}" , is_x86_feature_detected!( "avx512ifma" ) ) ;
35+ println ! ( "avx512f: {:?}" , is_x86_feature_detected!( "avx512f" ) ) ;
36+ println ! ( "avx512cd: {:?}" , is_x86_feature_detected!( "avx512cd" ) ) ;
37+ println ! ( "avx512er: {:?}" , is_x86_feature_detected!( "avx512er" ) ) ;
38+ println ! ( "avx512pf: {:?}" , is_x86_feature_detected!( "avx512pf" ) ) ;
39+ println ! ( "avx512bw: {:?}" , is_x86_feature_detected!( "avx512bw" ) ) ;
40+ println ! ( "avx512dq: {:?}" , is_x86_feature_detected!( "avx512dq" ) ) ;
41+ println ! ( "avx512vl: {:?}" , is_x86_feature_detected!( "avx512vl" ) ) ;
42+ println ! ( "avx512_ifma: {:?}" , is_x86_feature_detected!( "avx512ifma" ) ) ;
3843 println ! ( "avx512vbmi {:?}" , is_x86_feature_detected!( "avx512vbmi" ) ) ;
3944 println ! (
40- "avx512_vpopcntdq {:?}" ,
45+ "avx512_vpopcntdq: {:?}" ,
4146 is_x86_feature_detected!( "avx512vpopcntdq" )
4247 ) ;
43- println ! ( "avx512vbmi2 {:?}" , is_x86_feature_detected!( "avx512vbmi2" ) ) ;
44- println ! ( "gfni {:?}" , is_x86_feature_detected!( "gfni" ) ) ;
45- println ! ( "vaes {:?}" , is_x86_feature_detected!( "vaes" ) ) ;
46- println ! ( "vpclmulqdq {:?}" , is_x86_feature_detected!( "vpclmulqdq" ) ) ;
47- println ! ( "avx512vnni {:?}" , is_x86_feature_detected!( "avx512vnni" ) ) ;
48+ println ! ( "avx512vbmi2: {:?}" , is_x86_feature_detected!( "avx512vbmi2" ) ) ;
49+ println ! ( "gfni: {:?}" , is_x86_feature_detected!( "gfni" ) ) ;
50+ println ! ( "vaes: {:?}" , is_x86_feature_detected!( "vaes" ) ) ;
51+ println ! ( "vpclmulqdq: {:?}" , is_x86_feature_detected!( "vpclmulqdq" ) ) ;
52+ println ! ( "avx512vnni: {:?}" , is_x86_feature_detected!( "avx512vnni" ) ) ;
4853 println ! (
49- "avx512bitalg {:?}" ,
54+ "avx512bitalg: {:?}" ,
5055 is_x86_feature_detected!( "avx512bitalg" )
5156 ) ;
52- println ! ( "avx512bf16 {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
57+ println ! ( "avx512bf16: {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
5358 println ! (
54- "avx512vp2intersect {:?}" ,
59+ "avx512vp2intersect: {:?}" ,
5560 is_x86_feature_detected!( "avx512vp2intersect" )
5661 ) ;
57- println ! ( "avx512fp16 {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
62+ println ! ( "avx512fp16: {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
5863 println ! ( "fma: {:?}" , is_x86_feature_detected!( "fma" ) ) ;
5964 println ! ( "abm: {:?}" , is_x86_feature_detected!( "abm" ) ) ;
6065 println ! ( "bmi: {:?}" , is_x86_feature_detected!( "bmi1" ) ) ;
@@ -82,6 +87,11 @@ fn dump() {
8287 "avxvnniint16: {:?}" ,
8388 is_x86_feature_detected!( "avxvnniint16" )
8489 ) ;
90+ println ! ( "amx-bf16: {:?}" , is_x86_feature_detected!( "amx-bf16" ) ) ;
91+ println ! ( "amx-tile: {:?}" , is_x86_feature_detected!( "amx-tile" ) ) ;
92+ println ! ( "amx-int8: {:?}" , is_x86_feature_detected!( "amx-int8" ) ) ;
93+ println ! ( "amx-fp16: {:?}" , is_x86_feature_detected!( "amx-fp16" ) ) ;
94+ println ! ( "amx-complex: {:?}" , is_x86_feature_detected!( "amx-complex" ) ) ;
8595}
8696
8797#[ cfg( feature = "std_detect_env_override" ) ]
0 commit comments