diff --git a/internal/engine/wazevo/wazevoapi/debug_options.go b/internal/engine/wazevo/wazevoapi/debug_options.go index 1a5c0bc376..0833010124 100644 --- a/internal/engine/wazevo/wazevoapi/debug_options.go +++ b/internal/engine/wazevo/wazevoapi/debug_options.go @@ -33,7 +33,7 @@ const ( PrintRegisterAllocated = false PrintFinalizedMachineCode = false PrintMachineCodeHexPerFunction = printMachineCodeHexPerFunctionUnmodified || PrintMachineCodeHexPerFunctionDisassemblable //nolint - printMachineCodeHexPerFunctionUnmodified = false + printMachineCodeHexPerFunctionUnmodified = true // PrintMachineCodeHexPerFunctionDisassemblable prints the machine code while modifying the actual result // to make it disassemblable. This is useful when debugging the final machine code. See the places where this is used for detail. // When this is enabled, functions must not be called. diff --git a/internal/integration_test/fuzzcases/testdata/2040.wasm b/internal/integration_test/fuzzcases/testdata/2040.wasm index 9fcc3a93d4..d59c224055 100644 Binary files a/internal/integration_test/fuzzcases/testdata/2040.wasm and b/internal/integration_test/fuzzcases/testdata/2040.wasm differ diff --git a/internal/integration_test/fuzzcases/testdata/2040.wat b/internal/integration_test/fuzzcases/testdata/2040.wat index bbce514739..648280b546 100644 --- a/internal/integration_test/fuzzcases/testdata/2040.wat +++ b/internal/integration_test/fuzzcases/testdata/2040.wat @@ -1,25 +1,21 @@ (module (type (;0;) (func (param i32))) (func (;0;) (type 0) (param i32) - (local f32) i32.const 988345840 f32.convert_i32_s - global.get 0 + global.get 0 ;;f32.const 0x1.c8c8c8p+73 f32.max - local.tee 1 f32.const nan (;=nan;) - local.get 1 - local.get 1 - f32.eq + i32.const 1 select i32.reinterpret_f32 - global.get 1 + i32.const 0 ;; global.get 1 i32.xor - global.set 1) + global.set 2) ;; global.set 1 makes no difference (global (;0;) f32 (f32.const 0x1.c8c8c8p+73 (;=1.68524e+22;))) (global (;1;) (mut i32) (i32.const 0)) (global (;2;) (mut i32) (i32.const 1000)) (export "" (func 0)) (export "1" (global 0)) (export "2" (global 1)) - (data (;0;) "")) \ No newline at end of file + (data (;0;) ""))