summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/build_system/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_cranelift/build_system/tests.rs')
-rw-r--r--compiler/rustc_codegen_cranelift/build_system/tests.rs28
1 files changed, 23 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_cranelift/build_system/tests.rs b/compiler/rustc_codegen_cranelift/build_system/tests.rs
index 10736ff9a..cb7b2454c 100644
--- a/compiler/rustc_codegen_cranelift/build_system/tests.rs
+++ b/compiler/rustc_codegen_cranelift/build_system/tests.rs
@@ -75,11 +75,6 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
"example/arbitrary_self_types_pointers_and_wrappers.rs",
&[],
),
- TestCase::build_bin_and_run(
- "aot.issue_91827_extern_types",
- "example/issue-91827-extern-types.rs",
- &[],
- ),
TestCase::build_lib("build.alloc_system", "example/alloc_system.rs", "lib"),
TestCase::build_bin_and_run("aot.alloc_example", "example/alloc_example.rs", &[]),
TestCase::jit_bin("jit.std_example", "example/std_example.rs", ""),
@@ -99,7 +94,20 @@ const BASE_SYSROOT_SUITE: &[TestCase] = &[
TestCase::build_bin_and_run("aot.mod_bench", "example/mod_bench.rs", &[]),
TestCase::build_bin_and_run("aot.issue-72793", "example/issue-72793.rs", &[]),
TestCase::build_bin("aot.issue-59326", "example/issue-59326.rs"),
+ TestCase::custom("aot.polymorphize_coroutine", &|runner| {
+ runner.run_rustc(&["example/polymorphize_coroutine.rs", "-Zpolymorphize"]);
+ runner.run_out_command("polymorphize_coroutine", &[]);
+ }),
TestCase::build_bin_and_run("aot.neon", "example/neon.rs", &[]),
+ TestCase::custom("aot.gen_block_iterate", &|runner| {
+ runner.run_rustc([
+ "example/gen_block_iterate.rs",
+ "--edition",
+ "2024",
+ "-Zunstable-options",
+ ]);
+ runner.run_out_command("gen_block_iterate", &[]);
+ }),
];
pub(crate) static RAND_REPO: GitRepo = GitRepo::github(
@@ -224,6 +232,13 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
if runner.is_native {
let mut test_cmd = PORTABLE_SIMD.test(&runner.target_compiler, &runner.dirs);
test_cmd.arg("-q");
+ // FIXME remove after portable-simd update
+ test_cmd
+ .arg("--")
+ .arg("--skip")
+ .arg("core_simd::swizzle::simd_swizzle")
+ .arg("--skip")
+ .arg("core_simd::vector::Simd<T,N>::lanes");
spawn_and_wait(test_cmd);
}
}),
@@ -457,6 +472,9 @@ impl<'a> TestRunner<'a> {
cmd.arg("--target");
cmd.arg(&self.target_compiler.triple);
cmd.arg("-Cpanic=abort");
+ cmd.arg("-Zunstable-options");
+ cmd.arg("--check-cfg=cfg(no_unstable_features)");
+ cmd.arg("--check-cfg=cfg(jit)");
cmd.args(args);
cmd
}