-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with
global.get
translation of constant globals (#887)
* add regression test found via fuzzing * fix codegen bug
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
crates/wasmi/src/engine/translator/tests/regression/fuzz_14.wat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(module | ||
(func (param i32 i32) (result i32 i32) | ||
local.get 0 | ||
local.get 1 | ||
i32.and | ||
global.get 0 | ||
i32.eqz | ||
) | ||
(global i32 (i32.const -2)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters