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