mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 10:41:42 +00:00
Minor remquof improvemnts (#306)
This commit is contained in:
@ -11754,7 +11754,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 40)
|
||||
(i32.const 2023)
|
||||
(i32.const 2022)
|
||||
(i32.const 24)
|
||||
)
|
||||
(unreachable)
|
||||
@ -11914,7 +11914,6 @@
|
||||
(local $8 i64)
|
||||
(local $9 f64)
|
||||
(local $10 i32)
|
||||
(local $11 i32)
|
||||
(set_local $3
|
||||
(i64.and
|
||||
(i64.shr_u
|
||||
@ -11928,10 +11927,10 @@
|
||||
(i64.const 2047)
|
||||
)
|
||||
)
|
||||
(set_local $6
|
||||
(set_local $5
|
||||
(i64.and
|
||||
(i64.shr_u
|
||||
(tee_local $5
|
||||
(tee_local $6
|
||||
(i64.reinterpret/f64
|
||||
(get_local $1)
|
||||
)
|
||||
@ -11949,20 +11948,12 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $11
|
||||
(i32.wrap/i64
|
||||
(i64.shr_u
|
||||
(get_local $5)
|
||||
(i64.const 63)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(tee_local $4
|
||||
(i64.eq
|
||||
(i64.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i64.const 1)
|
||||
)
|
||||
(i64.const 0)
|
||||
@ -12046,22 +12037,22 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $5
|
||||
(set_local $6
|
||||
(if (result i64)
|
||||
(i64.eqz
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
(i64.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i64.add
|
||||
(i64.sub
|
||||
(i64.const 0)
|
||||
(tee_local $6
|
||||
(tee_local $5
|
||||
(i64.sub
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
(i64.clz
|
||||
(i64.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i64.const 12)
|
||||
)
|
||||
)
|
||||
@ -12073,7 +12064,7 @@
|
||||
)
|
||||
(i64.or
|
||||
(i64.and
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i64.const 4503599627370495)
|
||||
)
|
||||
(i64.const 4503599627370496)
|
||||
@ -12084,7 +12075,7 @@
|
||||
(if
|
||||
(i64.lt_s
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
(block
|
||||
(br_if $break|0
|
||||
@ -12093,7 +12084,7 @@
|
||||
(get_local $3)
|
||||
(i64.const 1)
|
||||
)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(return
|
||||
@ -12106,7 +12097,7 @@
|
||||
(br_if $break|1
|
||||
(i64.le_s
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(if
|
||||
@ -12115,7 +12106,7 @@
|
||||
(tee_local $8
|
||||
(i64.sub
|
||||
(get_local $2)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
(i64.const 63)
|
||||
@ -12161,7 +12152,7 @@
|
||||
(tee_local $8
|
||||
(i64.sub
|
||||
(get_local $2)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
(i64.const 63)
|
||||
@ -12211,49 +12202,45 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $0
|
||||
(f64.reinterpret/i64
|
||||
(tee_local $2
|
||||
(if (result i64)
|
||||
(i64.gt_s
|
||||
(get_local $3)
|
||||
(i64.const 0)
|
||||
)
|
||||
(i64.or
|
||||
(i64.sub
|
||||
(get_local $2)
|
||||
(i64.const 4503599627370496)
|
||||
)
|
||||
(i64.shl
|
||||
(get_local $3)
|
||||
(i64.const 52)
|
||||
)
|
||||
)
|
||||
(i64.shr_u
|
||||
(get_local $2)
|
||||
(i64.add
|
||||
(i64.sub
|
||||
(i64.const 0)
|
||||
(get_local $3)
|
||||
)
|
||||
(i64.const 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $11)
|
||||
(set_local $1
|
||||
(f64.neg
|
||||
(get_local $1)
|
||||
)
|
||||
(set_local $1
|
||||
(f64.abs
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(set_local $9
|
||||
(f64.add
|
||||
(get_local $0)
|
||||
(tee_local $0
|
||||
(f64.reinterpret/i64
|
||||
(tee_local $2
|
||||
(if (result i64)
|
||||
(i64.gt_s
|
||||
(get_local $3)
|
||||
(i64.const 0)
|
||||
)
|
||||
(i64.or
|
||||
(i64.sub
|
||||
(get_local $2)
|
||||
(i64.const 4503599627370496)
|
||||
)
|
||||
(i64.shl
|
||||
(get_local $3)
|
||||
(i64.const 52)
|
||||
)
|
||||
)
|
||||
(i64.shr_u
|
||||
(get_local $2)
|
||||
(i64.add
|
||||
(i64.sub
|
||||
(i64.const 0)
|
||||
(get_local $3)
|
||||
)
|
||||
(i64.const 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
@ -12262,7 +12249,7 @@
|
||||
(tee_local $4
|
||||
(i64.eq
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -12273,7 +12260,7 @@
|
||||
(get_local $3)
|
||||
(i64.const 1)
|
||||
)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(if
|
||||
@ -12338,7 +12325,7 @@
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
(local $8 f32)
|
||||
(local $9 i32)
|
||||
(set_local $3
|
||||
(i32.and
|
||||
@ -12353,10 +12340,10 @@
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(set_local $6
|
||||
(set_local $5
|
||||
(i32.and
|
||||
(i32.shr_u
|
||||
(tee_local $5
|
||||
(tee_local $6
|
||||
(i32.reinterpret/f32
|
||||
(get_local $1)
|
||||
)
|
||||
@ -12366,15 +12353,9 @@
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(set_local $8
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.const 31)
|
||||
)
|
||||
)
|
||||
(set_local $9
|
||||
(i32.shr_u
|
||||
(get_local $5)
|
||||
(get_local $2)
|
||||
(i32.const 31)
|
||||
)
|
||||
)
|
||||
@ -12383,7 +12364,7 @@
|
||||
(tee_local $4
|
||||
(i32.eqz
|
||||
(i32.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
@ -12460,26 +12441,26 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $5
|
||||
(set_local $6
|
||||
(if (result i32)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
(i32.or
|
||||
(i32.and
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i32.const 8388607)
|
||||
)
|
||||
(i32.const 8388608)
|
||||
)
|
||||
(i32.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(tee_local $6
|
||||
(tee_local $5
|
||||
(i32.sub
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
(i32.clz
|
||||
(i32.shl
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
(i32.const 9)
|
||||
)
|
||||
)
|
||||
@ -12493,7 +12474,7 @@
|
||||
(if
|
||||
(i32.lt_s
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
(block
|
||||
(br_if $break|0
|
||||
@ -12502,7 +12483,7 @@
|
||||
(get_local $3)
|
||||
(i32.const 1)
|
||||
)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(return
|
||||
@ -12515,7 +12496,7 @@
|
||||
(br_if $break|1
|
||||
(i32.le_s
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(if
|
||||
@ -12524,7 +12505,7 @@
|
||||
(tee_local $4
|
||||
(i32.sub
|
||||
(get_local $2)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
(i32.const 31)
|
||||
@ -12569,7 +12550,7 @@
|
||||
(tee_local $4
|
||||
(i32.sub
|
||||
(get_local $2)
|
||||
(get_local $5)
|
||||
(get_local $6)
|
||||
)
|
||||
)
|
||||
(i32.const 31)
|
||||
@ -12615,41 +12596,43 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(set_local $0
|
||||
(f32.reinterpret/i32
|
||||
(tee_local $2
|
||||
(if (result i32)
|
||||
(i32.gt_s
|
||||
(get_local $3)
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.or
|
||||
(i32.sub
|
||||
(get_local $2)
|
||||
(i32.const 8388608)
|
||||
)
|
||||
(i32.shl
|
||||
(get_local $3)
|
||||
(i32.const 23)
|
||||
)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $3)
|
||||
(set_local $1
|
||||
(f32.abs
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(set_local $8
|
||||
(f32.add
|
||||
(tee_local $0
|
||||
(f32.reinterpret/i32
|
||||
(tee_local $2
|
||||
(if (result i32)
|
||||
(i32.gt_s
|
||||
(get_local $3)
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.or
|
||||
(i32.sub
|
||||
(get_local $2)
|
||||
(i32.const 8388608)
|
||||
)
|
||||
(i32.shl
|
||||
(get_local $3)
|
||||
(i32.const 23)
|
||||
)
|
||||
)
|
||||
(i32.shr_u
|
||||
(get_local $2)
|
||||
(i32.sub
|
||||
(i32.const 1)
|
||||
(get_local $3)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $9)
|
||||
(set_local $1
|
||||
(f32.neg
|
||||
(get_local $1)
|
||||
)
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(if
|
||||
@ -12657,7 +12640,7 @@
|
||||
(tee_local $4
|
||||
(i32.eq
|
||||
(get_local $3)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
)
|
||||
@ -12668,17 +12651,14 @@
|
||||
(get_local $3)
|
||||
(i32.const 1)
|
||||
)
|
||||
(get_local $6)
|
||||
(get_local $5)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(tee_local $4
|
||||
(f32.gt
|
||||
(f32.mul
|
||||
(f32.const 2)
|
||||
(get_local $0)
|
||||
)
|
||||
(get_local $8)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
@ -12686,10 +12666,7 @@
|
||||
(if
|
||||
(tee_local $4
|
||||
(f32.eq
|
||||
(f32.mul
|
||||
(f32.const 2)
|
||||
(get_local $0)
|
||||
)
|
||||
(get_local $8)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
@ -12713,7 +12690,7 @@
|
||||
)
|
||||
)
|
||||
(if
|
||||
(get_local $8)
|
||||
(get_local $9)
|
||||
(set_local $0
|
||||
(f32.neg
|
||||
(get_local $0)
|
||||
|
Reference in New Issue
Block a user