Skip to content

Commit 9df62ad

Browse files
committed
Ignore all archs except x86 and x86_64 in SSE tests
1 parent 8a5f7f2 commit 9df62ad

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/tools/miri/tests/pass/intrinsics-x86-sse.rs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
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")]
313
use std::arch::x86_64::*;
414
use std::f32::NAN;
515
use std::mem::transmute;
@@ -987,6 +997,8 @@ unsafe fn test_sse() {
987997
}
988998
test_mm_cvtsi32_ss();
989999

1000+
// Intrinsic only available on x86_64
1001+
#[cfg(target_arch = "x86_64")]
9901002
#[target_feature(enable = "sse")]
9911003
unsafe fn test_mm_cvtss_si64() {
9921004
let inputs = &[
@@ -1007,8 +1019,11 @@ unsafe fn test_sse() {
10071019
assert_eq!(e, r, "TestCase #{} _mm_cvtss_si64({:?}) = {}, expected: {}", i, x, r, e);
10081020
}
10091021
}
1022+
#[cfg(target_arch = "x86_64")]
10101023
test_mm_cvtss_si64();
10111024

1025+
// Intrinsic only available on x86_64
1026+
#[cfg(target_arch = "x86_64")]
10121027
#[target_feature(enable = "sse")]
10131028
unsafe fn test_mm_cvttss_si64() {
10141029
let inputs = &[
@@ -1032,8 +1047,11 @@ unsafe fn test_sse() {
10321047
assert_eq!(e, r, "TestCase #{} _mm_cvttss_si64({:?}) = {}, expected: {}", i, x, r, e);
10331048
}
10341049
}
1050+
#[cfg(target_arch = "x86_64")]
10351051
test_mm_cvttss_si64();
10361052

1053+
// Intrinsic only available on x86_64
1054+
#[cfg(target_arch = "x86_64")]
10371055
#[target_feature(enable = "sse")]
10381056
unsafe fn test_mm_cvtsi64_ss() {
10391057
let inputs = &[
@@ -1053,6 +1071,7 @@ unsafe fn test_sse() {
10531071
assert_eq_m128(e, r);
10541072
}
10551073
}
1074+
#[cfg(target_arch = "x86_64")]
10561075
test_mm_cvtsi64_ss();
10571076

10581077
#[target_feature(enable = "sse")]

0 commit comments

Comments
 (0)