1
- //@only-target-x86_64
2
-
1
+ // Ignore everything except x86 and x86_64
2
+ // Any additional target are added to CI should be ignored here
3
+ //@ignore-target-aarch64
4
+ //@ignore-target-arm
5
+ //@ignore-target-avr
6
+ //@ignore-target-s390x
7
+ //@ignore-target-thumbv7em
8
+ //@ignore-target-wasm32
9
+
10
+ #[ cfg( target_arch = "x86" ) ]
11
+ use std:: arch:: x86:: * ;
12
+ #[ cfg( target_arch = "x86_64" ) ]
3
13
use std:: arch:: x86_64:: * ;
4
14
use std:: f32:: NAN ;
5
15
use std:: mem:: transmute;
@@ -987,6 +997,8 @@ unsafe fn test_sse() {
987
997
}
988
998
test_mm_cvtsi32_ss ( ) ;
989
999
1000
+ // Intrinsic only available on x86_64
1001
+ #[ cfg( target_arch = "x86_64" ) ]
990
1002
#[ target_feature( enable = "sse" ) ]
991
1003
unsafe fn test_mm_cvtss_si64 ( ) {
992
1004
let inputs = & [
@@ -1007,8 +1019,11 @@ unsafe fn test_sse() {
1007
1019
assert_eq ! ( e, r, "TestCase #{} _mm_cvtss_si64({:?}) = {}, expected: {}" , i, x, r, e) ;
1008
1020
}
1009
1021
}
1022
+ #[ cfg( target_arch = "x86_64" ) ]
1010
1023
test_mm_cvtss_si64 ( ) ;
1011
1024
1025
+ // Intrinsic only available on x86_64
1026
+ #[ cfg( target_arch = "x86_64" ) ]
1012
1027
#[ target_feature( enable = "sse" ) ]
1013
1028
unsafe fn test_mm_cvttss_si64 ( ) {
1014
1029
let inputs = & [
@@ -1032,8 +1047,11 @@ unsafe fn test_sse() {
1032
1047
assert_eq ! ( e, r, "TestCase #{} _mm_cvttss_si64({:?}) = {}, expected: {}" , i, x, r, e) ;
1033
1048
}
1034
1049
}
1050
+ #[ cfg( target_arch = "x86_64" ) ]
1035
1051
test_mm_cvttss_si64 ( ) ;
1036
1052
1053
+ // Intrinsic only available on x86_64
1054
+ #[ cfg( target_arch = "x86_64" ) ]
1037
1055
#[ target_feature( enable = "sse" ) ]
1038
1056
unsafe fn test_mm_cvtsi64_ss ( ) {
1039
1057
let inputs = & [
@@ -1053,6 +1071,7 @@ unsafe fn test_sse() {
1053
1071
assert_eq_m128 ( e, r) ;
1054
1072
}
1055
1073
}
1074
+ #[ cfg( target_arch = "x86_64" ) ]
1056
1075
test_mm_cvtsi64_ss ( ) ;
1057
1076
1058
1077
#[ target_feature( enable = "sse" ) ]
0 commit comments