Skip to content

Commit 3085c62

Browse files
authored
Fuzz V8 Turboshaft (WebAssembly#6360)
1 parent 9162740 commit 3085c62

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/fuzz_opt.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def run_bynterp(wasm, args):
687687

688688

689689
# default to running with liftoff enabled, because we need to pick either
690-
# liftoff or turbofan for consistency (otherwise running the same command twice
690+
# liftoff or turbo* for consistency (otherwise running the same command twice
691691
# may have different results due to NaN nondeterminism), and liftoff is faster
692692
# for small things
693693
def run_d8_js(js, args=[], liftoff=True):
@@ -805,6 +805,12 @@ class D8Liftoff(D8):
805805
def run(self, wasm):
806806
return super(D8Liftoff, self).run(wasm, extra_d8_flags=V8_LIFTOFF_ARGS)
807807

808+
class D8Turboshaft(D8):
809+
name = 'd8_turboshaft'
810+
811+
def run(self, wasm):
812+
return super(D8Turboshaft, self).run(wasm, extra_d8_flags=['--no-liftoff', '--turboshaft-wasm', '--turboshaft-wasm-instruction-selection-staged'])
813+
808814
class D8TurboFan(D8):
809815
name = 'd8_turbofan'
810816

@@ -908,6 +914,7 @@ def can_compare_to_others(self):
908914
self.vms = [self.bynterpreter,
909915
D8(),
910916
D8Liftoff(),
917+
D8Turboshaft(),
911918
D8TurboFan(),
912919
# FIXME: Temprorary disable. See issue #4741 for more details
913920
# Wasm2C(),

0 commit comments

Comments
 (0)