1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
(module
(type $f32_=>_f32 (func (param f32) (result f32)))
(type $f64_=>_f64 (func (param f64) (result f64)))
(type $i32_f32_i64_f64_=>_none (func (param i32 f32 i64 f64)))
(type $f32_f64_=>_none (func (param f32 f64)))
(global $global$1 (mut f32) (f32.const 0))
(global $global$2 (mut f32) (f32.const 12.34000015258789))
(func $foo32 (param $x f32) (result f32)
(local.set $x
(call $deNan32
(local.get $x)
)
)
(call $deNan32
(call $foo32
(local.get $x)
)
)
)
(func $foo64 (param $x f64) (result f64)
(local.set $x
(call $deNan64
(local.get $x)
)
)
(call $deNan64
(call $foo64
(local.get $x)
)
)
)
(func $various (param $x i32) (param $y f32) (param $z i64) (param $w f64)
(local.set $y
(call $deNan32
(local.get $y)
)
)
(local.set $w
(call $deNan64
(local.get $w)
)
)
(nop)
)
(func $ignore-local.get (param $f f32) (param $d f64)
(local.set $f
(call $deNan32
(local.get $f)
)
)
(local.set $d
(call $deNan64
(local.get $d)
)
)
(drop
(local.get $f)
)
(drop
(local.get $d)
)
(local.set $f
(local.get $f)
)
(local.set $d
(local.get $d)
)
(drop
(local.get $f)
)
(drop
(local.get $d)
)
(drop
(call $deNan32
(f32.abs
(local.get $f)
)
)
)
(drop
(call $deNan64
(f64.abs
(local.get $d)
)
)
)
(local.set $f
(call $deNan32
(f32.abs
(local.get $f)
)
)
)
(local.set $d
(call $deNan64
(f64.abs
(local.get $d)
)
)
)
(drop
(local.get $f)
)
(drop
(local.get $d)
)
)
(func $tees (param $x f32) (result f32)
(local.set $x
(call $deNan32
(local.get $x)
)
)
(local.tee $x
(local.tee $x
(local.tee $x
(local.tee $x
(local.get $x)
)
)
)
)
)
(func $select (param $x f32) (result f32)
(local.set $x
(call $deNan32
(local.get $x)
)
)
(select
(local.get $x)
(local.get $x)
(i32.const 1)
)
)
(func $deNan32 (param $0 f32) (result f32)
(if (result f32)
(f32.eq
(local.get $0)
(local.get $0)
)
(local.get $0)
(f32.const 0)
)
)
(func $deNan64 (param $0 f64) (result f64)
(if (result f64)
(f64.eq
(local.get $0)
(local.get $0)
)
(local.get $0)
(f64.const 0)
)
)
)
|