Skip to content

Commit

Permalink
minimize further
Browse files Browse the repository at this point in the history
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
  • Loading branch information
evacchi committed Feb 11, 2024
1 parent 200bcc1 commit aba7545
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/engine/wazevo/wazevoapi/debug_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Binary file modified internal/integration_test/fuzzcases/testdata/2040.wasm
Binary file not shown.
14 changes: 5 additions & 9 deletions internal/integration_test/fuzzcases/testdata/2040.wat
Original file line number Diff line number Diff line change
@@ -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;) ""))
(data (;0;) ""))

0 comments on commit aba7545

Please sign in to comment.