Skip to content

Commit

Permalink
Normalize target-cpus.rs stdout test for LLVM changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Dec 5, 2024
1 parent 0e98766 commit d80ce21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/compiletest/src/directive-list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"normalize-stderr-32bit",
"normalize-stderr-64bit",
"normalize-stderr-test",
"normalize-stdout",
"normalize-stdout-test",
"only-16bit",
"only-32bit",
Expand Down
6 changes: 6 additions & 0 deletions tests/ui/codegen/target-cpus.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//@ needs-llvm-components: webassembly
//@ compile-flags: --print=target-cpus --target=wasm32-unknown-unknown
//@ check-pass

// LLVM at HEAD has added support for the `lime1` CPU. Remove it from the
// output so that the stdout with LLVM-at-HEAD matches the output of the LLVM
// versions currently used by default.
// FIXME: Once Rust upgrades to LLVM 20, remove this.
//@ normalize-stdout-test: "(?m)^ *lime1\n" -> ""

0 comments on commit d80ce21

Please sign in to comment.