mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
421 lines
5.8 KiB
Plaintext
421 lines
5.8 KiB
Plaintext
|
(module
|
||
|
(type $v (func))
|
||
|
(global $unary/i (mut i32) (i32.const 0))
|
||
|
(global $unary/I (mut i64) (i64.const 0))
|
||
|
(global $unary/f (mut f32) (f32.const 0))
|
||
|
(global $unary/F (mut f64) (f64.const 0))
|
||
|
(memory $0 1)
|
||
|
(data (i32.const 4) "\08\00\00\00")
|
||
|
(export "memory" (memory $0))
|
||
|
(start $start)
|
||
|
(func $start (; 0 ;) (type $v)
|
||
|
(drop
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.sub
|
||
|
(i32.const 0)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.eqz
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.xor
|
||
|
(i32.const 1)
|
||
|
(i32.const -1)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(f64.const 1.25)
|
||
|
)
|
||
|
(drop
|
||
|
(f64.neg
|
||
|
(f64.const 1.25)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(f64.eq
|
||
|
(f64.const 1.25)
|
||
|
(f64.const 0)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.sub
|
||
|
(i32.const 0)
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.eqz
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i32.xor
|
||
|
(get_global $unary/i)
|
||
|
(i32.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.add
|
||
|
(get_global $unary/i)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.sub
|
||
|
(get_global $unary/i)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.sub
|
||
|
(i32.const 0)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.eqz
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.xor
|
||
|
(i32.const 1)
|
||
|
(i32.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.sub
|
||
|
(i32.const 0)
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.eqz
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(i32.xor
|
||
|
(get_global $unary/i)
|
||
|
(i32.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(block (result i32)
|
||
|
(set_global $unary/i
|
||
|
(i32.add
|
||
|
(get_global $unary/i)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(block (result i32)
|
||
|
(set_global $unary/i
|
||
|
(i32.sub
|
||
|
(get_global $unary/i)
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/i)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
(drop
|
||
|
(i64.sub
|
||
|
(i64.const 0)
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i64.eqz
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(i64.xor
|
||
|
(get_global $unary/I)
|
||
|
(i64.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.add
|
||
|
(get_global $unary/I)
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.sub
|
||
|
(get_global $unary/I)
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.sub
|
||
|
(i64.const 0)
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.extend_s/i32
|
||
|
(i32.eqz
|
||
|
(i32.const 1)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.xor
|
||
|
(i64.const 1)
|
||
|
(i64.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.sub
|
||
|
(i64.const 0)
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.extend_s/i32
|
||
|
(i64.eqz
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.xor
|
||
|
(get_global $unary/I)
|
||
|
(i64.const -1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(block (result i64)
|
||
|
(set_global $unary/I
|
||
|
(i64.add
|
||
|
(get_global $unary/I)
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(block (result i64)
|
||
|
(set_global $unary/I
|
||
|
(i64.sub
|
||
|
(get_global $unary/I)
|
||
|
(i64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/I)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
(drop
|
||
|
(f32.neg
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(f32.eq
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 0)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(f32.add
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(f32.sub
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(f32.const 1.25)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(f32.neg
|
||
|
(f32.const 1.25)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(f64.eq
|
||
|
(f64.const 1.25)
|
||
|
(f64.const 0)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(f32.neg
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/i
|
||
|
(f32.eq
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 0)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(block (result f32)
|
||
|
(set_global $unary/f
|
||
|
(f32.add
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/f
|
||
|
(block (result f32)
|
||
|
(set_global $unary/f
|
||
|
(f32.sub
|
||
|
(get_global $unary/f)
|
||
|
(f32.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/f)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
(drop
|
||
|
(f64.neg
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
)
|
||
|
(drop
|
||
|
(f64.eq
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 0)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(f64.add
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(f64.sub
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(f64.const 1.25)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(f64.neg
|
||
|
(f64.const 1.25)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.extend_s/i32
|
||
|
(f64.eq
|
||
|
(f64.const 1.25)
|
||
|
(f64.const 0)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(f64.neg
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/I
|
||
|
(i64.extend_s/i32
|
||
|
(f64.eq
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 0)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(block (result f64)
|
||
|
(set_global $unary/F
|
||
|
(f64.add
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
)
|
||
|
(set_global $unary/F
|
||
|
(block (result f64)
|
||
|
(set_global $unary/F
|
||
|
(f64.sub
|
||
|
(get_global $unary/F)
|
||
|
(f64.const 1)
|
||
|
)
|
||
|
)
|
||
|
(get_global $unary/F)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
(;
|
||
|
[program.elements]
|
||
|
clz
|
||
|
ctz
|
||
|
popcnt
|
||
|
rotl
|
||
|
rotr
|
||
|
abs
|
||
|
ceil
|
||
|
copysign
|
||
|
floor
|
||
|
max
|
||
|
min
|
||
|
nearest
|
||
|
sqrt
|
||
|
trunc
|
||
|
isNaN
|
||
|
isFinite
|
||
|
unary/i
|
||
|
unary/I
|
||
|
unary/f
|
||
|
unary/F
|
||
|
[program.exports]
|
||
|
|
||
|
;)
|