Skip to content

Commit 672295e

Browse files
Rollup merge of #90909 - RalfJung:miri-no-portable-simd, r=workingjubilee
disable portable SIMD tests in Miri Until rust-lang/miri#1912 is resolved, we'll have to skip these tests in Miri.
2 parents 393176b + 60595f7 commit 672295e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

library/core/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,13 @@ pub mod arch {
402402
#[allow(missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe)]
403403
#[allow(rustdoc::bare_urls)]
404404
#[unstable(feature = "portable_simd", issue = "86656")]
405+
#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics
405406
#[cfg(not(bootstrap))]
406407
mod core_simd;
407408

408409
#[doc = include_str!("../../portable-simd/crates/core_simd/src/core_simd_docs.md")]
409410
#[unstable(feature = "portable_simd", issue = "86656")]
411+
#[cfg(not(all(miri, doctest)))] // Miri does not support all SIMD intrinsics
410412
#[cfg(not(bootstrap))]
411413
pub mod simd {
412414
#[unstable(feature = "portable_simd", issue = "86656")]

library/core/tests/simd.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(not(miri))] // Miri does not support all SIMD intrinsics
2+
13
use core::simd::f32x4;
24

35
#[test]

0 commit comments

Comments
 (0)