| 1 |
(module |
| 2 |
(type (;0;) (func (param f32 f32) (result f32))) |
| 3 |
(type (;1;) (func (param f64 f64) (result f64))) |
| 4 |
(export "f32.compute_radix" (func 0)) |
| 5 |
(export "f64.compute_radix" (func 1)) |
| 6 |
(func (;0;) (type 0) (param $0 f32) (param $1 f32) (result f32) |
| 7 |
loop $label$0 |
| 8 |
local.get $0 |
| 9 |
local.get $0 |
| 10 |
f32.add |
| 11 |
local.tee $0 |
| 12 |
f32.const 0x1p+0 (;=1;) |
| 13 |
f32.add |
| 14 |
local.get $0 |
| 15 |
f32.sub |
| 16 |
f32.const -0x1p+0 (;=-1;) |
| 17 |
f32.add |
| 18 |
f32.const 0x0p+0 (;=0;) |
| 19 |
f32.eq |
| 20 |
br_if $label$0 |
| 21 |
end |
| 22 |
loop $label$2 |
| 23 |
local.get $0 |
| 24 |
local.get $1 |
| 25 |
f32.const 0x1p+0 (;=1;) |
| 26 |
f32.add |
| 27 |
local.tee $1 |
| 28 |
f32.add |
| 29 |
local.get $0 |
| 30 |
f32.sub |
| 31 |
local.get $1 |
| 32 |
f32.sub |
| 33 |
f32.const 0x0p+0 (;=0;) |
| 34 |
f32.ne |
| 35 |
br_if $label$2 |
| 36 |
end |
| 37 |
local.get $1 |
| 38 |
) |
| 39 |
(func (;1;) (type 1) (param $0 f64) (param $1 f64) (result f64) |
| 40 |
loop $label$0 |
| 41 |
local.get $0 |
| 42 |
local.get $0 |
| 43 |
f64.add |
| 44 |
local.tee $0 |
| 45 |
f64.const 0x1p+0 (;=1;) |
| 46 |
f64.add |
| 47 |
local.get $0 |
| 48 |
f64.sub |
| 49 |
f64.const -0x1p+0 (;=-1;) |
| 50 |
f64.add |
| 51 |
f64.const 0x0p+0 (;=0;) |
| 52 |
f64.eq |
| 53 |
br_if $label$0 |
| 54 |
end |
| 55 |
loop $label$2 |
| 56 |
local.get $0 |
| 57 |
local.get $1 |
| 58 |
f64.const 0x1p+0 (;=1;) |
| 59 |
f64.add |
| 60 |
local.tee $1 |
| 61 |
f64.add |
| 62 |
local.get $0 |
| 63 |
f64.sub |
| 64 |
local.get $1 |
| 65 |
f64.sub |
| 66 |
f64.const 0x0p+0 (;=0;) |
| 67 |
f64.ne |
| 68 |
br_if $label$2 |
| 69 |
end |
| 70 |
local.get $1 |
| 71 |
) |
| 72 |
) |