summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm.clamp.no-opts
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-03-09 13:32:03 -0800
committerGitHub <noreply@github.com>2017-03-09 13:32:03 -0800
commitbe4be557567251a73f40bfd7a48220b33f5ddc58 (patch)
treed4aa0a25a1c7331b56404c76eea1a6cfa971c44e /test/two_sides.fromasm.clamp.no-opts
parentd6508e1f9cef33c43016e4da7dd4b94392f280a9 (diff)
downloadbinaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.tar.gz
binaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.tar.bz2
binaryen-be4be557567251a73f40bfd7a48220b33f5ddc58.zip
use a single space for pretty printing of wasts, so massive wasts are less unruly (#928)
Diffstat (limited to 'test/two_sides.fromasm.clamp.no-opts')
-rw-r--r--test/two_sides.fromasm.clamp.no-opts198
1 files changed, 99 insertions, 99 deletions
diff --git a/test/two_sides.fromasm.clamp.no-opts b/test/two_sides.fromasm.clamp.no-opts
index a505e4cb3..bc237e479 100644
--- a/test/two_sides.fromasm.clamp.no-opts
+++ b/test/two_sides.fromasm.clamp.no-opts
@@ -1,112 +1,112 @@
(module
- (import "env" "memory" (memory $0 256 256))
- (import "env" "table" (table 0 0 anyfunc))
- (import "env" "memoryBase" (global $memoryBase i32))
- (import "env" "tableBase" (global $tableBase i32))
- (export "_test" (func $_test))
- (func $f64-to-int (param $0 f64) (result i32)
+ (import "env" "memory" (memory $0 256 256))
+ (import "env" "table" (table 0 0 anyfunc))
+ (import "env" "memoryBase" (global $memoryBase i32))
+ (import "env" "tableBase" (global $tableBase i32))
+ (export "_test" (func $_test))
+ (func $f64-to-int (param $0 f64) (result i32)
+ (if i32
+ (f64.ne
+ (get_local $0)
+ (get_local $0)
+ )
+ (i32.const -2147483648)
+ (if i32
+ (f64.ge
+ (get_local $0)
+ (f64.const 2147483648)
+ )
+ (i32.const -2147483648)
(if i32
- (f64.ne
- (get_local $0)
- (get_local $0)
+ (f64.le
+ (get_local $0)
+ (f64.const -2147483649)
+ )
+ (i32.const -2147483648)
+ (i32.trunc_s/f64
+ (get_local $0)
+ )
+ )
+ )
+ )
+ )
+ (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
+ (local $d6 f64)
+ (if
+ (i32.eqz
+ (get_local $i5)
+ )
+ (block
+ (set_local $d6
+ (f64.convert_s/i32
+ (i32.mul
+ (get_local $i4)
+ (get_local $i3)
)
- (i32.const -2147483648)
- (if i32
- (f64.ge
- (get_local $0)
- (f64.const 2147483648)
- )
- (i32.const -2147483648)
- (if i32
- (f64.le
- (get_local $0)
- (f64.const -2147483649)
- )
- (i32.const -2147483648)
- (i32.trunc_s/f64
- (get_local $0)
- )
- )
+ )
+ )
+ (set_local $d6
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $i3)
+ )
+ (get_local $d6)
+ )
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $i4)
+ )
+ (get_local $d6)
)
+ )
)
- )
- (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
- (local $d6 f64)
- (if
- (i32.eqz
- (get_local $i5)
+ (set_local $i5
+ (call $f64-to-int
+ (get_local $d6)
+ )
+ )
+ (return
+ (get_local $i5)
+ )
+ )
+ (block
+ (set_local $d6
+ (f64.convert_s/i32
+ (i32.mul
+ (get_local $i2)
+ (get_local $i1)
)
- (block
- (set_local $d6
- (f64.convert_s/i32
- (i32.mul
- (get_local $i4)
- (get_local $i3)
- )
- )
- )
- (set_local $d6
- (f64.mul
- (f64.add
- (f64.convert_s/i32
- (get_local $i3)
- )
- (get_local $d6)
- )
- (f64.add
- (f64.convert_s/i32
- (get_local $i4)
- )
- (get_local $d6)
- )
- )
- )
- (set_local $i5
- (call $f64-to-int
- (get_local $d6)
- )
- )
- (return
- (get_local $i5)
- )
+ )
+ )
+ (set_local $d6
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $i3)
+ )
+ (get_local $d6)
)
- (block
- (set_local $d6
- (f64.convert_s/i32
- (i32.mul
- (get_local $i2)
- (get_local $i1)
- )
- )
- )
- (set_local $d6
- (f64.mul
- (f64.add
- (f64.convert_s/i32
- (get_local $i3)
- )
- (get_local $d6)
- )
- (f64.add
- (get_local $d6)
- (f64.convert_s/i32
- (get_local $i4)
- )
- )
- )
- )
- (set_local $i5
- (call $f64-to-int
- (get_local $d6)
- )
- )
- (return
- (get_local $i5)
- )
+ (f64.add
+ (get_local $d6)
+ (f64.convert_s/i32
+ (get_local $i4)
+ )
)
+ )
+ )
+ (set_local $i5
+ (call $f64-to-int
+ (get_local $d6)
+ )
)
(return
- (i32.const 0)
+ (get_local $i5)
)
+ )
+ )
+ (return
+ (i32.const 0)
)
+ )
)