Mike Klein | 267f507 | 2019-06-03 16:27:46 -0500 | [diff] [blame^] | 1 | A8 over A8 |
| 2 | r0 = load8 arg(0) |
| 3 | r1 = splat 3B808081 (0.0039215689) |
| 4 | r0 = to_f32 r0 |
| 5 | r0 = mul_f32 r1 r0 |
| 6 | r2 = load8 arg(1) |
| 7 | r2 = to_f32 r2 |
| 8 | r2 = mul_f32 r1 r2 |
| 9 | r1 = splat 3F800000 (1) |
| 10 | r1 = sub_f32 r1 r0 |
| 11 | r1 = mad_f32 r2 r1 r0 |
| 12 | r2 = splat 437F0000 (255) |
| 13 | r0 = splat 3F000000 (0.5) |
| 14 | r0 = mad_f32 r1 r2 r0 |
| 15 | r0 = to_i32 r0 |
| 16 | store8 arg(1) r0 |
| 17 | |
| 18 | A8 over G8 |
| 19 | r0 = splat 0 (0) |
| 20 | r1 = load8 arg(0) |
| 21 | r2 = splat 3B808081 (0.0039215689) |
| 22 | r1 = to_f32 r1 |
| 23 | r1 = mul_f32 r2 r1 |
| 24 | r3 = load8 arg(1) |
| 25 | r3 = to_f32 r3 |
| 26 | r3 = mul_f32 r2 r3 |
| 27 | r2 = splat 3F800000 (1) |
| 28 | r2 = sub_f32 r2 r1 |
| 29 | r2 = mad_f32 r3 r2 r0 |
| 30 | r3 = splat 3E59B3D0 (0.21259999) |
| 31 | r0 = splat 3F371759 (0.71520001) |
| 32 | r1 = splat 3D93DD98 (0.0722) |
| 33 | r1 = mul_f32 r2 r1 |
| 34 | r1 = mad_f32 r2 r0 r1 |
| 35 | r1 = mad_f32 r2 r3 r1 |
| 36 | r3 = splat 437F0000 (255) |
| 37 | r2 = splat 3F000000 (0.5) |
| 38 | r2 = mad_f32 r1 r3 r2 |
| 39 | r2 = to_i32 r2 |
| 40 | store8 arg(1) r2 |
| 41 | |
| 42 | A8 over RGBA_8888 |
| 43 | r0 = splat 0 (0) |
| 44 | r1 = load8 arg(0) |
| 45 | r2 = splat 3B808081 (0.0039215689) |
| 46 | r1 = to_f32 r1 |
| 47 | r1 = mul_f32 r2 r1 |
| 48 | r3 = load32 arg(1) |
| 49 | r4 = splat FF (3.5733111e-43) |
| 50 | r5 = bit_and r3 r4 |
| 51 | r5 = to_f32 r5 |
| 52 | r5 = mul_f32 r2 r5 |
| 53 | r6 = shr r3 8 (1.1210388e-44) |
| 54 | r6 = bit_and r6 r4 |
| 55 | r6 = to_f32 r6 |
| 56 | r6 = mul_f32 r2 r6 |
| 57 | r7 = shr r3 10 (2.2420775e-44) |
| 58 | r7 = bit_and r7 r4 |
| 59 | r7 = to_f32 r7 |
| 60 | r7 = mul_f32 r2 r7 |
| 61 | r3 = shr r3 18 (3.3631163e-44) |
| 62 | r3 = to_f32 r3 |
| 63 | r3 = mul_f32 r2 r3 |
| 64 | r2 = splat 3F800000 (1) |
| 65 | r2 = sub_f32 r2 r1 |
| 66 | r5 = mad_f32 r5 r2 r0 |
| 67 | r6 = mad_f32 r6 r2 r0 |
| 68 | r7 = mad_f32 r7 r2 r0 |
| 69 | r2 = mad_f32 r3 r2 r1 |
| 70 | r3 = splat 437F0000 (255) |
| 71 | r1 = splat 3F000000 (0.5) |
| 72 | r5 = mad_f32 r5 r3 r1 |
| 73 | r5 = to_i32 r5 |
| 74 | r6 = mad_f32 r6 r3 r1 |
| 75 | r6 = to_i32 r6 |
| 76 | r6 = shl r6 8 (1.1210388e-44) |
| 77 | r7 = mad_f32 r7 r3 r1 |
| 78 | r7 = to_i32 r7 |
| 79 | r7 = shl r7 10 (2.2420775e-44) |
| 80 | r1 = mad_f32 r2 r3 r1 |
| 81 | r1 = to_i32 r1 |
| 82 | r1 = shl r1 18 (3.3631163e-44) |
| 83 | r6 = bit_or r5 r6 |
| 84 | r6 = bit_or r6 r7 |
| 85 | r6 = bit_or r6 r1 |
| 86 | store32 arg(1) r6 |
| 87 | |
| 88 | G8 over A8 |
| 89 | r0 = splat 3B808081 (0.0039215689) |
| 90 | r1 = splat 3F800000 (1) |
| 91 | r2 = load8 arg(1) |
| 92 | r2 = to_f32 r2 |
| 93 | r2 = mul_f32 r0 r2 |
| 94 | r0 = sub_f32 r1 r1 |
| 95 | r0 = mad_f32 r2 r0 r1 |
| 96 | r2 = splat 437F0000 (255) |
| 97 | r1 = splat 3F000000 (0.5) |
| 98 | r1 = mad_f32 r0 r2 r1 |
| 99 | r1 = to_i32 r1 |
| 100 | store8 arg(1) r1 |
| 101 | |
| 102 | G8 over G8 |
| 103 | r0 = load8 arg(0) |
| 104 | r1 = splat 3B808081 (0.0039215689) |
| 105 | r0 = to_f32 r0 |
| 106 | r0 = mul_f32 r1 r0 |
| 107 | r2 = splat 3F800000 (1) |
| 108 | r3 = load8 arg(1) |
| 109 | r3 = to_f32 r3 |
| 110 | r3 = mul_f32 r1 r3 |
| 111 | r2 = sub_f32 r2 r2 |
| 112 | r2 = mad_f32 r3 r2 r0 |
| 113 | r3 = splat 3E59B3D0 (0.21259999) |
| 114 | r0 = splat 3F371759 (0.71520001) |
| 115 | r1 = splat 3D93DD98 (0.0722) |
| 116 | r1 = mul_f32 r2 r1 |
| 117 | r1 = mad_f32 r2 r0 r1 |
| 118 | r1 = mad_f32 r2 r3 r1 |
| 119 | r3 = splat 437F0000 (255) |
| 120 | r2 = splat 3F000000 (0.5) |
| 121 | r2 = mad_f32 r1 r3 r2 |
| 122 | r2 = to_i32 r2 |
| 123 | store8 arg(1) r2 |
| 124 | |
| 125 | G8 over RGBA_8888 |
| 126 | r0 = load8 arg(0) |
| 127 | r1 = splat 3B808081 (0.0039215689) |
| 128 | r0 = to_f32 r0 |
| 129 | r0 = mul_f32 r1 r0 |
| 130 | r2 = splat 3F800000 (1) |
| 131 | r3 = load32 arg(1) |
| 132 | r4 = splat FF (3.5733111e-43) |
| 133 | r5 = bit_and r3 r4 |
| 134 | r5 = to_f32 r5 |
| 135 | r5 = mul_f32 r1 r5 |
| 136 | r6 = shr r3 8 (1.1210388e-44) |
| 137 | r6 = bit_and r6 r4 |
| 138 | r6 = to_f32 r6 |
| 139 | r6 = mul_f32 r1 r6 |
| 140 | r7 = shr r3 10 (2.2420775e-44) |
| 141 | r7 = bit_and r7 r4 |
| 142 | r7 = to_f32 r7 |
| 143 | r7 = mul_f32 r1 r7 |
| 144 | r3 = shr r3 18 (3.3631163e-44) |
| 145 | r3 = to_f32 r3 |
| 146 | r3 = mul_f32 r1 r3 |
| 147 | r1 = sub_f32 r2 r2 |
| 148 | r5 = mad_f32 r5 r1 r0 |
| 149 | r6 = mad_f32 r6 r1 r0 |
| 150 | r7 = mad_f32 r7 r1 r0 |
| 151 | r1 = mad_f32 r3 r1 r2 |
| 152 | r3 = splat 437F0000 (255) |
| 153 | r2 = splat 3F000000 (0.5) |
| 154 | r5 = mad_f32 r5 r3 r2 |
| 155 | r5 = to_i32 r5 |
| 156 | r6 = mad_f32 r6 r3 r2 |
| 157 | r6 = to_i32 r6 |
| 158 | r6 = shl r6 8 (1.1210388e-44) |
| 159 | r7 = mad_f32 r7 r3 r2 |
| 160 | r7 = to_i32 r7 |
| 161 | r7 = shl r7 10 (2.2420775e-44) |
| 162 | r2 = mad_f32 r1 r3 r2 |
| 163 | r2 = to_i32 r2 |
| 164 | r2 = shl r2 18 (3.3631163e-44) |
| 165 | r6 = bit_or r5 r6 |
| 166 | r6 = bit_or r6 r7 |
| 167 | r6 = bit_or r6 r2 |
| 168 | store32 arg(1) r6 |
| 169 | |
| 170 | RGBA_8888 over A8 |
| 171 | r0 = load32 arg(0) |
| 172 | r1 = splat 3B808081 (0.0039215689) |
| 173 | r0 = shr r0 18 (3.3631163e-44) |
| 174 | r0 = to_f32 r0 |
| 175 | r0 = mul_f32 r1 r0 |
| 176 | r2 = load8 arg(1) |
| 177 | r2 = to_f32 r2 |
| 178 | r2 = mul_f32 r1 r2 |
| 179 | r1 = splat 3F800000 (1) |
| 180 | r1 = sub_f32 r1 r0 |
| 181 | r1 = mad_f32 r2 r1 r0 |
| 182 | r2 = splat 437F0000 (255) |
| 183 | r0 = splat 3F000000 (0.5) |
| 184 | r0 = mad_f32 r1 r2 r0 |
| 185 | r0 = to_i32 r0 |
| 186 | store8 arg(1) r0 |
| 187 | |
| 188 | RGBA_8888 over G8 |
| 189 | r0 = load32 arg(0) |
| 190 | r1 = splat FF (3.5733111e-43) |
| 191 | r2 = bit_and r0 r1 |
| 192 | r3 = splat 3B808081 (0.0039215689) |
| 193 | r2 = to_f32 r2 |
| 194 | r2 = mul_f32 r3 r2 |
| 195 | r4 = shr r0 8 (1.1210388e-44) |
| 196 | r4 = bit_and r4 r1 |
| 197 | r4 = to_f32 r4 |
| 198 | r4 = mul_f32 r3 r4 |
| 199 | r5 = shr r0 10 (2.2420775e-44) |
| 200 | r5 = bit_and r5 r1 |
| 201 | r5 = to_f32 r5 |
| 202 | r5 = mul_f32 r3 r5 |
| 203 | r0 = shr r0 18 (3.3631163e-44) |
| 204 | r0 = to_f32 r0 |
| 205 | r0 = mul_f32 r3 r0 |
| 206 | r1 = load8 arg(1) |
| 207 | r1 = to_f32 r1 |
| 208 | r1 = mul_f32 r3 r1 |
| 209 | r3 = splat 3F800000 (1) |
| 210 | r3 = sub_f32 r3 r0 |
| 211 | r2 = mad_f32 r1 r3 r2 |
| 212 | r4 = mad_f32 r1 r3 r4 |
| 213 | r3 = mad_f32 r1 r3 r5 |
| 214 | r1 = splat 3E59B3D0 (0.21259999) |
| 215 | r5 = splat 3F371759 (0.71520001) |
| 216 | r0 = splat 3D93DD98 (0.0722) |
| 217 | r0 = mul_f32 r3 r0 |
| 218 | r0 = mad_f32 r4 r5 r0 |
| 219 | r0 = mad_f32 r2 r1 r0 |
| 220 | r1 = splat 437F0000 (255) |
| 221 | r2 = splat 3F000000 (0.5) |
| 222 | r2 = mad_f32 r0 r1 r2 |
| 223 | r2 = to_i32 r2 |
| 224 | store8 arg(1) r2 |
| 225 | |
| 226 | RGBA_8888 over RGBA_8888 |
| 227 | r0 = load32 arg(0) |
| 228 | r1 = splat FF (3.5733111e-43) |
| 229 | r2 = bit_and r0 r1 |
| 230 | r3 = splat 3B808081 (0.0039215689) |
| 231 | r2 = to_f32 r2 |
| 232 | r2 = mul_f32 r3 r2 |
| 233 | r4 = shr r0 8 (1.1210388e-44) |
| 234 | r4 = bit_and r4 r1 |
| 235 | r4 = to_f32 r4 |
| 236 | r4 = mul_f32 r3 r4 |
| 237 | r5 = shr r0 10 (2.2420775e-44) |
| 238 | r5 = bit_and r5 r1 |
| 239 | r5 = to_f32 r5 |
| 240 | r5 = mul_f32 r3 r5 |
| 241 | r0 = shr r0 18 (3.3631163e-44) |
| 242 | r0 = to_f32 r0 |
| 243 | r0 = mul_f32 r3 r0 |
| 244 | r6 = load32 arg(1) |
| 245 | r7 = bit_and r6 r1 |
| 246 | r7 = to_f32 r7 |
| 247 | r7 = mul_f32 r3 r7 |
| 248 | r8 = shr r6 8 (1.1210388e-44) |
| 249 | r8 = bit_and r8 r1 |
| 250 | r8 = to_f32 r8 |
| 251 | r8 = mul_f32 r3 r8 |
| 252 | r9 = shr r6 10 (2.2420775e-44) |
| 253 | r9 = bit_and r9 r1 |
| 254 | r9 = to_f32 r9 |
| 255 | r9 = mul_f32 r3 r9 |
| 256 | r6 = shr r6 18 (3.3631163e-44) |
| 257 | r6 = to_f32 r6 |
| 258 | r6 = mul_f32 r3 r6 |
| 259 | r3 = splat 3F800000 (1) |
| 260 | r3 = sub_f32 r3 r0 |
| 261 | r7 = mad_f32 r7 r3 r2 |
| 262 | r8 = mad_f32 r8 r3 r4 |
| 263 | r9 = mad_f32 r9 r3 r5 |
| 264 | r3 = mad_f32 r6 r3 r0 |
| 265 | r6 = splat 437F0000 (255) |
| 266 | r0 = splat 3F000000 (0.5) |
| 267 | r7 = mad_f32 r7 r6 r0 |
| 268 | r7 = to_i32 r7 |
| 269 | r8 = mad_f32 r8 r6 r0 |
| 270 | r8 = to_i32 r8 |
| 271 | r8 = shl r8 8 (1.1210388e-44) |
| 272 | r9 = mad_f32 r9 r6 r0 |
| 273 | r9 = to_i32 r9 |
| 274 | r9 = shl r9 10 (2.2420775e-44) |
| 275 | r0 = mad_f32 r3 r6 r0 |
| 276 | r0 = to_i32 r0 |
| 277 | r0 = shl r0 18 (3.3631163e-44) |
| 278 | r8 = bit_or r7 r8 |
| 279 | r8 = bit_or r8 r9 |
| 280 | r8 = bit_or r8 r0 |
| 281 | store32 arg(1) r8 |
| 282 | |