From e2c946fe88855e98c36172e0637f0557a0d07056 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 19 Oct 2023 08:43:19 -0700 Subject: [PATCH] Disable relaxed simd when simd is disabled Fixes a fuzz test case discovered last night --- crates/fuzzing/src/generators/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/fuzzing/src/generators/config.rs b/crates/fuzzing/src/generators/config.rs index 5a29e689fc2d..74b0bfb728bd 100644 --- a/crates/fuzzing/src/generators/config.rs +++ b/crates/fuzzing/src/generators/config.rs @@ -171,6 +171,10 @@ impl Config { .allocation_strategy(self.wasmtime.strategy.to_wasmtime()) .generate_address_map(self.wasmtime.generate_address_map); + if !self.module_config.config.simd_enabled { + cfg.wasm_relaxed_simd(false); + } + let compiler_strategy = &self.wasmtime.compiler_strategy; let cranelift_strategy = *compiler_strategy == CompilerStrategy::Cranelift; cfg.strategy(self.wasmtime.compiler_strategy.to_wasmtime());