summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-04 20:04:57 -0700
committerGitHub <noreply@github.com>2016-10-04 20:04:57 -0700
commit4e1667aa3454f56b3e96df674c504cb16366b628 (patch)
treea2240899abe69c5adb9ef5061ec71967979d3b24 /test/wasm-only.fromasm.imprecise
parentc5b8f379fc3834bc5df10743b525570ffe1a5a73 (diff)
downloadbinaryen-4e1667aa3454f56b3e96df674c504cb16366b628.tar.gz
binaryen-4e1667aa3454f56b3e96df674c504cb16366b628.tar.bz2
binaryen-4e1667aa3454f56b3e96df674c504cb16366b628.zip
handle ifs with an i64 condition #741 (#742)
Diffstat (limited to 'test/wasm-only.fromasm.imprecise')
-rw-r--r--test/wasm-only.fromasm.imprecise4
1 files changed, 3 insertions, 1 deletions
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)
)