summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/two_sides.fromasm')
-rw-r--r--test/two_sides.fromasm65
1 files changed, 30 insertions, 35 deletions
diff --git a/test/two_sides.fromasm b/test/two_sides.fromasm
index 972f9819e..98ca149e1 100644
--- a/test/two_sides.fromasm
+++ b/test/two_sides.fromasm
@@ -8,57 +8,52 @@
(local $5 f64)
(if
(get_local $4)
- (return
- (call_import $f64-to-int
- (f64.mul
- (f64.add
+ (call_import $f64-to-int
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $2)
+ )
+ (set_local $5
(f64.convert_s/i32
- (get_local $2)
- )
- (set_local $5
- (f64.convert_s/i32
- (i32.mul
- (get_local $1)
- (get_local $0)
- )
+ (i32.mul
+ (get_local $1)
+ (get_local $0)
)
)
)
- (f64.add
- (get_local $5)
- (f64.convert_s/i32
- (get_local $3)
- )
+ )
+ (f64.add
+ (get_local $5)
+ (f64.convert_s/i32
+ (get_local $3)
)
)
)
)
- (return
- (call_import $f64-to-int
- (f64.mul
- (f64.add
+ (call_import $f64-to-int
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $2)
+ )
+ (set_local $5
(f64.convert_s/i32
- (get_local $2)
- )
- (set_local $5
- (f64.convert_s/i32
- (i32.mul
- (get_local $3)
- (get_local $2)
- )
+ (i32.mul
+ (get_local $3)
+ (get_local $2)
)
)
)
- (f64.add
- (f64.convert_s/i32
- (get_local $3)
- )
- (get_local $5)
+ )
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $3)
)
+ (get_local $5)
)
)
)
)
- (i32.const 0)
)
)