1
1
#![ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
2
2
#![ allow( internal_features) ]
3
- #![ feature( stdarch_internal) ]
3
+ #![ feature( stdarch_internal, x86_amx_intrinsics ) ]
4
4
5
5
extern crate cupid;
6
6
#[ macro_use]
@@ -24,34 +24,34 @@ fn dump() {
24
24
println ! ( "f16c: {:?}" , is_x86_feature_detected!( "f16c" ) ) ;
25
25
println ! ( "avx: {:?}" , is_x86_feature_detected!( "avx" ) ) ;
26
26
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" ) ) ;
35
35
println ! ( "avx512vbmi {:?}" , is_x86_feature_detected!( "avx512vbmi" ) ) ;
36
36
println ! (
37
- "avx512_vpopcntdq {:?}" ,
37
+ "avx512_vpopcntdq: {:?}" ,
38
38
is_x86_feature_detected!( "avx512vpopcntdq" )
39
39
) ;
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" ) ) ;
45
45
println ! (
46
- "avx512bitalg {:?}" ,
46
+ "avx512bitalg: {:?}" ,
47
47
is_x86_feature_detected!( "avx512bitalg" )
48
48
) ;
49
- println ! ( "avx512bf16 {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
49
+ println ! ( "avx512bf16: {:?}" , is_x86_feature_detected!( "avx512bf16" ) ) ;
50
50
println ! (
51
- "avx512vp2intersect {:?}" ,
51
+ "avx512vp2intersect: {:?}" ,
52
52
is_x86_feature_detected!( "avx512vp2intersect" )
53
53
) ;
54
- println ! ( "avx512fp16 {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
54
+ println ! ( "avx512fp16: {:?}" , is_x86_feature_detected!( "avx512fp16" ) ) ;
55
55
println ! ( "fma: {:?}" , is_x86_feature_detected!( "fma" ) ) ;
56
56
println ! ( "abm: {:?}" , is_x86_feature_detected!( "abm" ) ) ;
57
57
println ! ( "bmi: {:?}" , is_x86_feature_detected!( "bmi1" ) ) ;
@@ -68,6 +68,11 @@ fn dump() {
68
68
println ! ( "adx: {:?}" , is_x86_feature_detected!( "adx" ) ) ;
69
69
println ! ( "rtm: {:?}" , is_x86_feature_detected!( "rtm" ) ) ;
70
70
println ! ( "movbe: {:?}" , is_x86_feature_detected!( "movbe" ) ) ;
71
+ println ! ( "amx-bf16: {:?}" , is_x86_feature_detected!( "amx-bf16" ) ) ;
72
+ println ! ( "amx-tile: {:?}" , is_x86_feature_detected!( "amx-tile" ) ) ;
73
+ println ! ( "amx-int8: {:?}" , is_x86_feature_detected!( "amx-int8" ) ) ;
74
+ println ! ( "amx-fp16: {:?}" , is_x86_feature_detected!( "amx-fp16" ) ) ;
75
+ println ! ( "amx-complex: {:?}" , is_x86_feature_detected!( "amx-complex" ) ) ;
71
76
}
72
77
73
78
#[ cfg( feature = "std_detect_env_override" ) ]
0 commit comments