diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-10-04 20:04:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 20:04:57 -0700 |
commit | 4e1667aa3454f56b3e96df674c504cb16366b628 (patch) | |
tree | a2240899abe69c5adb9ef5061ec71967979d3b24 /test | |
parent | c5b8f379fc3834bc5df10743b525570ffe1a5a73 (diff) | |
download | binaryen-4e1667aa3454f56b3e96df674c504cb16366b628.tar.gz binaryen-4e1667aa3454f56b3e96df674c504cb16366b628.tar.bz2 binaryen-4e1667aa3454f56b3e96df674c504cb16366b628.zip |
handle ifs with an i64 condition #741 (#742)
Diffstat (limited to 'test')
-rw-r--r-- | test/wasm-only.fromasm | 4 | ||||
-rw-r--r-- | test/wasm-only.fromasm.imprecise | 4 | ||||
-rw-r--r-- | test/wasm-only.fromasm.imprecise.no-opts | 4 | ||||
-rw-r--r-- | test/wasm-only.fromasm.no-opts | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/test/wasm-only.fromasm b/test/wasm-only.fromasm index e8f8cfc79..26d6cde4f 100644 --- a/test/wasm-only.fromasm +++ b/test/wasm-only.fromasm @@ -290,7 +290,9 @@ ) (func $ifValue64 (param $0 i64) (param $1 i64) (result i64) (if i64 - (get_local $1) + (i32.wrap/i64 + (get_local $1) + ) (call $call2 (get_local $0) ) diff --git a/test/wasm-only.fromasm.imprecise b/test/wasm-only.fromasm.imprecise index b27eb3f9b..ec74eb35b 100644 --- a/test/wasm-only.fromasm.imprecise +++ b/test/wasm-only.fromasm.imprecise @@ -218,7 +218,9 @@ ) (func $ifValue64 (param $0 i64) (param $1 i64) (result i64) (if i64 - (get_local $1) + (i32.wrap/i64 + (get_local $1) + ) (call $call2 (get_local $0) ) diff --git a/test/wasm-only.fromasm.imprecise.no-opts b/test/wasm-only.fromasm.imprecise.no-opts index 90a5eeccd..d9490bf9b 100644 --- a/test/wasm-only.fromasm.imprecise.no-opts +++ b/test/wasm-only.fromasm.imprecise.no-opts @@ -613,7 +613,9 @@ (local $$9 i64) (local $$10 i64) (if - (get_local $$6) + (i32.wrap/i64 + (get_local $$6) + ) (block (set_local $$9 (call $call2 diff --git a/test/wasm-only.fromasm.no-opts b/test/wasm-only.fromasm.no-opts index 1ea6753ef..1959a2937 100644 --- a/test/wasm-only.fromasm.no-opts +++ b/test/wasm-only.fromasm.no-opts @@ -661,7 +661,9 @@ (local $$9 i64) (local $$10 i64) (if - (get_local $$6) + (i32.wrap/i64 + (get_local $$6) + ) (block (set_local $$9 (call $call2 |