@@ -97,6 +97,26 @@ fn aarch64_windows() {
9797 println ! ( "sha2: {:?}" , is_aarch64_feature_detected!( "sha2" ) ) ;
9898}
9999
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+
100120#[ test]
101121#[ cfg( all( target_arch = "powerpc" , target_os = "linux" ) ) ]
102122fn powerpc_linux ( ) {
0 commit comments