diff --git a/test-cargo-miri/tests/test.rs b/test-cargo-miri/tests/test.rs index 1d8282accc..9ed2152893 100644 --- a/test-cargo-miri/tests/test.rs +++ b/test-cargo-miri/tests/test.rs @@ -7,7 +7,11 @@ fn simple() { #[test] #[cfg_attr(miri, ignore)] fn does_not_work_on_miri() { - unsafe { std::arch::asm!("") }; + // Only do this where inline assembly is stable. + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] + unsafe { + std::arch::asm!("foo"); + } } // Make sure integration tests can access both dependencies and dev-dependencies