summaryrefslogtreecommitdiff
path: root/test/min.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-15 20:20:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-15 20:20:29 -0700
commit88c92cbfe7d9f69fa8605fa406e5dbb2ac628172 (patch)
treee296b38cf2181d3a51a293664509000bbd625bc4 /test/min.fromasm.imprecise
parenta969d443230c82212164e4d3d3792ed723fee057 (diff)
downloadbinaryen-88c92cbfe7d9f69fa8605fa406e5dbb2ac628172.tar.gz
binaryen-88c92cbfe7d9f69fa8605fa406e5dbb2ac628172.tar.bz2
binaryen-88c92cbfe7d9f69fa8605fa406e5dbb2ac628172.zip
handle getTempRet0 having extra code, which can happen in emterpreter assertions mode
Diffstat (limited to 'test/min.fromasm.imprecise')
-rw-r--r--test/min.fromasm.imprecise8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/min.fromasm.imprecise b/test/min.fromasm.imprecise
index b07aba04e..a57298eef 100644
--- a/test/min.fromasm.imprecise
+++ b/test/min.fromasm.imprecise
@@ -6,6 +6,8 @@
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(export "floats" (func $floats))
+ (export "getTempRet0" (func $ub))
+ (global $M i32 (i32.const 0))
(func $floats (param $0 f32) (result f32)
(local $1 f32)
(f32.add
@@ -30,4 +32,10 @@
(func $ctzzzz (result i32)
(i32.const 2)
)
+ (func $ub (result i32)
+ (drop
+ (call $ub)
+ )
+ (get_global $M)
+ )
)