summaryrefslogtreecommitdiff
path: root/test/wasm-only.fromasm
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-10-18 10:50:54 -0700
committerGitHub <noreply@github.com>2016-10-18 10:50:54 -0700
commitb9698cc7076390ae2bb937537850395ae7bad056 (patch)
treea7048c7c9b01e57b6c64d1b0e8a06ad103c674da /test/wasm-only.fromasm
parentc3d2775402d74a920577ed317930f3693305354f (diff)
downloadbinaryen-b9698cc7076390ae2bb937537850395ae7bad056.tar.gz
binaryen-b9698cc7076390ae2bb937537850395ae7bad056.tar.bz2
binaryen-b9698cc7076390ae2bb937537850395ae7bad056.zip
Pass options (#788)
* add PassOptions structure, and use it for new -Os param to wasm-opt
Diffstat (limited to 'test/wasm-only.fromasm')
-rw-r--r--test/wasm-only.fromasm32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/wasm-only.fromasm b/test/wasm-only.fromasm
index 369d9dcfa..cda8e711f 100644
--- a/test/wasm-only.fromasm
+++ b/test/wasm-only.fromasm
@@ -122,51 +122,51 @@
)
)
(func $i64u-div (param $0 i64) (param $1 i64) (result i64)
- (select
+ (if i64
+ (i64.eqz
+ (get_local $1)
+ )
(i64.const 0)
(i64.div_u
(get_local $0)
(get_local $1)
)
- (i64.eqz
- (get_local $1)
- )
)
)
(func $i64s-div (param $0 i64) (param $1 i64) (result i64)
- (select
+ (if i64
+ (i64.eqz
+ (get_local $1)
+ )
(i64.const 0)
(i64.div_s
(get_local $0)
(get_local $1)
)
- (i64.eqz
- (get_local $1)
- )
)
)
(func $i64u-rem (param $0 i64) (param $1 i64) (result i64)
- (select
+ (if i64
+ (i64.eqz
+ (get_local $1)
+ )
(i64.const 0)
(i64.rem_u
(get_local $0)
(get_local $1)
)
- (i64.eqz
- (get_local $1)
- )
)
)
(func $i64s-rem (param $0 i64) (param $1 i64) (result i64)
- (select
+ (if i64
+ (i64.eqz
+ (get_local $1)
+ )
(i64.const 0)
(i64.rem_s
(get_local $0)
(get_local $1)
)
- (i64.eqz
- (get_local $1)
- )
)
)
(func $test64