mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
Transition to TypeFlags for specific type checks; Optimize logical ops a bit
This commit is contained in:
14
tests/binaryen/optimize-if-eqz.wast
Normal file
14
tests/binaryen/optimize-if-eqz.wast
Normal file
@ -0,0 +1,14 @@
|
||||
(module
|
||||
(type $i (func (param i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(export "test" (func $test))
|
||||
(func $test (; 0 ;) (type $i) (param $0 i32) (result i32)
|
||||
(if (result i32)
|
||||
(i32.eqz
|
||||
(get_local $0)
|
||||
)
|
||||
(i32.const 0)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user