summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm48
1 files changed, 22 insertions, 26 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index d7fce8b8f..8a8b2ebd9 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -143,16 +143,15 @@
(get_local $d)
)
)
- (set_local $i
- (call_import $f64-to-int
- (f64.promote/f32
- (get_local $f)
- )
- )
- )
(set_local $d
(f64.convert_s/i32
- (get_local $i)
+ (set_local $i
+ (call_import $f64-to-int
+ (f64.promote/f32
+ (get_local $f)
+ )
+ )
+ )
)
)
(set_local $d
@@ -296,18 +295,17 @@
)
(func $big_uint_div_u (result i32)
(local $x i32)
- (set_local $x
- (i32.and
- (i32.div_u
+ (return
+ (set_local $x
+ (i32.and
+ (i32.div_u
+ (i32.const -1)
+ (i32.const 2)
+ )
(i32.const -1)
- (i32.const 2)
)
- (i32.const -1)
)
)
- (return
- (get_local $x)
- )
)
(func $fr (param $x f32)
(local $z f64)
@@ -333,13 +331,12 @@
(local $x i32)
(set_local $x
(block
- (set_local $asm2wasm_i32_temp
- (i32.const 0)
- )
(select
(i32.sub
(i32.const 0)
- (get_local $asm2wasm_i32_temp)
+ (set_local $asm2wasm_i32_temp
+ (i32.const 0)
+ )
)
(get_local $asm2wasm_i32_temp)
(i32.lt_s
@@ -362,11 +359,6 @@
)
(func $neg
(local $x f32)
- (set_local $x
- (f32.neg
- (get_local $x)
- )
- )
(call_indirect $FUNCSIG$vf
(i32.add
(i32.and
@@ -375,7 +367,11 @@
)
(i32.const 8)
)
- (get_local $x)
+ (set_local $x
+ (f32.neg
+ (get_local $x)
+ )
+ )
)
)
(func $cneg (param $x f32)