Skip to content

Commit

Permalink
aarch inline asm is not stable yet
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 21, 2022
1 parent b1b368c commit 5e4b646
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test-cargo-miri/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e4b646

Please sign in to comment.