diff options
| author | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2023-09-12 19:44:32 +0200 |
|---|---|---|
| committer | Eduardo Sánchez Muñoz <eduardosm-dev@e64.io> | 2023-09-12 19:44:59 +0200 |
| commit | 9df62ad5e147f8bb07287f47c845df1d3e51a02c (patch) | |
| tree | 713c040c0c69862e1c2c70be4a749855aa3e40cc | |
| parent | 8a5f7f25af35e0b4f006f32dcf5cc1ba9d05826d (diff) | |
| download | rust-9df62ad5e147f8bb07287f47c845df1d3e51a02c.tar.gz rust-9df62ad5e147f8bb07287f47c845df1d3e51a02c.zip | |
Ignore all archs except x86 and x86_64 in SSE tests
| -rw-r--r-- | src/tools/miri/tests/pass/intrinsics-x86-sse.rs | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/tools/miri/tests/pass/intrinsics-x86-sse.rs b/src/tools/miri/tests/pass/intrinsics-x86-sse.rs index 677d7cc030e..9b1ded94b5d 100644 --- a/src/tools/miri/tests/pass/intrinsics-x86-sse.rs +++ b/src/tools/miri/tests/pass/intrinsics-x86-sse.rs @@ -1,5 +1,15 @@ -//@only-target-x86_64 - +// Ignore everything except x86 and x86_64 +// Any additional target are added to CI should be ignored here +//@ignore-target-aarch64 +//@ignore-target-arm +//@ignore-target-avr +//@ignore-target-s390x +//@ignore-target-thumbv7em +//@ignore-target-wasm32 + +#[cfg(target_arch = "x86")] +use std::arch::x86::*; +#[cfg(target_arch = "x86_64")] use std::arch::x86_64::*; use std::f32::NAN; use std::mem::transmute; @@ -987,6 +997,8 @@ unsafe fn test_sse() { } test_mm_cvtsi32_ss(); + // Intrinsic only available on x86_64 + #[cfg(target_arch = "x86_64")] #[target_feature(enable = "sse")] unsafe fn test_mm_cvtss_si64() { let inputs = &[ @@ -1007,8 +1019,11 @@ unsafe fn test_sse() { assert_eq!(e, r, "TestCase #{} _mm_cvtss_si64({:?}) = {}, expected: {}", i, x, r, e); } } + #[cfg(target_arch = "x86_64")] test_mm_cvtss_si64(); + // Intrinsic only available on x86_64 + #[cfg(target_arch = "x86_64")] #[target_feature(enable = "sse")] unsafe fn test_mm_cvttss_si64() { let inputs = &[ @@ -1032,8 +1047,11 @@ unsafe fn test_sse() { assert_eq!(e, r, "TestCase #{} _mm_cvttss_si64({:?}) = {}, expected: {}", i, x, r, e); } } + #[cfg(target_arch = "x86_64")] test_mm_cvttss_si64(); + // Intrinsic only available on x86_64 + #[cfg(target_arch = "x86_64")] #[target_feature(enable = "sse")] unsafe fn test_mm_cvtsi64_ss() { let inputs = &[ @@ -1053,6 +1071,7 @@ unsafe fn test_sse() { assert_eq_m128(e, r); } } + #[cfg(target_arch = "x86_64")] test_mm_cvtsi64_ss(); #[target_feature(enable = "sse")] |
