cranelift: Disable pinned_reg runtests (#4392)

We've had some ABI issues with pinned reg in runtests.

See #4376 for more info.
This commit is contained in:
Afonso Bordado
2022-07-06 23:52:59 +01:00
committed by GitHub
parent 0f603dd2c5
commit f9e5f274e8

View File

@@ -50,6 +50,16 @@ impl SubTest for TestRun {
return Ok(()); return Ok(());
} }
// Disable runtests with pinned reg enabled.
// We've had some abi issues that the trampoline isn't quite ready for.
if context.flags.enable_pinned_reg() {
return Err(anyhow::anyhow!([
"Cannot run runtests with pinned_reg enabled.",
"See https://github.com/bytecodealliance/wasmtime/issues/4376 for more info"
]
.join("\n")));
}
let test_env = RuntestEnvironment::parse(&context.details.comments[..])?; let test_env = RuntestEnvironment::parse(&context.details.comments[..])?;
let mut compiler = SingleFunctionCompiler::with_host_isa(context.flags.clone())?; let mut compiler = SingleFunctionCompiler::with_host_isa(context.flags.clone())?;