Skip to content

Commit

Permalink
Disable optimizations for SIMD testsuite tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhuene committed Feb 26, 2020
1 parent 70275a2 commit 9ffa19c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/wast_testsuites.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::path::Path;
use wasmtime::{Config, Engine, Store, Strategy};
use wasmtime::{Config, Engine, OptLevel, Store, Strategy};
use wasmtime_wast::WastContext;

include!(concat!(env!("OUT_DIR"), "/wast_testsuite_tests.rs"));
Expand All @@ -24,6 +24,12 @@ fn run_wast(wast: &str, strategy: Strategy) -> anyhow::Result<()> {
.wasm_multi_value(multi_val)
.strategy(strategy)?
.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 mut wast_context = WastContext::new(store);
wast_context.register_spectest()?;
Expand Down

0 comments on commit 9ffa19c

Please sign in to comment.