Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Migrate volatile-intrinsics to rmake
  • Loading branch information
Rejyr committed Jun 29, 2024
commit 614e04226df82e04c8c3ce30abfda67f26a93bc2
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ run-make/track-pgo-dep-info/Makefile
run-make/translation/Makefile
run-make/type-mismatch-same-crate-name/Makefile
run-make/unstable-flag-required/Makefile
run-make/volatile-intrinsics/Makefile
run-make/wasm-exceptions-nostd/Makefile
run-make/wasm-override-linker/Makefile
run-make/weird-output-filenames/Makefile
Expand Down
10 changes: 0 additions & 10 deletions tests/run-make/volatile-intrinsics/Makefile

This file was deleted.

18 changes: 18 additions & 0 deletions tests/run-make/volatile-intrinsics/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//@ ignore-cross-compile

use run_make_support::fs_wrapper::read;
use run_make_support::{assert_contains, run, rustc};

fn main() {
// The tests must pass...
rustc().input("main.rs").run();
run("main");

// ... and the loads/stores must not be optimized out.
rustc().input("main.rs").emit("llvm-ir").run();

let raw_llvm_ir = read("main.ll");
let llvm_ir = String::from_utf8_lossy(&raw_llvm_ir);
assert_contains(&llvm_ir, "load volatile");
assert_contains(&llvm_ir, "store volatile");
}