2017-12-02 18:37:59 +01:00
|
|
|
(module
|
2019-03-01 00:01:23 +01:00
|
|
|
(type $FUNCSIG$v (func))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 0)
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2017-12-02 18:37:59 +01:00
|
|
|
(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))
|
2019-02-21 00:11:22 +01:00
|
|
|
(global $~lib/memory/HEAP_BASE i32 (i32.const 8))
|
2017-12-02 18:37:59 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2017-12-02 18:37:59 +01:00
|
|
|
(start $start)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start:unary (; 0 ;) (type $FUNCSIG$v)
|
2017-12-03 01:18:35 +01:00
|
|
|
(local $0 i32)
|
2017-12-12 09:38:20 +01:00
|
|
|
(local $1 i64)
|
|
|
|
(local $2 f32)
|
|
|
|
(local $3 f64)
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
drop
|
|
|
|
i32.const -1
|
|
|
|
drop
|
|
|
|
i32.const 1
|
|
|
|
i32.eqz
|
|
|
|
drop
|
|
|
|
i32.const 1
|
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
|
|
|
drop
|
|
|
|
f64.const 1.25
|
|
|
|
drop
|
|
|
|
f64.const -1.25
|
|
|
|
drop
|
|
|
|
f64.const 1.25
|
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
drop
|
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.eqz
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const -1
|
|
|
|
i32.xor
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
|
|
|
local.tee $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/i
|
|
|
|
local.tee $0
|
2018-11-08 08:04:24 +01:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
local.get $0
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
drop
|
|
|
|
i64.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.sub
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.eqz
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const -1
|
|
|
|
i64.xor
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const -1
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_u
|
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.const -1
|
|
|
|
i64.xor
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 0
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.eqz
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_u
|
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const -1
|
|
|
|
i64.xor
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
|
|
|
local.tee $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result i64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/I
|
|
|
|
local.tee $1
|
2018-11-08 08:04:24 +01:00
|
|
|
i64.const 1
|
|
|
|
i64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
local.get $1
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.neg
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 0
|
|
|
|
f32.eq
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1.25
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const -1.25
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1.25
|
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
|
|
|
global.get $unary/f
|
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.neg
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 0
|
|
|
|
f32.eq
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/i
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
|
|
|
local.tee $2
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/f
|
|
|
|
local.tee $2
|
2018-11-08 08:04:24 +01:00
|
|
|
f32.const 1
|
|
|
|
f32.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
local.get $2
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/f
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.neg
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
|
|
|
drop
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1.25
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const -1.25
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1.25
|
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_u
|
|
|
|
global.set $unary/I
|
|
|
|
global.get $unary/F
|
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.neg
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 0
|
|
|
|
f64.eq
|
2019-02-05 17:12:10 +01:00
|
|
|
i64.extend_i32_u
|
|
|
|
global.set $unary/I
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
global.get $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
|
|
|
local.tee $3
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.add
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2018-11-08 08:04:24 +01:00
|
|
|
block (result f64)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $unary/F
|
|
|
|
local.tee $3
|
2018-11-08 08:04:24 +01:00
|
|
|
f64.const 1
|
|
|
|
f64.sub
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
|
|
|
local.get $3
|
2018-11-08 08:04:24 +01:00
|
|
|
end
|
2019-02-05 17:12:10 +01:00
|
|
|
global.set $unary/F
|
2017-12-02 18:37:59 +01:00
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $start (; 1 ;) (type $FUNCSIG$v)
|
2019-02-21 00:11:22 +01:00
|
|
|
call $start:unary
|
|
|
|
)
|
2019-03-01 00:01:23 +01:00
|
|
|
(func $null (; 2 ;) (type $FUNCSIG$v)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2017-12-02 18:37:59 +01:00
|
|
|
)
|