diff options
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 128 |
1 files changed, 50 insertions, 78 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 0c8da43e9..93a9a4447 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -12,47 +12,35 @@ (table $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg) (func $big_negative (local $temp f64) - (set_local $temp - (f64.const -2147483648) - ) - (set_local $temp - (f64.const -2147483648) - ) - (set_local $temp - (f64.const -21474836480) - ) - (set_local $temp - (f64.const 0.039625) - ) - (set_local $temp - (f64.const -0.039625) - ) + (f64.const -2147483648) + (f64.const -2147483648) + (f64.const -21474836480) + (f64.const 0.039625) + (f64.const -0.039625) ) (func $importedDoubles (result f64) (local $temp f64) - (set_local $temp + (f64.add (f64.add (f64.add - (f64.add - (f64.load - (i32.const 8) - ) - (f64.load - (i32.const 16) - ) + (f64.load + (i32.const 8) ) - (f64.neg - (f64.load - (i32.const 16) - ) + (f64.load + (i32.const 16) ) ) (f64.neg (f64.load - (i32.const 8) + (i32.const 16) ) ) ) + (f64.neg + (f64.load + (i32.const 8) + ) + ) ) (if (i32.gt_s @@ -158,16 +146,14 @@ ) (func $seq (local $J f64) - (set_local $J - (f64.sub - (block - (f64.const 0.1) - (f64.const 5.1) - ) - (block - (f64.const 3.2) - (f64.const 4.2) - ) + (f64.sub + (block + (f64.const 0.1) + (f64.const 5.1) + ) + (block + (f64.const 3.2) + (f64.const 4.2) ) ) ) @@ -257,9 +243,7 @@ (br $label$break$L1) (br $switch$17) ) - (set_local $waka - (i32.const 1) - ) + (i32.const 1) (br $switch$17) ) (br $label$break$L3) @@ -292,14 +276,12 @@ (func $big_uint_div_u (result i32) (local $x i32) (return - (set_local $x - (i32.and - (i32.div_u - (i32.const -1) - (i32.const 2) - ) + (i32.and + (i32.div_u (i32.const -1) + (i32.const 2) ) + (i32.const -1) ) ) ) @@ -325,32 +307,26 @@ (local $z f32) (local $y f64) (local $x i32) - (set_local $x - (block - (select - (i32.sub + (block + (select + (i32.sub + (i32.const 0) + (set_local $asm2wasm_i32_temp (i32.const 0) - (set_local $asm2wasm_i32_temp - (i32.const 0) - ) ) + ) + (get_local $asm2wasm_i32_temp) + (i32.lt_s (get_local $asm2wasm_i32_temp) - (i32.lt_s - (get_local $asm2wasm_i32_temp) - (i32.const 0) - ) + (i32.const 0) ) ) ) - (set_local $y - (f64.abs - (f64.const 0) - ) + (f64.abs + (f64.const 0) ) - (set_local $z - (f32.abs - (f32.const 0) - ) + (f32.abs + (f32.const 0) ) ) (func $neg @@ -458,20 +434,16 @@ ) (func $ceiling_32_64 (param $u f32) (param $B f64) (local $temp f32) - (set_local $temp - (f32.demote/f64 - (f64.ceil - (get_local $B) - ) + (f32.demote/f64 + (f64.ceil + (get_local $B) ) ) - (set_local $temp - (f32.mul - (get_local $u) - (f32.ceil - (f32.demote/f64 - (get_local $B) - ) + (f32.mul + (get_local $u) + (f32.ceil + (f32.demote/f64 + (get_local $B) ) ) ) |