@@ -97,6 +97,26 @@ fn aarch64_windows() {
97
97
println ! ( "sha2: {:?}" , is_aarch64_feature_detected!( "sha2" ) ) ;
98
98
}
99
99
100
+ #[ test]
101
+ #[ cfg( all( target_arch = "aarch64" , target_os = "freebsd" ) ) ]
102
+ fn aarch64_freebsd ( ) {
103
+ println ! ( "asimd: {:?}" , is_aarch64_feature_detected!( "asimd" ) ) ;
104
+ println ! ( "pmull: {:?}" , is_aarch64_feature_detected!( "pmull" ) ) ;
105
+ println ! ( "fp: {:?}" , is_aarch64_feature_detected!( "fp" ) ) ;
106
+ println ! ( "fp16: {:?}" , is_aarch64_feature_detected!( "fp16" ) ) ;
107
+ println ! ( "sve: {:?}" , is_aarch64_feature_detected!( "sve" ) ) ;
108
+ println ! ( "crc: {:?}" , is_aarch64_feature_detected!( "crc" ) ) ;
109
+ println ! ( "lse: {:?}" , is_aarch64_feature_detected!( "lse" ) ) ;
110
+ println ! ( "rdm: {:?}" , is_aarch64_feature_detected!( "rdm" ) ) ;
111
+ println ! ( "rcpc: {:?}" , is_aarch64_feature_detected!( "rcpc" ) ) ;
112
+ println ! ( "dotprod: {:?}" , is_aarch64_feature_detected!( "dotprod" ) ) ;
113
+ println ! ( "tme: {:?}" , is_aarch64_feature_detected!( "tme" ) ) ;
114
+ println ! ( "paca: {:?}" , is_aarch64_feature_detected!( "paca" ) ) ;
115
+ println ! ( "pacg: {:?}" , is_aarch64_feature_detected!( "pacg" ) ) ;
116
+ println ! ( "aes: {:?}" , is_aarch64_feature_detected!( "aes" ) ) ;
117
+ println ! ( "sha2: {:?}" , is_aarch64_feature_detected!( "sha2" ) ) ;
118
+ }
119
+
100
120
#[ test]
101
121
#[ cfg( all( target_arch = "powerpc" , target_os = "linux" ) ) ]
102
122
fn powerpc_linux ( ) {
0 commit comments