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.no-opts | |
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.no-opts')
-rw-r--r-- | test/min.fromasm.imprecise.no-opts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/min.fromasm.imprecise.no-opts b/test/min.fromasm.imprecise.no-opts index dd89a9eed..c0fcb1917 100644 --- a/test/min.fromasm.imprecise.no-opts +++ b/test/min.fromasm.imprecise.no-opts @@ -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 $f f32) (result f32) (local $t f32) (return @@ -60,4 +62,12 @@ ) ) ) + (func $ub (result i32) + (drop + (call $ub) + ) + (return + (get_global $M) + ) + ) ) |