diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-15 20:20:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-15 20:20:29 -0700 |
commit | 88c92cbfe7d9f69fa8605fa406e5dbb2ac628172 (patch) | |
tree | e296b38cf2181d3a51a293664509000bbd625bc4 /test/min.fromasm.imprecise | |
parent | a969d443230c82212164e4d3d3792ed723fee057 (diff) | |
download | binaryen-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.imprecise | 8 |
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) + ) ) |