11#![ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
22#![ allow( internal_features) ]
3- #![ feature( stdarch_internal, avx512_target_feature) ]
3+ #![ feature( stdarch_internal, avx512_target_feature, x86_amx_intrinsics ) ]
44
55extern crate cupid;
66#[ macro_use]
@@ -24,34 +24,34 @@ fn dump() {
2424 println ! ( "f16c: {:?}" , is_x86_feature_detected!( "f16c" ) ) ;
2525 println ! ( "avx: {:?}" , is_x86_feature_detected!( "avx" ) ) ;
2626 println ! ( "avx2: {:?}" , is_x86_feature_detected!( "avx2" ) ) ;
27- println ! ( "avx512f {:?}" , is_x86_feature_detected!( "avx512f" ) ) ;
28- println ! ( "avx512cd {:?}" , is_x86_feature_detected!( "avx512cd" ) ) ;
29- println ! ( "avx512er {:?}" , is_x86_feature_detected!( "avx512er" ) ) ;
30- println ! ( "avx512pf {:?}" , is_x86_feature_detected!( "avx512pf" ) ) ;
31- println ! ( "avx512bw {:?}" , is_x86_feature_detected!( "avx512bw" ) ) ;
32- println ! ( "avx512dq {:?}" , is_x86_feature_detected!( "avx512dq" ) ) ;
33- println ! ( "avx512vl {:?}" , is_x86_feature_detected!( "avx512vl" ) ) ;
34- println ! ( "avx512_ifma {:?}" , is_x86_feature_detected!( "avx512ifma" ) ) ;
27+ println ! ( "avx512f: {:?}" , is_x86_feature_detected!( "avx512f" ) ) ;
28+ println ! ( "avx512cd: {:?}" , is_x86_feature_detected!( "avx512cd" ) ) ;
29+ println ! ( "avx512er: {:?}" , is_x86_feature_detected!( "avx512er" ) ) ;
30+ println ! ( "avx512pf: {:?}" , is_x86_feature_detected!( "avx512pf" ) ) ;
31+ println ! ( "avx512bw: {:?}" , is_x86_feature_detected!( "avx512bw" ) ) ;
32+ println ! ( "avx512dq: {:?}" , is_x86_feature_detected!( "avx512dq" ) ) ;
33+ println ! ( "avx512vl: {:?}" , is_x86_feature_detected!( "avx512vl" ) ) ;
34+ println ! ( "avx512_ifma: {:?}" , is_x86_feature_detected!( "avx512ifma" ) ) ;
3535 println ! ( "avx512vbmi {:?}" , is_x86_feature_detected!( "avx512vbmi" ) ) ;
3636 println ! (
37- "avx512_vpopcntdq {:?}" ,
37+ "avx512_vpopcntdq: {:?}" ,
3838 is_x86_feature_detected!( "avx512vpopcntdq" )
3939 ) ;
40- println ! ( "avx512vbmi2 {:?}" , is_x86_feature_detected!( "avx512vbmi2" ) ) ;
41- println ! ( "gfni {:?}" , is_x86_feature_detected!( "gfni" ) ) ;
42- println ! ( "vaes {:?}" , is_x86_feature_detected!( "vaes" ) ) ;
43- println ! ( "vpclmulqdq {:?}" , is_x86_feature_detected!( "vpclmulqdq" ) ) ;
44- println ! ( "avx512vnni {:?}" , is_x86_feature_detected!( "avx512vnni" ) ) ;
40+ println ! ( "avx512vbmi2: {:?}" , is_x86_feature_detected!( "avx512vbmi2" ) ) ;
41+ println ! ( "gfni: {:?}" , is_x86_feature_detected!( "gfni" ) ) ;
42+ println ! ( "vaes: {:?}" , is_x86_feature_detected!( "vaes" ) ) ;
43+ println ! ( "vpclmulqdq: {:?}" , is_x86_feature_detected!( "vpclmulqdq" ) ) ;
44+ println ! ( "avx512vnni: {:?}" , is_x86_feature_detected!( "avx512vnni" ) ) ;
4545 println ! (
46- "avx512bitalg {:?}" ,
46+ "avx512bitalg: {:?}" ,
4747 is_x86_feature_detected!( "avx512bitalg" )
4848 ) ;
49- println ! ( "avx512bf16 {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
49+ println ! ( "avx512bf16: {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
5050 println ! (
51- "avx512vp2intersect {:?}" ,
51+ "avx512vp2intersect: {:?}" ,
5252 is_x86_feature_detected!( "avx512vp2intersect" )
5353 ) ;
54- println ! ( "avx512fp16 {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
54+ println ! ( "avx512fp16: {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
5555 println ! ( "fma: {:?}" , is_x86_feature_detected!( "fma" ) ) ;
5656 println ! ( "abm: {:?}" , is_x86_feature_detected!( "abm" ) ) ;
5757 println ! ( "bmi: {:?}" , is_x86_feature_detected!( "bmi1" ) ) ;
@@ -79,6 +79,11 @@ fn dump() {
7979 "avxvnniint16: {:?}" ,
8080 is_x86_feature_detected!( "avxvnniint16" )
8181 ) ;
82+ println ! ( "amx-bf16: {:?}" , is_x86_feature_detected!( "amx-bf16" ) ) ;
83+ println ! ( "amx-tile: {:?}" , is_x86_feature_detected!( "amx-tile" ) ) ;
84+ println ! ( "amx-int8: {:?}" , is_x86_feature_detected!( "amx-int8" ) ) ;
85+ println ! ( "amx-fp16: {:?}" , is_x86_feature_detected!( "amx-fp16" ) ) ;
86+ println ! ( "amx-complex: {:?}" , is_x86_feature_detected!( "amx-complex" ) ) ;
8287}
8388
8489#[ cfg( feature = "std_detect_env_override" ) ]
0 commit comments