summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-13 17:50:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-13 17:50:17 -0700
commitda407c06333857f153f9fd1dba780dfbc64677bc (patch)
tree81de6f348b5f21831a608732bcb304618b9a188d /test/unit.fromasm
parent6cb6d65dd0c19dc5cba43d9367bcbdf691f80df3 (diff)
downloadbinaryen-da407c06333857f153f9fd1dba780dfbc64677bc.tar.gz
binaryen-da407c06333857f153f9fd1dba780dfbc64677bc.tar.bz2
binaryen-da407c06333857f153f9fd1dba780dfbc64677bc.zip
drop if-else arms as necessary
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 773cbbd9d..6dd442a36 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -1002,9 +1002,20 @@
)
)
)
- (call $lb
- (i32.const 1)
+ (drop
+ (call $lb
+ (i32.const 1)
+ )
)
)
)
+ (func $jumpThreadDrop (result i32)
+ (local $0 i32)
+ (set_local $0
+ (call_import $return_int)
+ )
+ (block $jumpthreading$outer$2
+ )
+ (get_local $0)
+ )
)