1
1
#![ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
2
2
#![ 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
+ ) ]
4
9
5
10
extern crate cupid;
6
11
#[ macro_use]
@@ -27,34 +32,34 @@ fn dump() {
27
32
println ! ( "sha512: {:?}" , is_x86_feature_detected!( "sha512" ) ) ;
28
33
println ! ( "sm3: {:?}" , is_x86_feature_detected!( "sm3" ) ) ;
29
34
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" ) ) ;
38
43
println ! ( "avx512vbmi {:?}" , is_x86_feature_detected!( "avx512vbmi" ) ) ;
39
44
println ! (
40
- "avx512_vpopcntdq {:?}" ,
45
+ "avx512_vpopcntdq: {:?}" ,
41
46
is_x86_feature_detected!( "avx512vpopcntdq" )
42
47
) ;
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" ) ) ;
48
53
println ! (
49
- "avx512bitalg {:?}" ,
54
+ "avx512bitalg: {:?}" ,
50
55
is_x86_feature_detected!( "avx512bitalg" )
51
56
) ;
52
- println ! ( "avx512bf16 {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
57
+ println ! ( "avx512bf16: {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
53
58
println ! (
54
- "avx512vp2intersect {:?}" ,
59
+ "avx512vp2intersect: {:?}" ,
55
60
is_x86_feature_detected!( "avx512vp2intersect" )
56
61
) ;
57
- println ! ( "avx512fp16 {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
62
+ println ! ( "avx512fp16: {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
58
63
println ! ( "fma: {:?}" , is_x86_feature_detected!( "fma" ) ) ;
59
64
println ! ( "abm: {:?}" , is_x86_feature_detected!( "abm" ) ) ;
60
65
println ! ( "bmi: {:?}" , is_x86_feature_detected!( "bmi1" ) ) ;
@@ -82,6 +87,11 @@ fn dump() {
82
87
"avxvnniint16: {:?}" ,
83
88
is_x86_feature_detected!( "avxvnniint16" )
84
89
) ;
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" ) ) ;
85
95
}
86
96
87
97
#[ cfg( feature = "std_detect_env_override" ) ]
0 commit comments