diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-07-27 16:29:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 16:29:12 -0700 |
commit | 4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a (patch) | |
tree | 278f1da3868901fa8282651ac589c6acc534d535 /test/use-import-and-drop.fromasm.imprecise.no-opts | |
parent | 203b7f758c34bf38357ec770659713647585538e (diff) | |
download | binaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.tar.gz binaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.tar.bz2 binaryen-4d46a7e2c37299d5a9b9d9d6323ce9fca3a1cf3a.zip |
fix import type detection of calls in comma operators; when the parent is a comma, it can't be a coersion (or that would have been the parent), so there is no coercion, so the result type is none (#1115)
Diffstat (limited to 'test/use-import-and-drop.fromasm.imprecise.no-opts')
-rw-r--r-- | test/use-import-and-drop.fromasm.imprecise.no-opts | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/test/use-import-and-drop.fromasm.imprecise.no-opts b/test/use-import-and-drop.fromasm.imprecise.no-opts index 332851f61..5ce22091a 100644 --- a/test/use-import-and-drop.fromasm.imprecise.no-opts +++ b/test/use-import-and-drop.fromasm.imprecise.no-opts @@ -1,6 +1,6 @@ (module - (type $FUNCSIG$ii (func (param i32) (result i32))) - (import "env" "setTempRet0" (func $setTempRet0 (param i32) (result i32))) + (type $FUNCSIG$vi (func (param i32))) + (import "env" "setTempRet0" (func $setTempRet0 (param i32))) (import "env" "memory" (memory $0 256 256)) (import "env" "table" (table 0 0 anyfunc)) (import "env" "memoryBase" (global $memoryBase i32)) @@ -13,23 +13,21 @@ (local $$1$0 i32) (return (block (result i32) - (drop - (call $setTempRet0 - (i32.or + (call $setTempRet0 + (i32.or + (i32.add (i32.add - (i32.add - (i32.mul - (get_local $$b$1) - (get_local $$x_sroa_0_0_extract_trunc) - ) - (get_local $$2) + (i32.mul + (get_local $$b$1) + (get_local $$x_sroa_0_0_extract_trunc) ) - (get_local $$1$1) - ) - (i32.and - (get_local $$1$1) - (i32.const 0) + (get_local $$2) ) + (get_local $$1$1) + ) + (i32.and + (get_local $$1$1) + (i32.const 0) ) ) ) @@ -44,10 +42,8 @@ ) ) (func $test2 - (drop - (call $setTempRet0 - (i32.const 10) - ) + (call $setTempRet0 + (i32.const 10) ) ) ) |