| 1 |
(module |
| 2 |
(type (;0;) (func (result i32))) |
| 3 |
(type (;1;) (func (result f32))) |
| 4 |
(type (;2;) (func (result i64))) |
| 5 |
(func $fold-binary (;0;) (type 0) (result i32) |
| 6 |
i32.const 1 |
| 7 |
i32.const 2 |
| 8 |
i32.add |
| 9 |
) |
| 10 |
(func $fold-binary-chain (;1;) (type 0) (result i32) |
| 11 |
i32.const 1 |
| 12 |
i32.const 1 |
| 13 |
i32.const 1 |
| 14 |
i32.add |
| 15 |
i32.sub |
| 16 |
) |
| 17 |
(func $fold-compare (;2;) (type 0) (result i32) |
| 18 |
f32.const 0x1p+0 (;=1;) |
| 19 |
f32.const 0x1p+1 (;=2;) |
| 20 |
f32.le |
| 21 |
) |
| 22 |
(func $fold-unary (;3;) (type 1) (result f32) |
| 23 |
f32.const 0x1p+0 (;=1;) |
| 24 |
f32.neg |
| 25 |
f32.neg |
| 26 |
) |
| 27 |
(func $fold-convert (;4;) (type 2) (result i64) |
| 28 |
f64.const 0x0p+0 (;=0;) |
| 29 |
f32.demote_f64 |
| 30 |
i32.trunc_f32_s |
| 31 |
i64.extend_i32_s |
| 32 |
) |
| 33 |
(func $fold-select (;5;) (type 1) (result f32) |
| 34 |
f32.const 0x1p+0 (;=1;) |
| 35 |
f32.const 0x1p+1 (;=2;) |
| 36 |
i32.const 3 |
| 37 |
select |
| 38 |
) |
| 39 |
) |