| 1 |
(module |
| 2 |
(type (;0;) (func (param f64 f32) (result f32))) |
| 3 |
(type (;1;) (func (param f32 f64) (result f32))) |
| 4 |
(export "no_demote_mixed_sub" (func 0)) |
| 5 |
(export "no_demote_mixed_sub_commuted" (func 1)) |
| 6 |
(func (;0;) (type 0) (param $x f64) (param $y f32) (result f32) |
| 7 |
local.get $x |
| 8 |
local.get $y |
| 9 |
f64.promote_f32 |
| 10 |
f64.sub |
| 11 |
f32.demote_f64 |
| 12 |
) |
| 13 |
(func (;1;) (type 1) (param $y f32) (param $x f64) (result f32) |
| 14 |
local.get $y |
| 15 |
f64.promote_f32 |
| 16 |
local.get $x |
| 17 |
f64.sub |
| 18 |
f32.demote_f64 |
| 19 |
) |
| 20 |
) |