Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 1 | A8 over A8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 2 | 17 values: |
| 3 | ☠ v0 = splat 0 (0) |
| 4 | v1 = load8 arg(0) |
| 5 | ⤴ v2 = splat 3B808081 (0.0039215689) |
| 6 | v3 = to_f32 v1 |
| 7 | v4 = mul_f32 v2 v3 |
| 8 | v5 = load8 arg(1) |
| 9 | v6 = to_f32 v5 |
| 10 | v7 = mul_f32 v2 v6 |
| 11 | ⤴ v8 = splat 3F800000 (1) |
| 12 | v9 = sub_f32 v8 v4 |
| 13 | ☠ v10 = mul_f32 v0 v9 |
| 14 | v11 = mad_f32 v7 v9 v4 |
| 15 | ⤴ v12 = splat 437F0000 (255) |
| 16 | ⤴ v13 = splat 3F000000 (0.5) |
| 17 | v14 = mad_f32 v11 v12 v13 |
| 18 | v15 = to_i32 v14 |
| 19 | store8 arg(1) v15 |
| 20 | |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 21 | 7 registers, 15 instructions: |
Mike Klein | c2d9a31 | 2019-06-05 14:12:16 +0000 | [diff] [blame] | 22 | r0 = splat 3B808081 (0.0039215689) |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 23 | r1 = splat 3F800000 (1) |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 24 | r2 = splat 437F0000 (255) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 25 | r3 = splat 3F000000 (0.5) |
| 26 | loop: |
| 27 | r4 = load8 arg(0) |
Mike Klein | 9656dce | 2019-06-04 11:33:25 -0500 | [diff] [blame] | 28 | r4 = to_f32 r4 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 29 | r4 = mul_f32 r0 r4 |
Mike Klein | 9656dce | 2019-06-04 11:33:25 -0500 | [diff] [blame] | 30 | r5 = load8 arg(1) |
| 31 | r5 = to_f32 r5 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 32 | r5 = mul_f32 r0 r5 |
| 33 | r6 = sub_f32 r1 r4 |
| 34 | r6 = mad_f32 r5 r6 r4 |
| 35 | r6 = mad_f32 r6 r2 r3 |
| 36 | r6 = to_i32 r6 |
| 37 | store8 arg(1) r6 |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 38 | |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 39 | A8 over G8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 40 | 23 values: |
| 41 | ☠ v0 = splat 0 (0) |
| 42 | v1 = load8 arg(0) |
| 43 | ⤴ v2 = splat 3B808081 (0.0039215689) |
| 44 | v3 = to_f32 v1 |
| 45 | v4 = mul_f32 v2 v3 |
| 46 | v5 = load8 arg(1) |
| 47 | v6 = to_f32 v5 |
| 48 | v7 = mul_f32 v2 v6 |
| 49 | ⤴ v8 = splat 3F800000 (1) |
| 50 | v9 = sub_f32 v8 v4 |
| 51 | v10 = mul_f32 v7 v9 |
| 52 | ☠ v11 = mad_f32 v8 v9 v4 |
| 53 | ⤴ v12 = splat 3E59B3D0 (0.21259999) |
| 54 | ⤴ v13 = splat 3F371759 (0.71520001) |
| 55 | ⤴ v14 = splat 3D93DD98 (0.0722) |
| 56 | v15 = mul_f32 v10 v14 |
| 57 | v16 = mad_f32 v10 v13 v15 |
| 58 | v17 = mad_f32 v10 v12 v16 |
| 59 | ⤴ v18 = splat 437F0000 (255) |
| 60 | ⤴ v19 = splat 3F000000 (0.5) |
| 61 | v20 = mad_f32 v17 v18 v19 |
| 62 | v21 = to_i32 v20 |
| 63 | store8 arg(1) v21 |
| 64 | |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 65 | 9 registers, 21 instructions: |
| 66 | r0 = splat 3B808081 (0.0039215689) |
| 67 | r1 = splat 3F800000 (1) |
| 68 | r2 = splat 3E59B3D0 (0.21259999) |
| 69 | r3 = splat 3F371759 (0.71520001) |
| 70 | r4 = splat 3D93DD98 (0.0722) |
| 71 | r5 = splat 437F0000 (255) |
| 72 | r6 = splat 3F000000 (0.5) |
| 73 | loop: |
| 74 | r7 = load8 arg(0) |
| 75 | r7 = to_f32 r7 |
| 76 | r7 = mul_f32 r0 r7 |
| 77 | r8 = load8 arg(1) |
| 78 | r8 = to_f32 r8 |
| 79 | r8 = mul_f32 r0 r8 |
| 80 | r7 = sub_f32 r1 r7 |
| 81 | r7 = mul_f32 r8 r7 |
| 82 | r8 = mul_f32 r7 r4 |
| 83 | r8 = mad_f32 r7 r3 r8 |
| 84 | r8 = mad_f32 r7 r2 r8 |
| 85 | r8 = mad_f32 r8 r5 r6 |
| 86 | r8 = to_i32 r8 |
| 87 | store8 arg(1) r8 |
| 88 | |
| 89 | A8 over RGBA_8888 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 90 | 39 values: |
| 91 | ☠ v0 = splat 0 (0) |
| 92 | v1 = load8 arg(0) |
| 93 | ⤴ v2 = splat 3B808081 (0.0039215689) |
| 94 | v3 = to_f32 v1 |
| 95 | v4 = mul_f32 v2 v3 |
| 96 | v5 = load32 arg(1) |
| 97 | ⤴ v6 = splat FF (3.5733111e-43) |
| 98 | v7 = extract v5 0 v6 |
| 99 | v8 = to_f32 v7 |
| 100 | v9 = mul_f32 v2 v8 |
| 101 | v10 = extract v5 8 v6 |
| 102 | v11 = to_f32 v10 |
| 103 | v12 = mul_f32 v2 v11 |
| 104 | v13 = extract v5 16 v6 |
| 105 | v14 = to_f32 v13 |
| 106 | v15 = mul_f32 v2 v14 |
| 107 | v16 = extract v5 24 v6 |
| 108 | v17 = to_f32 v16 |
| 109 | v18 = mul_f32 v2 v17 |
| 110 | ⤴ v19 = splat 3F800000 (1) |
| 111 | v20 = sub_f32 v19 v4 |
| 112 | v21 = mul_f32 v9 v20 |
| 113 | v22 = mul_f32 v12 v20 |
| 114 | v23 = mul_f32 v15 v20 |
| 115 | v24 = mad_f32 v18 v20 v4 |
| 116 | ⤴ v25 = splat 437F0000 (255) |
| 117 | ⤴ v26 = splat 3F000000 (0.5) |
| 118 | v27 = mad_f32 v21 v25 v26 |
| 119 | v28 = to_i32 v27 |
| 120 | v29 = mad_f32 v22 v25 v26 |
| 121 | v30 = to_i32 v29 |
| 122 | v31 = mad_f32 v23 v25 v26 |
| 123 | v32 = to_i32 v31 |
| 124 | v33 = mad_f32 v24 v25 v26 |
| 125 | v34 = to_i32 v33 |
| 126 | v35 = pack v28 v30 8 |
| 127 | v36 = pack v32 v34 8 |
| 128 | v37 = pack v35 v36 16 |
| 129 | store32 arg(1) v37 |
| 130 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 131 | 11 registers, 38 instructions: |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 132 | r0 = splat 3B808081 (0.0039215689) |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 133 | r1 = splat FF (3.5733111e-43) |
| 134 | r2 = splat 3F800000 (1) |
| 135 | r3 = splat 437F0000 (255) |
| 136 | r4 = splat 3F000000 (0.5) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 137 | loop: |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 138 | r5 = load8 arg(0) |
Mike Klein | 9656dce | 2019-06-04 11:33:25 -0500 | [diff] [blame] | 139 | r5 = to_f32 r5 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 140 | r5 = mul_f32 r0 r5 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 141 | r6 = load32 arg(1) |
| 142 | r7 = extract r6 0 r1 |
| 143 | r7 = to_f32 r7 |
| 144 | r7 = mul_f32 r0 r7 |
| 145 | r8 = extract r6 8 r1 |
| 146 | r8 = to_f32 r8 |
| 147 | r8 = mul_f32 r0 r8 |
| 148 | r9 = extract r6 16 r1 |
| 149 | r9 = to_f32 r9 |
| 150 | r9 = mul_f32 r0 r9 |
| 151 | r6 = extract r6 24 r1 |
| 152 | r6 = to_f32 r6 |
| 153 | r6 = mul_f32 r0 r6 |
| 154 | r10 = sub_f32 r2 r5 |
| 155 | r7 = mul_f32 r7 r10 |
| 156 | r8 = mul_f32 r8 r10 |
| 157 | r9 = mul_f32 r9 r10 |
| 158 | r10 = mad_f32 r6 r10 r5 |
| 159 | r7 = mad_f32 r7 r3 r4 |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 160 | r7 = to_i32 r7 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 161 | r8 = mad_f32 r8 r3 r4 |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 162 | r8 = to_i32 r8 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 163 | r9 = mad_f32 r9 r3 r4 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 164 | r9 = to_i32 r9 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 165 | r10 = mad_f32 r10 r3 r4 |
| 166 | r10 = to_i32 r10 |
| 167 | r8 = pack r7 r8 8 |
| 168 | r10 = pack r9 r10 8 |
| 169 | r10 = pack r8 r10 16 |
| 170 | store32 arg(1) r10 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 171 | |
| 172 | G8 over A8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 173 | 17 values: |
| 174 | ☠ v0 = load8 arg(0) |
| 175 | ⤴ v1 = splat 3B808081 (0.0039215689) |
| 176 | ☠ v2 = to_f32 v0 |
| 177 | ☠ v3 = mul_f32 v1 v2 |
| 178 | ⤴ v4 = splat 3F800000 (1) |
| 179 | ☠ v5 = splat 0 (0) |
| 180 | v6 = load8 arg(1) |
| 181 | v7 = to_f32 v6 |
| 182 | v8 = mul_f32 v1 v7 |
| 183 | ⤴ v9 = sub_f32 v4 v4 |
| 184 | ☠ v10 = mad_f32 v5 v9 v3 |
| 185 | v11 = mad_f32 v8 v9 v4 |
| 186 | ⤴ v12 = splat 437F0000 (255) |
| 187 | ⤴ v13 = splat 3F000000 (0.5) |
| 188 | v14 = mad_f32 v11 v12 v13 |
| 189 | v15 = to_i32 v14 |
| 190 | store8 arg(1) v15 |
| 191 | |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 192 | 6 registers, 12 instructions: |
| 193 | r0 = splat 3B808081 (0.0039215689) |
| 194 | r1 = splat 3F800000 (1) |
| 195 | r2 = sub_f32 r1 r1 |
| 196 | r3 = splat 437F0000 (255) |
| 197 | r4 = splat 3F000000 (0.5) |
| 198 | loop: |
| 199 | r5 = load8 arg(1) |
| 200 | r5 = to_f32 r5 |
| 201 | r5 = mul_f32 r0 r5 |
| 202 | r5 = mad_f32 r5 r2 r1 |
| 203 | r5 = mad_f32 r5 r3 r4 |
| 204 | r5 = to_i32 r5 |
| 205 | store8 arg(1) r5 |
| 206 | |
| 207 | G8 over G8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 208 | 22 values: |
| 209 | v0 = load8 arg(0) |
| 210 | ⤴ v1 = splat 3B808081 (0.0039215689) |
| 211 | v2 = to_f32 v0 |
| 212 | v3 = mul_f32 v1 v2 |
| 213 | ⤴ v4 = splat 3F800000 (1) |
| 214 | v5 = load8 arg(1) |
| 215 | v6 = to_f32 v5 |
| 216 | v7 = mul_f32 v1 v6 |
| 217 | ⤴ v8 = sub_f32 v4 v4 |
| 218 | v9 = mad_f32 v7 v8 v3 |
| 219 | ☠ v10 = mad_f32 v4 v8 v4 |
| 220 | ⤴ v11 = splat 3E59B3D0 (0.21259999) |
| 221 | ⤴ v12 = splat 3F371759 (0.71520001) |
| 222 | ⤴ v13 = splat 3D93DD98 (0.0722) |
| 223 | v14 = mul_f32 v9 v13 |
| 224 | v15 = mad_f32 v9 v12 v14 |
| 225 | v16 = mad_f32 v9 v11 v15 |
| 226 | ⤴ v17 = splat 437F0000 (255) |
| 227 | ⤴ v18 = splat 3F000000 (0.5) |
| 228 | v19 = mad_f32 v16 v17 v18 |
| 229 | v20 = to_i32 v19 |
| 230 | store8 arg(1) v20 |
| 231 | |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 232 | 10 registers, 21 instructions: |
| 233 | r0 = splat 3B808081 (0.0039215689) |
| 234 | r1 = splat 3F800000 (1) |
| 235 | r2 = sub_f32 r1 r1 |
| 236 | r3 = splat 3E59B3D0 (0.21259999) |
| 237 | r4 = splat 3F371759 (0.71520001) |
| 238 | r5 = splat 3D93DD98 (0.0722) |
| 239 | r6 = splat 437F0000 (255) |
| 240 | r7 = splat 3F000000 (0.5) |
| 241 | loop: |
| 242 | r8 = load8 arg(0) |
| 243 | r8 = to_f32 r8 |
| 244 | r8 = mul_f32 r0 r8 |
| 245 | r9 = load8 arg(1) |
| 246 | r9 = to_f32 r9 |
| 247 | r9 = mul_f32 r0 r9 |
| 248 | r9 = mad_f32 r9 r2 r8 |
| 249 | r8 = mul_f32 r9 r5 |
| 250 | r8 = mad_f32 r9 r4 r8 |
| 251 | r8 = mad_f32 r9 r3 r8 |
| 252 | r8 = mad_f32 r8 r6 r7 |
| 253 | r8 = to_i32 r8 |
| 254 | store8 arg(1) r8 |
| 255 | |
| 256 | G8 over RGBA_8888 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 257 | 38 values: |
| 258 | v0 = load8 arg(0) |
| 259 | ⤴ v1 = splat 3B808081 (0.0039215689) |
| 260 | v2 = to_f32 v0 |
| 261 | v3 = mul_f32 v1 v2 |
| 262 | ⤴ v4 = splat 3F800000 (1) |
| 263 | v5 = load32 arg(1) |
| 264 | ⤴ v6 = splat FF (3.5733111e-43) |
| 265 | v7 = extract v5 0 v6 |
| 266 | v8 = to_f32 v7 |
| 267 | v9 = mul_f32 v1 v8 |
| 268 | v10 = extract v5 8 v6 |
| 269 | v11 = to_f32 v10 |
| 270 | v12 = mul_f32 v1 v11 |
| 271 | v13 = extract v5 16 v6 |
| 272 | v14 = to_f32 v13 |
| 273 | v15 = mul_f32 v1 v14 |
| 274 | v16 = extract v5 24 v6 |
| 275 | v17 = to_f32 v16 |
| 276 | v18 = mul_f32 v1 v17 |
| 277 | ⤴ v19 = sub_f32 v4 v4 |
| 278 | v20 = mad_f32 v9 v19 v3 |
| 279 | v21 = mad_f32 v12 v19 v3 |
| 280 | v22 = mad_f32 v15 v19 v3 |
| 281 | v23 = mad_f32 v18 v19 v4 |
| 282 | ⤴ v24 = splat 437F0000 (255) |
| 283 | ⤴ v25 = splat 3F000000 (0.5) |
| 284 | v26 = mad_f32 v20 v24 v25 |
| 285 | v27 = to_i32 v26 |
| 286 | v28 = mad_f32 v21 v24 v25 |
| 287 | v29 = to_i32 v28 |
| 288 | v30 = mad_f32 v22 v24 v25 |
| 289 | v31 = to_i32 v30 |
| 290 | v32 = mad_f32 v23 v24 v25 |
| 291 | v33 = to_i32 v32 |
| 292 | v34 = pack v27 v29 8 |
| 293 | v35 = pack v31 v33 8 |
| 294 | v36 = pack v34 v35 16 |
| 295 | store32 arg(1) v36 |
| 296 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 297 | 11 registers, 38 instructions: |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 298 | r0 = splat 3B808081 (0.0039215689) |
| 299 | r1 = splat 3F800000 (1) |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 300 | r2 = splat FF (3.5733111e-43) |
| 301 | r3 = sub_f32 r1 r1 |
| 302 | r4 = splat 437F0000 (255) |
| 303 | r5 = splat 3F000000 (0.5) |
| 304 | loop: |
| 305 | r6 = load8 arg(0) |
| 306 | r6 = to_f32 r6 |
| 307 | r6 = mul_f32 r0 r6 |
| 308 | r7 = load32 arg(1) |
| 309 | r8 = extract r7 0 r2 |
| 310 | r8 = to_f32 r8 |
| 311 | r8 = mul_f32 r0 r8 |
| 312 | r9 = extract r7 8 r2 |
| 313 | r9 = to_f32 r9 |
| 314 | r9 = mul_f32 r0 r9 |
| 315 | r10 = extract r7 16 r2 |
| 316 | r10 = to_f32 r10 |
| 317 | r10 = mul_f32 r0 r10 |
| 318 | r7 = extract r7 24 r2 |
| 319 | r7 = to_f32 r7 |
| 320 | r7 = mul_f32 r0 r7 |
| 321 | r8 = mad_f32 r8 r3 r6 |
| 322 | r9 = mad_f32 r9 r3 r6 |
| 323 | r10 = mad_f32 r10 r3 r6 |
| 324 | r7 = mad_f32 r7 r3 r1 |
| 325 | r8 = mad_f32 r8 r4 r5 |
| 326 | r8 = to_i32 r8 |
| 327 | r9 = mad_f32 r9 r4 r5 |
| 328 | r9 = to_i32 r9 |
| 329 | r10 = mad_f32 r10 r4 r5 |
| 330 | r10 = to_i32 r10 |
| 331 | r7 = mad_f32 r7 r4 r5 |
| 332 | r7 = to_i32 r7 |
| 333 | r9 = pack r8 r9 8 |
| 334 | r7 = pack r10 r7 8 |
| 335 | r7 = pack r9 r7 16 |
| 336 | store32 arg(1) r7 |
| 337 | |
| 338 | RGBA_8888 over A8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 339 | 30 values: |
| 340 | v0 = load32 arg(0) |
| 341 | ⤴ v1 = splat FF (3.5733111e-43) |
| 342 | ☠ v2 = extract v0 0 v1 |
| 343 | ⤴ v3 = splat 3B808081 (0.0039215689) |
| 344 | ☠ v4 = to_f32 v2 |
| 345 | ☠ v5 = mul_f32 v3 v4 |
| 346 | ☠ v6 = extract v0 8 v1 |
| 347 | ☠ v7 = to_f32 v6 |
| 348 | ☠ v8 = mul_f32 v3 v7 |
| 349 | ☠ v9 = extract v0 16 v1 |
| 350 | ☠ v10 = to_f32 v9 |
| 351 | ☠ v11 = mul_f32 v3 v10 |
| 352 | v12 = extract v0 24 v1 |
| 353 | v13 = to_f32 v12 |
| 354 | v14 = mul_f32 v3 v13 |
| 355 | ☠ v15 = splat 0 (0) |
| 356 | v16 = load8 arg(1) |
| 357 | v17 = to_f32 v16 |
| 358 | v18 = mul_f32 v3 v17 |
| 359 | ⤴ v19 = splat 3F800000 (1) |
| 360 | v20 = sub_f32 v19 v14 |
| 361 | ☠ v21 = mad_f32 v15 v20 v5 |
| 362 | ☠ v22 = mad_f32 v15 v20 v8 |
| 363 | ☠ v23 = mad_f32 v15 v20 v11 |
| 364 | v24 = mad_f32 v18 v20 v14 |
| 365 | ⤴ v25 = splat 437F0000 (255) |
| 366 | ⤴ v26 = splat 3F000000 (0.5) |
| 367 | v27 = mad_f32 v24 v25 v26 |
| 368 | v28 = to_i32 v27 |
| 369 | store8 arg(1) v28 |
| 370 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 371 | 8 registers, 17 instructions: |
| 372 | r0 = splat FF (3.5733111e-43) |
| 373 | r1 = splat 3B808081 (0.0039215689) |
| 374 | r2 = splat 3F800000 (1) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 375 | r3 = splat 437F0000 (255) |
| 376 | r4 = splat 3F000000 (0.5) |
| 377 | loop: |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 378 | r5 = load32 arg(0) |
| 379 | r5 = extract r5 24 r0 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 380 | r5 = to_f32 r5 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 381 | r5 = mul_f32 r1 r5 |
| 382 | r6 = load8 arg(1) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 383 | r6 = to_f32 r6 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 384 | r6 = mul_f32 r1 r6 |
| 385 | r7 = sub_f32 r2 r5 |
| 386 | r7 = mad_f32 r6 r7 r5 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 387 | r7 = mad_f32 r7 r3 r4 |
| 388 | r7 = to_i32 r7 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 389 | store8 arg(1) r7 |
| 390 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 391 | RGBA_8888 over G8 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 392 | 35 values: |
| 393 | v0 = load32 arg(0) |
| 394 | ⤴ v1 = splat FF (3.5733111e-43) |
| 395 | v2 = extract v0 0 v1 |
| 396 | ⤴ v3 = splat 3B808081 (0.0039215689) |
| 397 | v4 = to_f32 v2 |
| 398 | v5 = mul_f32 v3 v4 |
| 399 | v6 = extract v0 8 v1 |
| 400 | v7 = to_f32 v6 |
| 401 | v8 = mul_f32 v3 v7 |
| 402 | v9 = extract v0 16 v1 |
| 403 | v10 = to_f32 v9 |
| 404 | v11 = mul_f32 v3 v10 |
| 405 | v12 = extract v0 24 v1 |
| 406 | v13 = to_f32 v12 |
| 407 | v14 = mul_f32 v3 v13 |
| 408 | v15 = load8 arg(1) |
| 409 | v16 = to_f32 v15 |
| 410 | v17 = mul_f32 v3 v16 |
| 411 | ⤴ v18 = splat 3F800000 (1) |
| 412 | v19 = sub_f32 v18 v14 |
| 413 | v20 = mad_f32 v17 v19 v5 |
| 414 | v21 = mad_f32 v17 v19 v8 |
| 415 | v22 = mad_f32 v17 v19 v11 |
| 416 | ☠ v23 = mad_f32 v18 v19 v14 |
| 417 | ⤴ v24 = splat 3E59B3D0 (0.21259999) |
| 418 | ⤴ v25 = splat 3F371759 (0.71520001) |
| 419 | ⤴ v26 = splat 3D93DD98 (0.0722) |
| 420 | v27 = mul_f32 v22 v26 |
| 421 | v28 = mad_f32 v21 v25 v27 |
| 422 | v29 = mad_f32 v20 v24 v28 |
| 423 | ⤴ v30 = splat 437F0000 (255) |
| 424 | ⤴ v31 = splat 3F000000 (0.5) |
| 425 | v32 = mad_f32 v29 v30 v31 |
| 426 | v33 = to_i32 v32 |
| 427 | store8 arg(1) v33 |
| 428 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 429 | 13 registers, 34 instructions: |
| 430 | r0 = splat FF (3.5733111e-43) |
| 431 | r1 = splat 3B808081 (0.0039215689) |
| 432 | r2 = splat 3F800000 (1) |
| 433 | r3 = splat 3E59B3D0 (0.21259999) |
| 434 | r4 = splat 3F371759 (0.71520001) |
| 435 | r5 = splat 3D93DD98 (0.0722) |
| 436 | r6 = splat 437F0000 (255) |
| 437 | r7 = splat 3F000000 (0.5) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 438 | loop: |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 439 | r8 = load32 arg(0) |
| 440 | r9 = extract r8 0 r0 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 441 | r9 = to_f32 r9 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 442 | r9 = mul_f32 r1 r9 |
| 443 | r10 = extract r8 8 r0 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 444 | r10 = to_f32 r10 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 445 | r10 = mul_f32 r1 r10 |
| 446 | r11 = extract r8 16 r0 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 447 | r11 = to_f32 r11 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 448 | r11 = mul_f32 r1 r11 |
| 449 | r8 = extract r8 24 r0 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 450 | r8 = to_f32 r8 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 451 | r8 = mul_f32 r1 r8 |
| 452 | r12 = load8 arg(1) |
| 453 | r12 = to_f32 r12 |
| 454 | r12 = mul_f32 r1 r12 |
| 455 | r8 = sub_f32 r2 r8 |
| 456 | r9 = mad_f32 r12 r8 r9 |
| 457 | r10 = mad_f32 r12 r8 r10 |
| 458 | r8 = mad_f32 r12 r8 r11 |
| 459 | r8 = mul_f32 r8 r5 |
| 460 | r8 = mad_f32 r10 r4 r8 |
| 461 | r8 = mad_f32 r9 r3 r8 |
| 462 | r8 = mad_f32 r8 r6 r7 |
| 463 | r8 = to_i32 r8 |
| 464 | store8 arg(1) r8 |
| 465 | |
| 466 | RGBA_8888 over RGBA_8888 |
Mike Klein | 22ea7e9 | 2019-06-10 12:05:48 -0500 | [diff] [blame] | 467 | 48 values: |
| 468 | v0 = load32 arg(0) |
| 469 | ⤴ v1 = splat FF (3.5733111e-43) |
| 470 | v2 = extract v0 0 v1 |
| 471 | ⤴ v3 = splat 3B808081 (0.0039215689) |
| 472 | v4 = to_f32 v2 |
| 473 | v5 = mul_f32 v3 v4 |
| 474 | v6 = extract v0 8 v1 |
| 475 | v7 = to_f32 v6 |
| 476 | v8 = mul_f32 v3 v7 |
| 477 | v9 = extract v0 16 v1 |
| 478 | v10 = to_f32 v9 |
| 479 | v11 = mul_f32 v3 v10 |
| 480 | v12 = extract v0 24 v1 |
| 481 | v13 = to_f32 v12 |
| 482 | v14 = mul_f32 v3 v13 |
| 483 | v15 = load32 arg(1) |
| 484 | v16 = extract v15 0 v1 |
| 485 | v17 = to_f32 v16 |
| 486 | v18 = mul_f32 v3 v17 |
| 487 | v19 = extract v15 8 v1 |
| 488 | v20 = to_f32 v19 |
| 489 | v21 = mul_f32 v3 v20 |
| 490 | v22 = extract v15 16 v1 |
| 491 | v23 = to_f32 v22 |
| 492 | v24 = mul_f32 v3 v23 |
| 493 | v25 = extract v15 24 v1 |
| 494 | v26 = to_f32 v25 |
| 495 | v27 = mul_f32 v3 v26 |
| 496 | ⤴ v28 = splat 3F800000 (1) |
| 497 | v29 = sub_f32 v28 v14 |
| 498 | v30 = mad_f32 v18 v29 v5 |
| 499 | v31 = mad_f32 v21 v29 v8 |
| 500 | v32 = mad_f32 v24 v29 v11 |
| 501 | v33 = mad_f32 v27 v29 v14 |
| 502 | ⤴ v34 = splat 437F0000 (255) |
| 503 | ⤴ v35 = splat 3F000000 (0.5) |
| 504 | v36 = mad_f32 v30 v34 v35 |
| 505 | v37 = to_i32 v36 |
| 506 | v38 = mad_f32 v31 v34 v35 |
| 507 | v39 = to_i32 v38 |
| 508 | v40 = mad_f32 v32 v34 v35 |
| 509 | v41 = to_i32 v40 |
| 510 | v42 = mad_f32 v33 v34 v35 |
| 511 | v43 = to_i32 v42 |
| 512 | v44 = pack v37 v39 8 |
| 513 | v45 = pack v41 v43 8 |
| 514 | v46 = pack v44 v45 16 |
| 515 | store32 arg(1) v46 |
| 516 | |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 517 | 14 registers, 48 instructions: |
| 518 | r0 = splat FF (3.5733111e-43) |
| 519 | r1 = splat 3B808081 (0.0039215689) |
| 520 | r2 = splat 3F800000 (1) |
| 521 | r3 = splat 437F0000 (255) |
| 522 | r4 = splat 3F000000 (0.5) |
| 523 | loop: |
| 524 | r5 = load32 arg(0) |
| 525 | r6 = extract r5 0 r0 |
| 526 | r6 = to_f32 r6 |
| 527 | r6 = mul_f32 r1 r6 |
| 528 | r7 = extract r5 8 r0 |
| 529 | r7 = to_f32 r7 |
| 530 | r7 = mul_f32 r1 r7 |
| 531 | r8 = extract r5 16 r0 |
| 532 | r8 = to_f32 r8 |
| 533 | r8 = mul_f32 r1 r8 |
| 534 | r5 = extract r5 24 r0 |
| 535 | r5 = to_f32 r5 |
| 536 | r5 = mul_f32 r1 r5 |
| 537 | r9 = load32 arg(1) |
| 538 | r10 = extract r9 0 r0 |
| 539 | r10 = to_f32 r10 |
| 540 | r10 = mul_f32 r1 r10 |
| 541 | r11 = extract r9 8 r0 |
| 542 | r11 = to_f32 r11 |
| 543 | r11 = mul_f32 r1 r11 |
| 544 | r12 = extract r9 16 r0 |
| 545 | r12 = to_f32 r12 |
| 546 | r12 = mul_f32 r1 r12 |
| 547 | r9 = extract r9 24 r0 |
| 548 | r9 = to_f32 r9 |
| 549 | r9 = mul_f32 r1 r9 |
| 550 | r13 = sub_f32 r2 r5 |
| 551 | r10 = mad_f32 r10 r13 r6 |
| 552 | r11 = mad_f32 r11 r13 r7 |
| 553 | r12 = mad_f32 r12 r13 r8 |
| 554 | r13 = mad_f32 r9 r13 r5 |
| 555 | r10 = mad_f32 r10 r3 r4 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 556 | r10 = to_i32 r10 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 557 | r11 = mad_f32 r11 r3 r4 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 558 | r11 = to_i32 r11 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 559 | r12 = mad_f32 r12 r3 r4 |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 560 | r12 = to_i32 r12 |
Mike Klein | a630732 | 2019-06-07 15:44:26 -0500 | [diff] [blame] | 561 | r13 = mad_f32 r13 r3 r4 |
| 562 | r13 = to_i32 r13 |
| 563 | r11 = pack r10 r11 8 |
| 564 | r13 = pack r12 r13 8 |
| 565 | r13 = pack r11 r13 16 |
| 566 | store32 arg(1) r13 |
Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame] | 567 | |
Mike Klein | 397fc88 | 2019-06-20 11:37:10 -0500 | [diff] [blame^] | 568 | I32 (Naive) 8888 over 8888 |
| 569 | 11 registers, 29 instructions: |
| 570 | r0 = splat FF (3.5733111e-43) |
| 571 | r1 = splat 100 (3.5873241e-43) |
| 572 | loop: |
| 573 | r2 = load32 arg(0) |
| 574 | r3 = extract r2 0 r0 |
| 575 | r4 = extract r2 8 r0 |
| 576 | r5 = extract r2 16 r0 |
| 577 | r2 = extract r2 24 r0 |
| 578 | r6 = load32 arg(1) |
| 579 | r7 = extract r6 0 r0 |
| 580 | r8 = extract r6 8 r0 |
| 581 | r9 = extract r6 16 r0 |
| 582 | r6 = extract r6 24 r0 |
| 583 | r10 = sub_i32 r1 r2 |
| 584 | r7 = mul_i32 r7 r10 |
| 585 | r7 = shr r7 8 |
| 586 | r7 = add_i32 r3 r7 |
| 587 | r8 = mul_i32 r8 r10 |
| 588 | r8 = shr r8 8 |
| 589 | r8 = add_i32 r4 r8 |
| 590 | r9 = mul_i32 r9 r10 |
| 591 | r9 = shr r9 8 |
| 592 | r9 = add_i32 r5 r9 |
| 593 | r10 = mul_i32 r6 r10 |
| 594 | r10 = shr r10 8 |
| 595 | r10 = add_i32 r2 r10 |
| 596 | r8 = pack r7 r8 8 |
| 597 | r10 = pack r9 r10 8 |
| 598 | r10 = pack r8 r10 16 |
| 599 | store32 arg(1) r10 |
| 600 | |
Mike Klein | 7b7077c | 2019-06-03 17:10:59 -0500 | [diff] [blame] | 601 | I32 8888 over 8888 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 602 | 11 registers, 29 instructions: |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 603 | r0 = splat FF (3.5733111e-43) |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 604 | r1 = splat 100 (3.5873241e-43) |
Mike Klein | 754bad3 | 2019-06-05 10:47:46 -0500 | [diff] [blame] | 605 | loop: |
| 606 | r2 = load32 arg(0) |
Mike Klein | 342b1b2 | 2019-06-13 16:43:18 -0500 | [diff] [blame] | 607 | r3 = bit_and r2 r0 |
| 608 | r4 = bytes r2 2 |
| 609 | r5 = bytes r2 3 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 610 | r2 = shr r2 24 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 611 | r6 = load32 arg(1) |
Mike Klein | 342b1b2 | 2019-06-13 16:43:18 -0500 | [diff] [blame] | 612 | r7 = bit_and r6 r0 |
| 613 | r8 = bytes r6 2 |
| 614 | r9 = bytes r6 3 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 615 | r6 = shr r6 24 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 616 | r10 = sub_i32 r1 r2 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 617 | r7 = mul_i16x2 r7 r10 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 618 | r7 = shr r7 8 |
Mike Klein | 3f59379 | 2019-06-12 12:54:52 -0500 | [diff] [blame] | 619 | r7 = add_i32 r3 r7 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 620 | r8 = mul_i16x2 r8 r10 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 621 | r8 = shr r8 8 |
| 622 | r8 = add_i32 r4 r8 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 623 | r9 = mul_i16x2 r9 r10 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 624 | r9 = shr r9 8 |
| 625 | r9 = add_i32 r5 r9 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 626 | r10 = mul_i16x2 r6 r10 |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 627 | r10 = shr r10 8 |
| 628 | r10 = add_i32 r2 r10 |
| 629 | r8 = pack r7 r8 8 |
| 630 | r10 = pack r9 r10 8 |
| 631 | r10 = pack r8 r10 16 |
| 632 | store32 arg(1) r10 |
| 633 | |
| 634 | I32 (SWAR) 8888 over 8888 |
Mike Klein | 342b1b2 | 2019-06-13 16:43:18 -0500 | [diff] [blame] | 635 | 7 registers, 16 instructions: |
Mike Klein | 7f061fb | 2019-06-13 13:12:38 -0500 | [diff] [blame] | 636 | r0 = splat 1000100 (2.3510604e-38) |
| 637 | r1 = splat FF00FF (2.3418409e-38) |
Mike Klein | 821f5e8 | 2019-06-13 10:56:51 -0500 | [diff] [blame] | 638 | r2 = splat FF00FF00 (-1.7146522e+38) |
| 639 | loop: |
| 640 | r3 = load32 arg(0) |
Mike Klein | 342b1b2 | 2019-06-13 16:43:18 -0500 | [diff] [blame] | 641 | r4 = bytes r3 404 |
Mike Klein | 7f061fb | 2019-06-13 13:12:38 -0500 | [diff] [blame] | 642 | r4 = sub_i16x2 r0 r4 |
| 643 | r5 = load32 arg(1) |
Mike Klein | 4c4945a | 2019-06-13 15:51:39 -0500 | [diff] [blame] | 644 | r6 = bit_and r5 r1 |
| 645 | r5 = shr_i16x2 r5 8 |
Mike Klein | 7f061fb | 2019-06-13 13:12:38 -0500 | [diff] [blame] | 646 | r6 = mul_i16x2 r6 r4 |
| 647 | r6 = shr_i16x2 r6 8 |
| 648 | r5 = mul_i16x2 r5 r4 |
| 649 | r5 = bit_and r5 r2 |
| 650 | r5 = bit_or r6 r5 |
| 651 | r5 = add_i32 r3 r5 |
Mike Klein | 3538908 | 2019-06-13 11:29:26 -0500 | [diff] [blame] | 652 | store32 arg(1) r5 |
Mike Klein | 7b7077c | 2019-06-03 17:10:59 -0500 | [diff] [blame] | 653 | |