Disable optimizations for SIMD testsuite tests.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use wasmtime::{Config, Engine, Store, Strategy};
|
use wasmtime::{Config, Engine, OptLevel, Store, Strategy};
|
||||||
use wasmtime_wast::WastContext;
|
use wasmtime_wast::WastContext;
|
||||||
|
|
||||||
include!(concat!(env!("OUT_DIR"), "/wast_testsuite_tests.rs"));
|
include!(concat!(env!("OUT_DIR"), "/wast_testsuite_tests.rs"));
|
||||||
@@ -24,6 +24,12 @@ fn run_wast(wast: &str, strategy: Strategy) -> anyhow::Result<()> {
|
|||||||
.wasm_multi_value(multi_val)
|
.wasm_multi_value(multi_val)
|
||||||
.strategy(strategy)?
|
.strategy(strategy)?
|
||||||
.cranelift_debug_verifier(true);
|
.cranelift_debug_verifier(true);
|
||||||
|
|
||||||
|
// FIXME: https://github.com/bytecodealliance/cranelift/issues/1409
|
||||||
|
if simd {
|
||||||
|
cfg.cranelift_opt_level(OptLevel::None);
|
||||||
|
}
|
||||||
|
|
||||||
let store = Store::new(&Engine::new(&cfg));
|
let store = Store::new(&Engine::new(&cfg));
|
||||||
let mut wast_context = WastContext::new(store);
|
let mut wast_context = WastContext::new(store);
|
||||||
wast_context.register_spectest()?;
|
wast_context.register_spectest()?;
|
||||||
|
|||||||
Reference in New Issue
Block a user