summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/two_sides.fromasm.imprecise')
-rw-r--r--test/two_sides.fromasm.imprecise82
1 files changed, 37 insertions, 45 deletions
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise
index f57c6c343..bc6b7217d 100644
--- a/test/two_sides.fromasm.imprecise
+++ b/test/two_sides.fromasm.imprecise
@@ -2,65 +2,57 @@
(memory 256 256)
(export "memory" memory)
(export "_test" $_test)
- (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32)
- (local $d6 f64)
+ (func $_test (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (param $4 i32) (result i32)
+ (local $5 f64)
(if
- (get_local $i5)
+ (get_local $4)
(return
- (set_local $i5
- (i32.trunc_s/f64
- (set_local $d6
- (f64.mul
- (f64.add
- (f64.convert_s/i32
- (get_local $i3)
- )
- (set_local $d6
- (f64.convert_s/i32
- (i32.mul
- (get_local $i2)
- (get_local $i1)
- )
- )
- )
- )
- (f64.add
- (get_local $d6)
- (f64.convert_s/i32
- (get_local $i4)
+ (i32.trunc_s/f64
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $2)
+ )
+ (set_local $5
+ (f64.convert_s/i32
+ (i32.mul
+ (get_local $1)
+ (get_local $0)
)
)
)
)
+ (f64.add
+ (get_local $5)
+ (f64.convert_s/i32
+ (get_local $3)
+ )
+ )
)
)
)
(return
- (set_local $i5
- (i32.trunc_s/f64
- (set_local $d6
- (f64.mul
- (f64.add
- (f64.convert_s/i32
- (get_local $i3)
- )
- (set_local $d6
- (f64.convert_s/i32
- (i32.mul
- (get_local $i4)
- (get_local $i3)
- )
- )
- )
- )
- (f64.add
- (f64.convert_s/i32
- (get_local $i4)
+ (i32.trunc_s/f64
+ (f64.mul
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $2)
+ )
+ (set_local $5
+ (f64.convert_s/i32
+ (i32.mul
+ (get_local $3)
+ (get_local $2)
)
- (get_local $d6)
)
)
)
+ (f64.add
+ (f64.convert_s/i32
+ (get_local $3)
+ )
+ (get_local $5)
+ )
)
)
)