Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1 | # Copyright 2017 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | # This file is generated semi-automatically with this command: |
| 7 | # $ src/jumper/build_stages.py |
| 8 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 9 | #if defined(__MACH__) |
| 10 | #define HIDDEN .private_extern |
| 11 | #else |
| 12 | #define HIDDEN .hidden |
Mike Klein | 8517b4c | 2017-03-30 20:07:52 -0400 | [diff] [blame^] | 13 | .section .note.GNU-stack,"",%progbits |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 14 | #endif |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 15 | .text |
| 16 | #if defined(__aarch64__) |
| 17 | .balign 4 |
| 18 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 19 | HIDDEN _sk_start_pipeline_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 20 | .globl _sk_start_pipeline_aarch64 |
| 21 | _sk_start_pipeline_aarch64: |
| 22 | .long 0xa9bd5bf7 // stp x23, x22, [sp, #-48]! |
| 23 | .long 0xa90153f5 // stp x21, x20, [sp, #16] |
| 24 | .long 0xa9027bf3 // stp x19, x30, [sp, #32] |
| 25 | .long 0xaa0103f4 // mov x20, x1 |
| 26 | .long 0xf8408697 // ldr x23, [x20], #8 |
| 27 | .long 0xaa0003f5 // mov x21, x0 |
| 28 | .long 0xaa0303f3 // mov x19, x3 |
| 29 | .long 0x910012a8 // add x8, x21, #0x4 |
| 30 | .long 0xeb13011f // cmp x8, x19 |
| 31 | .long 0xaa0203f6 // mov x22, x2 |
| 32 | .long 0x54000069 // b.ls 34 <sk_start_pipeline_aarch64+0x34> // b.plast |
| 33 | .long 0xaa1503e0 // mov x0, x21 |
| 34 | .long 0x14000012 // b 78 <sk_start_pipeline_aarch64+0x78> |
| 35 | .long 0x6f00e400 // movi v0.2d, #0x0 |
| 36 | .long 0x6f00e401 // movi v1.2d, #0x0 |
| 37 | .long 0x6f00e402 // movi v2.2d, #0x0 |
| 38 | .long 0x6f00e403 // movi v3.2d, #0x0 |
| 39 | .long 0x6f00e404 // movi v4.2d, #0x0 |
| 40 | .long 0x6f00e405 // movi v5.2d, #0x0 |
| 41 | .long 0x6f00e406 // movi v6.2d, #0x0 |
| 42 | .long 0x6f00e407 // movi v7.2d, #0x0 |
| 43 | .long 0xaa1503e0 // mov x0, x21 |
| 44 | .long 0xaa1403e1 // mov x1, x20 |
| 45 | .long 0xaa1603e2 // mov x2, x22 |
| 46 | .long 0xd63f02e0 // blr x23 |
| 47 | .long 0x910012a0 // add x0, x21, #0x4 |
| 48 | .long 0x910022a8 // add x8, x21, #0x8 |
| 49 | .long 0xeb13011f // cmp x8, x19 |
| 50 | .long 0xaa0003f5 // mov x21, x0 |
| 51 | .long 0x54fffe09 // b.ls 34 <sk_start_pipeline_aarch64+0x34> // b.plast |
| 52 | .long 0xa9427bf3 // ldp x19, x30, [sp, #32] |
| 53 | .long 0xa94153f5 // ldp x21, x20, [sp, #16] |
| 54 | .long 0xa8c35bf7 // ldp x23, x22, [sp], #48 |
| 55 | .long 0xd65f03c0 // ret |
| 56 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 57 | HIDDEN _sk_just_return_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 58 | .globl _sk_just_return_aarch64 |
| 59 | _sk_just_return_aarch64: |
| 60 | .long 0xd65f03c0 // ret |
| 61 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 62 | HIDDEN _sk_seed_shader_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 63 | .globl _sk_seed_shader_aarch64 |
| 64 | _sk_seed_shader_aarch64: |
| 65 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 66 | .long 0x3dc00046 // ldr q6, [x2] |
| 67 | .long 0x4e040c00 // dup v0.4s, w0 |
| 68 | .long 0x4f0167e7 // movi v7.4s, #0x3f, lsl #24 |
| 69 | .long 0x4d40c901 // ld1r {v1.4s}, [x8] |
| 70 | .long 0x4e21d800 // scvtf v0.4s, v0.4s |
| 71 | .long 0x4e27d400 // fadd v0.4s, v0.4s, v7.4s |
| 72 | .long 0x4f03f602 // fmov v2.4s, #1.000000000000000000e+00 |
| 73 | .long 0x4e21d821 // scvtf v1.4s, v1.4s |
| 74 | .long 0x6f00e403 // movi v3.2d, #0x0 |
| 75 | .long 0x6f00e404 // movi v4.2d, #0x0 |
| 76 | .long 0x6f00e405 // movi v5.2d, #0x0 |
| 77 | .long 0x4e26d400 // fadd v0.4s, v0.4s, v6.4s |
| 78 | .long 0x6f00e406 // movi v6.2d, #0x0 |
| 79 | .long 0x4e27d421 // fadd v1.4s, v1.4s, v7.4s |
| 80 | .long 0x6f00e407 // movi v7.2d, #0x0 |
| 81 | .long 0xd61f0060 // br x3 |
| 82 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 83 | HIDDEN _sk_constant_color_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 84 | .globl _sk_constant_color_aarch64 |
| 85 | _sk_constant_color_aarch64: |
| 86 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 87 | .long 0x3dc00103 // ldr q3, [x8] |
| 88 | .long 0x4e040460 // dup v0.4s, v3.s[0] |
| 89 | .long 0x4e0c0461 // dup v1.4s, v3.s[1] |
| 90 | .long 0x4e140462 // dup v2.4s, v3.s[2] |
| 91 | .long 0x4e1c0463 // dup v3.4s, v3.s[3] |
| 92 | .long 0xd61f0060 // br x3 |
| 93 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 94 | HIDDEN _sk_clear_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 95 | .globl _sk_clear_aarch64 |
| 96 | _sk_clear_aarch64: |
| 97 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 98 | .long 0x6f00e400 // movi v0.2d, #0x0 |
| 99 | .long 0x6f00e401 // movi v1.2d, #0x0 |
| 100 | .long 0x6f00e402 // movi v2.2d, #0x0 |
| 101 | .long 0x6f00e403 // movi v3.2d, #0x0 |
| 102 | .long 0xd61f0060 // br x3 |
| 103 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 104 | HIDDEN _sk_plus__aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 105 | .globl _sk_plus__aarch64 |
| 106 | _sk_plus__aarch64: |
| 107 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 108 | .long 0x4e24d400 // fadd v0.4s, v0.4s, v4.4s |
| 109 | .long 0x4e25d421 // fadd v1.4s, v1.4s, v5.4s |
| 110 | .long 0x4e26d442 // fadd v2.4s, v2.4s, v6.4s |
| 111 | .long 0x4e27d463 // fadd v3.4s, v3.4s, v7.4s |
| 112 | .long 0xd61f0060 // br x3 |
| 113 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 114 | HIDDEN _sk_srcover_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 115 | .globl _sk_srcover_aarch64 |
| 116 | _sk_srcover_aarch64: |
| 117 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 118 | .long 0x4f03f610 // fmov v16.4s, #1.000000000000000000e+00 |
| 119 | .long 0x4ea3d610 // fsub v16.4s, v16.4s, v3.4s |
| 120 | .long 0x4e24ce00 // fmla v0.4s, v16.4s, v4.4s |
| 121 | .long 0x4e25ce01 // fmla v1.4s, v16.4s, v5.4s |
| 122 | .long 0x4e26ce02 // fmla v2.4s, v16.4s, v6.4s |
| 123 | .long 0x4e27ce03 // fmla v3.4s, v16.4s, v7.4s |
| 124 | .long 0xd61f0060 // br x3 |
| 125 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 126 | HIDDEN _sk_dstover_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 127 | .globl _sk_dstover_aarch64 |
| 128 | _sk_dstover_aarch64: |
| 129 | .long 0x4f03f611 // fmov v17.4s, #1.000000000000000000e+00 |
| 130 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 131 | .long 0x4ea41c90 // mov v16.16b, v4.16b |
| 132 | .long 0x4ea7d634 // fsub v20.4s, v17.4s, v7.4s |
| 133 | .long 0x4ea51cb1 // mov v17.16b, v5.16b |
| 134 | .long 0x4ea61cd2 // mov v18.16b, v6.16b |
| 135 | .long 0x4ea71cf3 // mov v19.16b, v7.16b |
| 136 | .long 0x4e20ce90 // fmla v16.4s, v20.4s, v0.4s |
| 137 | .long 0x4e21ce91 // fmla v17.4s, v20.4s, v1.4s |
| 138 | .long 0x4e22ce92 // fmla v18.4s, v20.4s, v2.4s |
| 139 | .long 0x4e23ce93 // fmla v19.4s, v20.4s, v3.4s |
| 140 | .long 0x4eb01e00 // mov v0.16b, v16.16b |
| 141 | .long 0x4eb11e21 // mov v1.16b, v17.16b |
| 142 | .long 0x4eb21e42 // mov v2.16b, v18.16b |
| 143 | .long 0x4eb31e63 // mov v3.16b, v19.16b |
| 144 | .long 0xd61f0060 // br x3 |
| 145 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 146 | HIDDEN _sk_clamp_0_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 147 | .globl _sk_clamp_0_aarch64 |
| 148 | _sk_clamp_0_aarch64: |
| 149 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 150 | .long 0x6f00e410 // movi v16.2d, #0x0 |
| 151 | .long 0x4e30f400 // fmax v0.4s, v0.4s, v16.4s |
| 152 | .long 0x4e30f421 // fmax v1.4s, v1.4s, v16.4s |
| 153 | .long 0x4e30f442 // fmax v2.4s, v2.4s, v16.4s |
| 154 | .long 0x4e30f463 // fmax v3.4s, v3.4s, v16.4s |
| 155 | .long 0xd61f0060 // br x3 |
| 156 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 157 | HIDDEN _sk_clamp_1_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 158 | .globl _sk_clamp_1_aarch64 |
| 159 | _sk_clamp_1_aarch64: |
| 160 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 161 | .long 0x4f03f610 // fmov v16.4s, #1.000000000000000000e+00 |
| 162 | .long 0x4eb0f400 // fmin v0.4s, v0.4s, v16.4s |
| 163 | .long 0x4eb0f421 // fmin v1.4s, v1.4s, v16.4s |
| 164 | .long 0x4eb0f442 // fmin v2.4s, v2.4s, v16.4s |
| 165 | .long 0x4eb0f463 // fmin v3.4s, v3.4s, v16.4s |
| 166 | .long 0xd61f0060 // br x3 |
| 167 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 168 | HIDDEN _sk_clamp_a_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 169 | .globl _sk_clamp_a_aarch64 |
| 170 | _sk_clamp_a_aarch64: |
| 171 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 172 | .long 0x4f03f610 // fmov v16.4s, #1.000000000000000000e+00 |
| 173 | .long 0x4eb0f463 // fmin v3.4s, v3.4s, v16.4s |
| 174 | .long 0x4ea3f400 // fmin v0.4s, v0.4s, v3.4s |
| 175 | .long 0x4ea3f421 // fmin v1.4s, v1.4s, v3.4s |
| 176 | .long 0x4ea3f442 // fmin v2.4s, v2.4s, v3.4s |
| 177 | .long 0xd61f0060 // br x3 |
| 178 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 179 | HIDDEN _sk_set_rgb_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 180 | .globl _sk_set_rgb_aarch64 |
| 181 | _sk_set_rgb_aarch64: |
| 182 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 183 | .long 0xaa0803e9 // mov x9, x8 |
| 184 | .long 0x4ddfc920 // ld1r {v0.4s}, [x9], #4 |
| 185 | .long 0x91002108 // add x8, x8, #0x8 |
| 186 | .long 0x4d40c902 // ld1r {v2.4s}, [x8] |
| 187 | .long 0x4d40c921 // ld1r {v1.4s}, [x9] |
| 188 | .long 0xd61f0060 // br x3 |
| 189 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 190 | HIDDEN _sk_swap_rb_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 191 | .globl _sk_swap_rb_aarch64 |
| 192 | _sk_swap_rb_aarch64: |
| 193 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 194 | .long 0x4ea01c10 // mov v16.16b, v0.16b |
| 195 | .long 0x4ea21c40 // mov v0.16b, v2.16b |
| 196 | .long 0x4eb01e02 // mov v2.16b, v16.16b |
| 197 | .long 0xd61f0060 // br x3 |
| 198 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 199 | HIDDEN _sk_swap_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 200 | .globl _sk_swap_aarch64 |
| 201 | _sk_swap_aarch64: |
| 202 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 203 | .long 0x4ea31c70 // mov v16.16b, v3.16b |
| 204 | .long 0x4ea21c51 // mov v17.16b, v2.16b |
| 205 | .long 0x4ea11c32 // mov v18.16b, v1.16b |
| 206 | .long 0x4ea01c13 // mov v19.16b, v0.16b |
| 207 | .long 0x4ea41c80 // mov v0.16b, v4.16b |
| 208 | .long 0x4ea51ca1 // mov v1.16b, v5.16b |
| 209 | .long 0x4ea61cc2 // mov v2.16b, v6.16b |
| 210 | .long 0x4ea71ce3 // mov v3.16b, v7.16b |
| 211 | .long 0x4eb31e64 // mov v4.16b, v19.16b |
| 212 | .long 0x4eb21e45 // mov v5.16b, v18.16b |
| 213 | .long 0x4eb11e26 // mov v6.16b, v17.16b |
| 214 | .long 0x4eb01e07 // mov v7.16b, v16.16b |
| 215 | .long 0xd61f0060 // br x3 |
| 216 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 217 | HIDDEN _sk_move_src_dst_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 218 | .globl _sk_move_src_dst_aarch64 |
| 219 | _sk_move_src_dst_aarch64: |
| 220 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 221 | .long 0x4ea01c04 // mov v4.16b, v0.16b |
| 222 | .long 0x4ea11c25 // mov v5.16b, v1.16b |
| 223 | .long 0x4ea21c46 // mov v6.16b, v2.16b |
| 224 | .long 0x4ea31c67 // mov v7.16b, v3.16b |
| 225 | .long 0xd61f0060 // br x3 |
| 226 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 227 | HIDDEN _sk_move_dst_src_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 228 | .globl _sk_move_dst_src_aarch64 |
| 229 | _sk_move_dst_src_aarch64: |
| 230 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 231 | .long 0x4ea41c80 // mov v0.16b, v4.16b |
| 232 | .long 0x4ea51ca1 // mov v1.16b, v5.16b |
| 233 | .long 0x4ea61cc2 // mov v2.16b, v6.16b |
| 234 | .long 0x4ea71ce3 // mov v3.16b, v7.16b |
| 235 | .long 0xd61f0060 // br x3 |
| 236 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 237 | HIDDEN _sk_premul_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 238 | .globl _sk_premul_aarch64 |
| 239 | _sk_premul_aarch64: |
| 240 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 241 | .long 0x6e23dc00 // fmul v0.4s, v0.4s, v3.4s |
| 242 | .long 0x6e23dc21 // fmul v1.4s, v1.4s, v3.4s |
| 243 | .long 0x6e23dc42 // fmul v2.4s, v2.4s, v3.4s |
| 244 | .long 0xd61f0060 // br x3 |
| 245 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 246 | HIDDEN _sk_unpremul_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 247 | .globl _sk_unpremul_aarch64 |
| 248 | _sk_unpremul_aarch64: |
| 249 | .long 0x4f03f611 // fmov v17.4s, #1.000000000000000000e+00 |
| 250 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 251 | .long 0x4ea0d870 // fcmeq v16.4s, v3.4s, #0.0 |
| 252 | .long 0x6e23fe31 // fdiv v17.4s, v17.4s, v3.4s |
| 253 | .long 0x4e701e30 // bic v16.16b, v17.16b, v16.16b |
| 254 | .long 0x6e20de00 // fmul v0.4s, v16.4s, v0.4s |
| 255 | .long 0x6e21de01 // fmul v1.4s, v16.4s, v1.4s |
| 256 | .long 0x6e22de02 // fmul v2.4s, v16.4s, v2.4s |
| 257 | .long 0xd61f0060 // br x3 |
| 258 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 259 | HIDDEN _sk_from_srgb_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 260 | .globl _sk_from_srgb_aarch64 |
| 261 | _sk_from_srgb_aarch64: |
| 262 | .long 0x52a7d328 // mov w8, #0x3e990000 |
| 263 | .long 0x72933348 // movk w8, #0x999a |
| 264 | .long 0x4e040d10 // dup v16.4s, w8 |
| 265 | .long 0x52a7e648 // mov w8, #0x3f320000 |
| 266 | .long 0x7291eb88 // movk w8, #0x8f5c |
| 267 | .long 0x4e040d11 // dup v17.4s, w8 |
| 268 | .long 0x52a76468 // mov w8, #0x3b230000 |
| 269 | .long 0x729ae148 // movk w8, #0xd70a |
| 270 | .long 0x4e040d12 // dup v18.4s, w8 |
| 271 | .long 0x52a7b3c8 // mov w8, #0x3d9e0000 |
| 272 | .long 0x72907228 // movk w8, #0x8391 |
| 273 | .long 0x6e22dc54 // fmul v20.4s, v2.4s, v2.4s |
| 274 | .long 0x4eb11e35 // mov v21.16b, v17.16b |
| 275 | .long 0x4eb11e37 // mov v23.16b, v17.16b |
| 276 | .long 0x4e22ce11 // fmla v17.4s, v16.4s, v2.4s |
| 277 | .long 0x4eb21e56 // mov v22.16b, v18.16b |
| 278 | .long 0x4eb21e58 // mov v24.16b, v18.16b |
| 279 | .long 0x4e34ce32 // fmla v18.4s, v17.4s, v20.4s |
| 280 | .long 0x4e040d11 // dup v17.4s, w8 |
| 281 | .long 0x52a7ac28 // mov w8, #0x3d610000 |
| 282 | .long 0x6e20dc13 // fmul v19.4s, v0.4s, v0.4s |
| 283 | .long 0x7288f5c8 // movk w8, #0x47ae |
| 284 | .long 0x4e20ce15 // fmla v21.4s, v16.4s, v0.4s |
| 285 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 286 | .long 0x6e21dc34 // fmul v20.4s, v1.4s, v1.4s |
| 287 | .long 0x4e33ceb6 // fmla v22.4s, v21.4s, v19.4s |
| 288 | .long 0x4e040d13 // dup v19.4s, w8 |
| 289 | .long 0x4e21ce17 // fmla v23.4s, v16.4s, v1.4s |
| 290 | .long 0x6e31dc15 // fmul v21.4s, v0.4s, v17.4s |
| 291 | .long 0x6ea0e660 // fcmgt v0.4s, v19.4s, v0.4s |
| 292 | .long 0x6e31dc30 // fmul v16.4s, v1.4s, v17.4s |
| 293 | .long 0x6ea1e661 // fcmgt v1.4s, v19.4s, v1.4s |
| 294 | .long 0x6e31dc51 // fmul v17.4s, v2.4s, v17.4s |
| 295 | .long 0x6ea2e662 // fcmgt v2.4s, v19.4s, v2.4s |
| 296 | .long 0x4e34cef8 // fmla v24.4s, v23.4s, v20.4s |
| 297 | .long 0x6e761ea0 // bsl v0.16b, v21.16b, v22.16b |
| 298 | .long 0x6e781e01 // bsl v1.16b, v16.16b, v24.16b |
| 299 | .long 0x6e721e22 // bsl v2.16b, v17.16b, v18.16b |
| 300 | .long 0xd61f0060 // br x3 |
| 301 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 302 | HIDDEN _sk_to_srgb_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 303 | .globl _sk_to_srgb_aarch64 |
| 304 | _sk_to_srgb_aarch64: |
| 305 | .long 0x52a828e8 // mov w8, #0x41470000 |
| 306 | .long 0x728b8528 // movk w8, #0x5c29 |
| 307 | .long 0x4e040d12 // dup v18.4s, w8 |
| 308 | .long 0x52a7e608 // mov w8, #0x3f300000 |
| 309 | .long 0x728df9c8 // movk w8, #0x6fce |
| 310 | .long 0x6ea1d811 // frsqrte v17.4s, v0.4s |
| 311 | .long 0x4e040d13 // dup v19.4s, w8 |
| 312 | .long 0x52b7b948 // mov w8, #0xbdca0000 |
| 313 | .long 0x728af508 // movk w8, #0x57a8 |
| 314 | .long 0x6ea1d834 // frsqrte v20.4s, v1.4s |
| 315 | .long 0x6e31de36 // fmul v22.4s, v17.4s, v17.4s |
| 316 | .long 0x4e040d10 // dup v16.4s, w8 |
| 317 | .long 0x52a77188 // mov w8, #0x3b8c0000 |
| 318 | .long 0x6ea1d855 // frsqrte v21.4s, v2.4s |
| 319 | .long 0x6e34de98 // fmul v24.4s, v20.4s, v20.4s |
| 320 | .long 0x4eb6fc16 // frsqrts v22.4s, v0.4s, v22.4s |
| 321 | .long 0x729ce088 // movk w8, #0xe704 |
| 322 | .long 0x6e35deb9 // fmul v25.4s, v21.4s, v21.4s |
| 323 | .long 0x4eb8fc38 // frsqrts v24.4s, v1.4s, v24.4s |
| 324 | .long 0x6e36de31 // fmul v17.4s, v17.4s, v22.4s |
| 325 | .long 0x4e040d17 // dup v23.4s, w8 |
| 326 | .long 0x4eb9fc59 // frsqrts v25.4s, v2.4s, v25.4s |
| 327 | .long 0x6e38de94 // fmul v20.4s, v20.4s, v24.4s |
| 328 | .long 0x4ea1da36 // frecpe v22.4s, v17.4s |
| 329 | .long 0x6e32dc1a // fmul v26.4s, v0.4s, v18.4s |
| 330 | .long 0x6ea0e6e0 // fcmgt v0.4s, v23.4s, v0.4s |
| 331 | .long 0x6e32dc3c // fmul v28.4s, v1.4s, v18.4s |
| 332 | .long 0x6ea1e6e1 // fcmgt v1.4s, v23.4s, v1.4s |
| 333 | .long 0x6e32dc52 // fmul v18.4s, v2.4s, v18.4s |
| 334 | .long 0x6ea2e6e2 // fcmgt v2.4s, v23.4s, v2.4s |
| 335 | .long 0x6e39deb5 // fmul v21.4s, v21.4s, v25.4s |
| 336 | .long 0x4ea1da97 // frecpe v23.4s, v20.4s |
| 337 | .long 0x4e36fe39 // frecps v25.4s, v17.4s, v22.4s |
| 338 | .long 0x4ea1dab8 // frecpe v24.4s, v21.4s |
| 339 | .long 0x6e39ded6 // fmul v22.4s, v22.4s, v25.4s |
| 340 | .long 0x4e37fe99 // frecps v25.4s, v20.4s, v23.4s |
| 341 | .long 0x4eb01e1b // mov v27.16b, v16.16b |
| 342 | .long 0x6e39def7 // fmul v23.4s, v23.4s, v25.4s |
| 343 | .long 0x4e38feb9 // frecps v25.4s, v21.4s, v24.4s |
| 344 | .long 0x6e39df18 // fmul v24.4s, v24.4s, v25.4s |
| 345 | .long 0x4eb01e19 // mov v25.16b, v16.16b |
| 346 | .long 0x4e36ce7b // fmla v27.4s, v19.4s, v22.4s |
| 347 | .long 0x6ea1da36 // frsqrte v22.4s, v17.4s |
| 348 | .long 0x4e37ce79 // fmla v25.4s, v19.4s, v23.4s |
| 349 | .long 0x6ea1da97 // frsqrte v23.4s, v20.4s |
| 350 | .long 0x4e38ce70 // fmla v16.4s, v19.4s, v24.4s |
| 351 | .long 0x6e36ded8 // fmul v24.4s, v22.4s, v22.4s |
| 352 | .long 0x6ea1dab3 // frsqrte v19.4s, v21.4s |
| 353 | .long 0x4eb8fe31 // frsqrts v17.4s, v17.4s, v24.4s |
| 354 | .long 0x6e37def8 // fmul v24.4s, v23.4s, v23.4s |
| 355 | .long 0x4eb8fe94 // frsqrts v20.4s, v20.4s, v24.4s |
| 356 | .long 0x6e33de78 // fmul v24.4s, v19.4s, v19.4s |
| 357 | .long 0x52a7da48 // mov w8, #0x3ed20000 |
| 358 | .long 0x4eb8feb5 // frsqrts v21.4s, v21.4s, v24.4s |
| 359 | .long 0x7290f848 // movk w8, #0x87c2 |
| 360 | .long 0x6e31ded1 // fmul v17.4s, v22.4s, v17.4s |
| 361 | .long 0x6e34def4 // fmul v20.4s, v23.4s, v20.4s |
| 362 | .long 0x6e35de73 // fmul v19.4s, v19.4s, v21.4s |
| 363 | .long 0x4e040d15 // dup v21.4s, w8 |
| 364 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 365 | .long 0x4e31cebb // fmla v27.4s, v21.4s, v17.4s |
| 366 | .long 0x4f03f611 // fmov v17.4s, #1.000000000000000000e+00 |
| 367 | .long 0x4e34ceb9 // fmla v25.4s, v21.4s, v20.4s |
| 368 | .long 0x4e33ceb0 // fmla v16.4s, v21.4s, v19.4s |
| 369 | .long 0x4ebbf633 // fmin v19.4s, v17.4s, v27.4s |
| 370 | .long 0x4eb9f634 // fmin v20.4s, v17.4s, v25.4s |
| 371 | .long 0x4eb0f630 // fmin v16.4s, v17.4s, v16.4s |
| 372 | .long 0x6e731f40 // bsl v0.16b, v26.16b, v19.16b |
| 373 | .long 0x6e741f81 // bsl v1.16b, v28.16b, v20.16b |
| 374 | .long 0x6e701e42 // bsl v2.16b, v18.16b, v16.16b |
| 375 | .long 0xd61f0060 // br x3 |
| 376 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 377 | HIDDEN _sk_scale_1_float_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 378 | .globl _sk_scale_1_float_aarch64 |
| 379 | _sk_scale_1_float_aarch64: |
| 380 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 381 | .long 0xbd400110 // ldr s16, [x8] |
| 382 | .long 0x4f909000 // fmul v0.4s, v0.4s, v16.s[0] |
| 383 | .long 0x4f909021 // fmul v1.4s, v1.4s, v16.s[0] |
| 384 | .long 0x4f909042 // fmul v2.4s, v2.4s, v16.s[0] |
| 385 | .long 0x4f909063 // fmul v3.4s, v3.4s, v16.s[0] |
| 386 | .long 0xd61f0060 // br x3 |
| 387 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 388 | HIDDEN _sk_scale_u8_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 389 | .globl _sk_scale_u8_aarch64 |
| 390 | _sk_scale_u8_aarch64: |
| 391 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 392 | .long 0x52a77009 // mov w9, #0x3b800000 |
| 393 | .long 0x72901029 // movk w9, #0x8081 |
| 394 | .long 0x4e040d30 // dup v16.4s, w9 |
| 395 | .long 0xf9400108 // ldr x8, [x8] |
| 396 | .long 0x8b000108 // add x8, x8, x0 |
| 397 | .long 0x39400109 // ldrb w9, [x8] |
| 398 | .long 0x3940050a // ldrb w10, [x8, #1] |
| 399 | .long 0x3940090b // ldrb w11, [x8, #2] |
| 400 | .long 0x39400d08 // ldrb w8, [x8, #3] |
| 401 | .long 0x4e021d31 // mov v17.h[0], w9 |
| 402 | .long 0x4e061d51 // mov v17.h[1], w10 |
| 403 | .long 0x4e0a1d71 // mov v17.h[2], w11 |
| 404 | .long 0x4e0e1d11 // mov v17.h[3], w8 |
| 405 | .long 0x2f10a631 // uxtl v17.4s, v17.4h |
| 406 | .long 0x6e21da31 // ucvtf v17.4s, v17.4s |
| 407 | .long 0x6e30de30 // fmul v16.4s, v17.4s, v16.4s |
| 408 | .long 0x6e20de00 // fmul v0.4s, v16.4s, v0.4s |
| 409 | .long 0x6e21de01 // fmul v1.4s, v16.4s, v1.4s |
| 410 | .long 0x6e22de02 // fmul v2.4s, v16.4s, v2.4s |
| 411 | .long 0x6e23de03 // fmul v3.4s, v16.4s, v3.4s |
| 412 | .long 0xd61f0060 // br x3 |
| 413 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 414 | HIDDEN _sk_lerp_1_float_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 415 | .globl _sk_lerp_1_float_aarch64 |
| 416 | _sk_lerp_1_float_aarch64: |
| 417 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 418 | .long 0x4ea4d411 // fsub v17.4s, v0.4s, v4.4s |
| 419 | .long 0x4ea41c80 // mov v0.16b, v4.16b |
| 420 | .long 0x4ea5d432 // fsub v18.4s, v1.4s, v5.4s |
| 421 | .long 0xbd400110 // ldr s16, [x8] |
| 422 | .long 0x4ea51ca1 // mov v1.16b, v5.16b |
| 423 | .long 0x4f901220 // fmla v0.4s, v17.4s, v16.s[0] |
| 424 | .long 0x4ea6d451 // fsub v17.4s, v2.4s, v6.4s |
| 425 | .long 0x4f901241 // fmla v1.4s, v18.4s, v16.s[0] |
| 426 | .long 0x4ea61cc2 // mov v2.16b, v6.16b |
| 427 | .long 0x4ea7d472 // fsub v18.4s, v3.4s, v7.4s |
| 428 | .long 0x4ea71ce3 // mov v3.16b, v7.16b |
| 429 | .long 0x4f901222 // fmla v2.4s, v17.4s, v16.s[0] |
| 430 | .long 0x4f901243 // fmla v3.4s, v18.4s, v16.s[0] |
| 431 | .long 0xd61f0060 // br x3 |
| 432 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 433 | HIDDEN _sk_lerp_u8_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 434 | .globl _sk_lerp_u8_aarch64 |
| 435 | _sk_lerp_u8_aarch64: |
| 436 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 437 | .long 0x52a77009 // mov w9, #0x3b800000 |
| 438 | .long 0x72901029 // movk w9, #0x8081 |
| 439 | .long 0x4e040d30 // dup v16.4s, w9 |
| 440 | .long 0xf9400108 // ldr x8, [x8] |
| 441 | .long 0x4ea4d412 // fsub v18.4s, v0.4s, v4.4s |
| 442 | .long 0x8b000108 // add x8, x8, x0 |
| 443 | .long 0x3940010a // ldrb w10, [x8] |
| 444 | .long 0x39400509 // ldrb w9, [x8, #1] |
| 445 | .long 0x3940090b // ldrb w11, [x8, #2] |
| 446 | .long 0x39400d08 // ldrb w8, [x8, #3] |
| 447 | .long 0x4e021d51 // mov v17.h[0], w10 |
| 448 | .long 0x4e061d31 // mov v17.h[1], w9 |
| 449 | .long 0x4e0a1d71 // mov v17.h[2], w11 |
| 450 | .long 0x4e0e1d11 // mov v17.h[3], w8 |
| 451 | .long 0x2f10a620 // uxtl v0.4s, v17.4h |
| 452 | .long 0x6e21d800 // ucvtf v0.4s, v0.4s |
| 453 | .long 0x6e30dc10 // fmul v16.4s, v0.4s, v16.4s |
| 454 | .long 0x4ea41c80 // mov v0.16b, v4.16b |
| 455 | .long 0x4ea5d431 // fsub v17.4s, v1.4s, v5.4s |
| 456 | .long 0x4ea51ca1 // mov v1.16b, v5.16b |
| 457 | .long 0x4e32ce00 // fmla v0.4s, v16.4s, v18.4s |
| 458 | .long 0x4ea6d452 // fsub v18.4s, v2.4s, v6.4s |
| 459 | .long 0x4e31ce01 // fmla v1.4s, v16.4s, v17.4s |
| 460 | .long 0x4ea61cc2 // mov v2.16b, v6.16b |
| 461 | .long 0x4ea7d471 // fsub v17.4s, v3.4s, v7.4s |
| 462 | .long 0x4ea71ce3 // mov v3.16b, v7.16b |
| 463 | .long 0x4e32ce02 // fmla v2.4s, v16.4s, v18.4s |
| 464 | .long 0x4e31ce03 // fmla v3.4s, v16.4s, v17.4s |
| 465 | .long 0xd61f0060 // br x3 |
| 466 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 467 | HIDDEN _sk_lerp_565_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 468 | .globl _sk_lerp_565_aarch64 |
| 469 | _sk_lerp_565_aarch64: |
| 470 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 471 | .long 0xd37ff809 // lsl x9, x0, #1 |
| 472 | .long 0x4f072710 // movi v16.4s, #0xf8, lsl #8 |
| 473 | .long 0x4ea4d413 // fsub v19.4s, v0.4s, v4.4s |
| 474 | .long 0xf9400108 // ldr x8, [x8] |
| 475 | .long 0xfc696903 // ldr d3, [x8, x9] |
| 476 | .long 0x52a6f088 // mov w8, #0x37840000 |
| 477 | .long 0x72842108 // movk w8, #0x2108 |
| 478 | .long 0x4e040d11 // dup v17.4s, w8 |
| 479 | .long 0x2f10a463 // uxtl v3.4s, v3.4h |
| 480 | .long 0x321b17e8 // orr w8, wzr, #0x7e0 |
| 481 | .long 0x4e301c60 // and v0.16b, v3.16b, v16.16b |
| 482 | .long 0x4e040d12 // dup v18.4s, w8 |
| 483 | .long 0x52a74048 // mov w8, #0x3a020000 |
| 484 | .long 0x4e21d800 // scvtf v0.4s, v0.4s |
| 485 | .long 0x72810428 // movk w8, #0x821 |
| 486 | .long 0x6e31dc10 // fmul v16.4s, v0.4s, v17.4s |
| 487 | .long 0x4ea41c80 // mov v0.16b, v4.16b |
| 488 | .long 0x4e33ce00 // fmla v0.4s, v16.4s, v19.4s |
| 489 | .long 0x4f0007f0 // movi v16.4s, #0x1f |
| 490 | .long 0x4e040d11 // dup v17.4s, w8 |
| 491 | .long 0x52a7a088 // mov w8, #0x3d040000 |
| 492 | .long 0x4e321c72 // and v18.16b, v3.16b, v18.16b |
| 493 | .long 0x72842108 // movk w8, #0x2108 |
| 494 | .long 0x4e301c63 // and v3.16b, v3.16b, v16.16b |
| 495 | .long 0x4ea6d450 // fsub v16.4s, v2.4s, v6.4s |
| 496 | .long 0x4e21da42 // scvtf v2.4s, v18.4s |
| 497 | .long 0x6e31dc51 // fmul v17.4s, v2.4s, v17.4s |
| 498 | .long 0x4e040d02 // dup v2.4s, w8 |
| 499 | .long 0x4e21d863 // scvtf v3.4s, v3.4s |
| 500 | .long 0x4ea5d433 // fsub v19.4s, v1.4s, v5.4s |
| 501 | .long 0x4ea51ca1 // mov v1.16b, v5.16b |
| 502 | .long 0x6e22dc63 // fmul v3.4s, v3.4s, v2.4s |
| 503 | .long 0x4ea61cc2 // mov v2.16b, v6.16b |
| 504 | .long 0x4e33ce21 // fmla v1.4s, v17.4s, v19.4s |
| 505 | .long 0x4e30cc62 // fmla v2.4s, v3.4s, v16.4s |
| 506 | .long 0x4f03f603 // fmov v3.4s, #1.000000000000000000e+00 |
| 507 | .long 0xd61f0060 // br x3 |
| 508 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 509 | HIDDEN _sk_load_tables_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 510 | .globl _sk_load_tables_aarch64 |
| 511 | _sk_load_tables_aarch64: |
| 512 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 513 | .long 0xd37ef409 // lsl x9, x0, #2 |
| 514 | .long 0x6f00e620 // movi v0.2d, #0xff000000ff |
| 515 | .long 0x52a7700b // mov w11, #0x3b800000 |
| 516 | .long 0xa940310a // ldp x10, x12, [x8] |
| 517 | .long 0x7290102b // movk w11, #0x8081 |
| 518 | .long 0x4e040d63 // dup v3.4s, w11 |
| 519 | .long 0x3ce96942 // ldr q2, [x10, x9] |
| 520 | .long 0xa9412109 // ldp x9, x8, [x8, #16] |
| 521 | .long 0x4e201c41 // and v1.16b, v2.16b, v0.16b |
| 522 | .long 0x1e26002e // fmov w14, s1 |
| 523 | .long 0x6f380450 // ushr v16.4s, v2.4s, #8 |
| 524 | .long 0x6f300451 // ushr v17.4s, v2.4s, #16 |
| 525 | .long 0x8b2e498e // add x14, x12, w14, uxtw #2 |
| 526 | .long 0x0e0c3c2a // mov w10, v1.s[1] |
| 527 | .long 0x0e143c2b // mov w11, v1.s[2] |
| 528 | .long 0x0e1c3c2d // mov w13, v1.s[3] |
| 529 | .long 0x4e201e01 // and v1.16b, v16.16b, v0.16b |
| 530 | .long 0x4e201e30 // and v16.16b, v17.16b, v0.16b |
| 531 | .long 0x0d4081c0 // ld1 {v0.s}[0], [x14] |
| 532 | .long 0x8b2a498a // add x10, x12, w10, uxtw #2 |
| 533 | .long 0xbc6b5991 // ldr s17, [x12, w11, uxtw #2] |
| 534 | .long 0xbc6d5992 // ldr s18, [x12, w13, uxtw #2] |
| 535 | .long 0x0e0c3c2b // mov w11, v1.s[1] |
| 536 | .long 0x0e143c2c // mov w12, v1.s[2] |
| 537 | .long 0x0e1c3c2d // mov w13, v1.s[3] |
| 538 | .long 0x1e26002e // fmov w14, s1 |
| 539 | .long 0x8b2e492e // add x14, x9, w14, uxtw #2 |
| 540 | .long 0xbc6c5933 // ldr s19, [x9, w12, uxtw #2] |
| 541 | .long 0xbc6d5934 // ldr s20, [x9, w13, uxtw #2] |
| 542 | .long 0x8b2b4929 // add x9, x9, w11, uxtw #2 |
| 543 | .long 0x1e26020b // fmov w11, s16 |
| 544 | .long 0x6f280442 // ushr v2.4s, v2.4s, #24 |
| 545 | .long 0x0d409140 // ld1 {v0.s}[1], [x10] |
| 546 | .long 0x4e21d842 // scvtf v2.4s, v2.4s |
| 547 | .long 0x8b2b490a // add x10, x8, w11, uxtw #2 |
| 548 | .long 0x0d4081c1 // ld1 {v1.s}[0], [x14] |
| 549 | .long 0x6e23dc43 // fmul v3.4s, v2.4s, v3.4s |
| 550 | .long 0x0d408142 // ld1 {v2.s}[0], [x10] |
| 551 | .long 0x0e0c3e0f // mov w15, v16.s[1] |
| 552 | .long 0x0e143e0c // mov w12, v16.s[2] |
| 553 | .long 0x8b2f490a // add x10, x8, w15, uxtw #2 |
| 554 | .long 0x0e1c3e0d // mov w13, v16.s[3] |
| 555 | .long 0xbc6c5910 // ldr s16, [x8, w12, uxtw #2] |
| 556 | .long 0x0d409121 // ld1 {v1.s}[1], [x9] |
| 557 | .long 0x0d409142 // ld1 {v2.s}[1], [x10] |
| 558 | .long 0x6e140620 // mov v0.s[2], v17.s[0] |
| 559 | .long 0xbc6d5911 // ldr s17, [x8, w13, uxtw #2] |
| 560 | .long 0x6e140661 // mov v1.s[2], v19.s[0] |
| 561 | .long 0x6e140602 // mov v2.s[2], v16.s[0] |
| 562 | .long 0x6e1c0640 // mov v0.s[3], v18.s[0] |
| 563 | .long 0x6e1c0681 // mov v1.s[3], v20.s[0] |
| 564 | .long 0x6e1c0622 // mov v2.s[3], v17.s[0] |
| 565 | .long 0xd61f0060 // br x3 |
| 566 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 567 | HIDDEN _sk_load_a8_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 568 | .globl _sk_load_a8_aarch64 |
| 569 | _sk_load_a8_aarch64: |
| 570 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 571 | .long 0x52a77009 // mov w9, #0x3b800000 |
| 572 | .long 0x72901029 // movk w9, #0x8081 |
| 573 | .long 0x4e040d22 // dup v2.4s, w9 |
| 574 | .long 0xf9400108 // ldr x8, [x8] |
| 575 | .long 0x6f00e400 // movi v0.2d, #0x0 |
| 576 | .long 0x6f00e401 // movi v1.2d, #0x0 |
| 577 | .long 0x8b000108 // add x8, x8, x0 |
| 578 | .long 0x3940010a // ldrb w10, [x8] |
| 579 | .long 0x3940050b // ldrb w11, [x8, #1] |
| 580 | .long 0x3940090c // ldrb w12, [x8, #2] |
| 581 | .long 0x39400d08 // ldrb w8, [x8, #3] |
| 582 | .long 0x4e021d43 // mov v3.h[0], w10 |
| 583 | .long 0x4e061d63 // mov v3.h[1], w11 |
| 584 | .long 0x4e0a1d83 // mov v3.h[2], w12 |
| 585 | .long 0x4e0e1d03 // mov v3.h[3], w8 |
| 586 | .long 0x2f10a463 // uxtl v3.4s, v3.4h |
| 587 | .long 0x6e21d863 // ucvtf v3.4s, v3.4s |
| 588 | .long 0x6e22dc63 // fmul v3.4s, v3.4s, v2.4s |
| 589 | .long 0x6f00e402 // movi v2.2d, #0x0 |
| 590 | .long 0xd61f0060 // br x3 |
| 591 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 592 | HIDDEN _sk_store_a8_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 593 | .globl _sk_store_a8_aarch64 |
| 594 | _sk_store_a8_aarch64: |
| 595 | .long 0xf9400028 // ldr x8, [x1] |
| 596 | .long 0x52a86fe9 // mov w9, #0x437f0000 |
| 597 | .long 0x4e040d30 // dup v16.4s, w9 |
| 598 | .long 0x6e30dc70 // fmul v16.4s, v3.4s, v16.4s |
| 599 | .long 0xf9400108 // ldr x8, [x8] |
| 600 | .long 0x6e21aa10 // fcvtnu v16.4s, v16.4s |
| 601 | .long 0x0e612a10 // xtn v16.4h, v16.4s |
| 602 | .long 0x0e0e3e09 // umov w9, v16.h[3] |
| 603 | .long 0x8b000108 // add x8, x8, x0 |
| 604 | .long 0x39000d09 // strb w9, [x8, #3] |
| 605 | .long 0x0e0a3e09 // umov w9, v16.h[2] |
| 606 | .long 0x39000909 // strb w9, [x8, #2] |
| 607 | .long 0x0e063e09 // umov w9, v16.h[1] |
| 608 | .long 0x39000509 // strb w9, [x8, #1] |
| 609 | .long 0x0e023e09 // umov w9, v16.h[0] |
| 610 | .long 0x39000109 // strb w9, [x8] |
| 611 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 612 | .long 0x91004021 // add x1, x1, #0x10 |
| 613 | .long 0xd61f0060 // br x3 |
| 614 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 615 | HIDDEN _sk_load_565_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 616 | .globl _sk_load_565_aarch64 |
| 617 | _sk_load_565_aarch64: |
| 618 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 619 | .long 0xd37ff809 // lsl x9, x0, #1 |
| 620 | .long 0x4f072701 // movi v1.4s, #0xf8, lsl #8 |
| 621 | .long 0x4f0007e3 // movi v3.4s, #0x1f |
| 622 | .long 0xf9400108 // ldr x8, [x8] |
| 623 | .long 0xfc696900 // ldr d0, [x8, x9] |
| 624 | .long 0x321b17e8 // orr w8, wzr, #0x7e0 |
| 625 | .long 0x4e040d02 // dup v2.4s, w8 |
| 626 | .long 0x52a6f088 // mov w8, #0x37840000 |
| 627 | .long 0x72842108 // movk w8, #0x2108 |
| 628 | .long 0x2f10a400 // uxtl v0.4s, v0.4h |
| 629 | .long 0x4e211c01 // and v1.16b, v0.16b, v1.16b |
| 630 | .long 0x4e221c02 // and v2.16b, v0.16b, v2.16b |
| 631 | .long 0x4e231c03 // and v3.16b, v0.16b, v3.16b |
| 632 | .long 0x4e040d00 // dup v0.4s, w8 |
| 633 | .long 0x52a74048 // mov w8, #0x3a020000 |
| 634 | .long 0x72810428 // movk w8, #0x821 |
| 635 | .long 0x4e21d821 // scvtf v1.4s, v1.4s |
| 636 | .long 0x6e20dc20 // fmul v0.4s, v1.4s, v0.4s |
| 637 | .long 0x4e040d01 // dup v1.4s, w8 |
| 638 | .long 0x52a7a088 // mov w8, #0x3d040000 |
| 639 | .long 0x72842108 // movk w8, #0x2108 |
| 640 | .long 0x4e21d842 // scvtf v2.4s, v2.4s |
| 641 | .long 0x6e21dc41 // fmul v1.4s, v2.4s, v1.4s |
| 642 | .long 0x4e040d02 // dup v2.4s, w8 |
| 643 | .long 0x4e21d863 // scvtf v3.4s, v3.4s |
| 644 | .long 0x6e22dc62 // fmul v2.4s, v3.4s, v2.4s |
| 645 | .long 0x4f03f603 // fmov v3.4s, #1.000000000000000000e+00 |
| 646 | .long 0xd61f0060 // br x3 |
| 647 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 648 | HIDDEN _sk_store_565_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 649 | .globl _sk_store_565_aarch64 |
| 650 | _sk_store_565_aarch64: |
| 651 | .long 0xf9400028 // ldr x8, [x1] |
| 652 | .long 0x52a84f8a // mov w10, #0x427c0000 |
| 653 | .long 0x4f01f7f0 // fmov v16.4s, #3.100000000000000000e+01 |
| 654 | .long 0x4e040d52 // dup v18.4s, w10 |
| 655 | .long 0x6e30dc11 // fmul v17.4s, v0.4s, v16.4s |
| 656 | .long 0x6e32dc32 // fmul v18.4s, v1.4s, v18.4s |
| 657 | .long 0x6e21aa31 // fcvtnu v17.4s, v17.4s |
| 658 | .long 0x6e21aa52 // fcvtnu v18.4s, v18.4s |
| 659 | .long 0x6e30dc50 // fmul v16.4s, v2.4s, v16.4s |
| 660 | .long 0x4f2b5631 // shl v17.4s, v17.4s, #11 |
| 661 | .long 0xf9400108 // ldr x8, [x8] |
| 662 | .long 0x4f255652 // shl v18.4s, v18.4s, #5 |
| 663 | .long 0x4eb11e51 // orr v17.16b, v18.16b, v17.16b |
| 664 | .long 0x6e21aa10 // fcvtnu v16.4s, v16.4s |
| 665 | .long 0x4eb01e30 // orr v16.16b, v17.16b, v16.16b |
| 666 | .long 0xd37ff809 // lsl x9, x0, #1 |
| 667 | .long 0x0e612a10 // xtn v16.4h, v16.4s |
| 668 | .long 0xfc296910 // str d16, [x8, x9] |
| 669 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 670 | .long 0x91004021 // add x1, x1, #0x10 |
| 671 | .long 0xd61f0060 // br x3 |
| 672 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 673 | HIDDEN _sk_load_8888_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 674 | .globl _sk_load_8888_aarch64 |
| 675 | _sk_load_8888_aarch64: |
| 676 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 677 | .long 0xd37ef409 // lsl x9, x0, #2 |
| 678 | .long 0x6f00e621 // movi v1.2d, #0xff000000ff |
| 679 | .long 0xf9400108 // ldr x8, [x8] |
| 680 | .long 0x3ce96900 // ldr q0, [x8, x9] |
| 681 | .long 0x52a77008 // mov w8, #0x3b800000 |
| 682 | .long 0x72901028 // movk w8, #0x8081 |
| 683 | .long 0x4e040d02 // dup v2.4s, w8 |
| 684 | .long 0x6f380410 // ushr v16.4s, v0.4s, #8 |
| 685 | .long 0x6f300411 // ushr v17.4s, v0.4s, #16 |
| 686 | .long 0x4e211c03 // and v3.16b, v0.16b, v1.16b |
| 687 | .long 0x6f280400 // ushr v0.4s, v0.4s, #24 |
| 688 | .long 0x4e211e10 // and v16.16b, v16.16b, v1.16b |
| 689 | .long 0x4e211e21 // and v1.16b, v17.16b, v1.16b |
| 690 | .long 0x4e21d863 // scvtf v3.4s, v3.4s |
| 691 | .long 0x4e21d811 // scvtf v17.4s, v0.4s |
| 692 | .long 0x4e21da10 // scvtf v16.4s, v16.4s |
| 693 | .long 0x4e21d832 // scvtf v18.4s, v1.4s |
| 694 | .long 0x6e22dc60 // fmul v0.4s, v3.4s, v2.4s |
| 695 | .long 0x6e22de23 // fmul v3.4s, v17.4s, v2.4s |
| 696 | .long 0x6e22de01 // fmul v1.4s, v16.4s, v2.4s |
| 697 | .long 0x6e22de42 // fmul v2.4s, v18.4s, v2.4s |
| 698 | .long 0xd61f0060 // br x3 |
| 699 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 700 | HIDDEN _sk_store_8888_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 701 | .globl _sk_store_8888_aarch64 |
| 702 | _sk_store_8888_aarch64: |
| 703 | .long 0x52a86fea // mov w10, #0x437f0000 |
| 704 | .long 0x4e040d50 // dup v16.4s, w10 |
| 705 | .long 0xf9400028 // ldr x8, [x1] |
| 706 | .long 0x6e30dc32 // fmul v18.4s, v1.4s, v16.4s |
| 707 | .long 0x6e30dc11 // fmul v17.4s, v0.4s, v16.4s |
| 708 | .long 0x6e21aa52 // fcvtnu v18.4s, v18.4s |
| 709 | .long 0x6e21aa31 // fcvtnu v17.4s, v17.4s |
| 710 | .long 0x4f285652 // shl v18.4s, v18.4s, #8 |
| 711 | .long 0x4eb11e51 // orr v17.16b, v18.16b, v17.16b |
| 712 | .long 0x6e30dc52 // fmul v18.4s, v2.4s, v16.4s |
| 713 | .long 0x6e30dc70 // fmul v16.4s, v3.4s, v16.4s |
| 714 | .long 0x6e21aa52 // fcvtnu v18.4s, v18.4s |
| 715 | .long 0xf9400108 // ldr x8, [x8] |
| 716 | .long 0x6e21aa10 // fcvtnu v16.4s, v16.4s |
| 717 | .long 0x4f305652 // shl v18.4s, v18.4s, #16 |
| 718 | .long 0x4eb21e31 // orr v17.16b, v17.16b, v18.16b |
| 719 | .long 0x4f385610 // shl v16.4s, v16.4s, #24 |
| 720 | .long 0xd37ef409 // lsl x9, x0, #2 |
| 721 | .long 0x4eb01e30 // orr v16.16b, v17.16b, v16.16b |
| 722 | .long 0x3ca96910 // str q16, [x8, x9] |
| 723 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 724 | .long 0x91004021 // add x1, x1, #0x10 |
| 725 | .long 0xd61f0060 // br x3 |
| 726 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 727 | HIDDEN _sk_load_f16_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 728 | .globl _sk_load_f16_aarch64 |
| 729 | _sk_load_f16_aarch64: |
| 730 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 731 | .long 0xf9400108 // ldr x8, [x8] |
| 732 | .long 0x8b000d08 // add x8, x8, x0, lsl #3 |
| 733 | .long 0x0c400510 // ld4 {v16.4h-v19.4h}, [x8] |
| 734 | .long 0x0e217a00 // fcvtl v0.4s, v16.4h |
| 735 | .long 0x0e217a21 // fcvtl v1.4s, v17.4h |
| 736 | .long 0x0e217a42 // fcvtl v2.4s, v18.4h |
| 737 | .long 0x0e217a63 // fcvtl v3.4s, v19.4h |
| 738 | .long 0xd61f0060 // br x3 |
| 739 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 740 | HIDDEN _sk_store_f16_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 741 | .globl _sk_store_f16_aarch64 |
| 742 | _sk_store_f16_aarch64: |
| 743 | .long 0xf9400028 // ldr x8, [x1] |
| 744 | .long 0x0e216810 // fcvtn v16.4h, v0.4s |
| 745 | .long 0x0e216831 // fcvtn v17.4h, v1.4s |
| 746 | .long 0x0e216852 // fcvtn v18.4h, v2.4s |
| 747 | .long 0xf9400108 // ldr x8, [x8] |
| 748 | .long 0x0e216873 // fcvtn v19.4h, v3.4s |
| 749 | .long 0x8b000d08 // add x8, x8, x0, lsl #3 |
| 750 | .long 0x0c000510 // st4 {v16.4h-v19.4h}, [x8] |
| 751 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 752 | .long 0x91004021 // add x1, x1, #0x10 |
| 753 | .long 0xd61f0060 // br x3 |
| 754 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 755 | HIDDEN _sk_store_f32_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 756 | .globl _sk_store_f32_aarch64 |
| 757 | _sk_store_f32_aarch64: |
| 758 | .long 0xf9400028 // ldr x8, [x1] |
| 759 | .long 0xf9400108 // ldr x8, [x8] |
| 760 | .long 0x8b001108 // add x8, x8, x0, lsl #4 |
| 761 | .long 0x4c000900 // st4 {v0.4s-v3.4s}, [x8] |
| 762 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 763 | .long 0x91004021 // add x1, x1, #0x10 |
| 764 | .long 0xd61f0060 // br x3 |
| 765 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 766 | HIDDEN _sk_clamp_x_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 767 | .globl _sk_clamp_x_aarch64 |
| 768 | _sk_clamp_x_aarch64: |
| 769 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 770 | .long 0x6f00e411 // movi v17.2d, #0x0 |
| 771 | .long 0x4e20f620 // fmax v0.4s, v17.4s, v0.4s |
| 772 | .long 0x6f07e7f1 // movi v17.2d, #0xffffffffffffffff |
| 773 | .long 0x4d40c910 // ld1r {v16.4s}, [x8] |
| 774 | .long 0x4eb18610 // add v16.4s, v16.4s, v17.4s |
| 775 | .long 0x4eb0f400 // fmin v0.4s, v0.4s, v16.4s |
| 776 | .long 0xd61f0060 // br x3 |
| 777 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 778 | HIDDEN _sk_clamp_y_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 779 | .globl _sk_clamp_y_aarch64 |
| 780 | _sk_clamp_y_aarch64: |
| 781 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 782 | .long 0x6f00e411 // movi v17.2d, #0x0 |
| 783 | .long 0x4e21f621 // fmax v1.4s, v17.4s, v1.4s |
| 784 | .long 0x6f07e7f1 // movi v17.2d, #0xffffffffffffffff |
| 785 | .long 0x4d40c910 // ld1r {v16.4s}, [x8] |
| 786 | .long 0x4eb18610 // add v16.4s, v16.4s, v17.4s |
| 787 | .long 0x4eb0f421 // fmin v1.4s, v1.4s, v16.4s |
| 788 | .long 0xd61f0060 // br x3 |
| 789 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 790 | HIDDEN _sk_repeat_x_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 791 | .globl _sk_repeat_x_aarch64 |
| 792 | _sk_repeat_x_aarch64: |
| 793 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 794 | .long 0x6f07e7f1 // movi v17.2d, #0xffffffffffffffff |
| 795 | .long 0xbd400110 // ldr s16, [x8] |
| 796 | .long 0x4e040612 // dup v18.4s, v16.s[0] |
| 797 | .long 0x4eb18651 // add v17.4s, v18.4s, v17.4s |
| 798 | .long 0x6e32fc12 // fdiv v18.4s, v0.4s, v18.4s |
| 799 | .long 0x4e219a52 // frintm v18.4s, v18.4s |
| 800 | .long 0x4f905240 // fmls v0.4s, v18.4s, v16.s[0] |
| 801 | .long 0x4eb1f400 // fmin v0.4s, v0.4s, v17.4s |
| 802 | .long 0xd61f0060 // br x3 |
| 803 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 804 | HIDDEN _sk_repeat_y_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 805 | .globl _sk_repeat_y_aarch64 |
| 806 | _sk_repeat_y_aarch64: |
| 807 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 808 | .long 0x6f07e7f1 // movi v17.2d, #0xffffffffffffffff |
| 809 | .long 0xbd400110 // ldr s16, [x8] |
| 810 | .long 0x4e040612 // dup v18.4s, v16.s[0] |
| 811 | .long 0x4eb18651 // add v17.4s, v18.4s, v17.4s |
| 812 | .long 0x6e32fc32 // fdiv v18.4s, v1.4s, v18.4s |
| 813 | .long 0x4e219a52 // frintm v18.4s, v18.4s |
| 814 | .long 0x4f905241 // fmls v1.4s, v18.4s, v16.s[0] |
| 815 | .long 0x4eb1f421 // fmin v1.4s, v1.4s, v17.4s |
| 816 | .long 0xd61f0060 // br x3 |
| 817 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 818 | HIDDEN _sk_mirror_x_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 819 | .globl _sk_mirror_x_aarch64 |
| 820 | _sk_mirror_x_aarch64: |
| 821 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 822 | .long 0xbd400110 // ldr s16, [x8] |
| 823 | .long 0x4e040611 // dup v17.4s, v16.s[0] |
| 824 | .long 0x1e302a10 // fadd s16, s16, s16 |
| 825 | .long 0x4eb1d400 // fsub v0.4s, v0.4s, v17.4s |
| 826 | .long 0x4e040612 // dup v18.4s, v16.s[0] |
| 827 | .long 0x6e32fc12 // fdiv v18.4s, v0.4s, v18.4s |
| 828 | .long 0x4e219a52 // frintm v18.4s, v18.4s |
| 829 | .long 0x4f905240 // fmls v0.4s, v18.4s, v16.s[0] |
| 830 | .long 0x6f07e7f0 // movi v16.2d, #0xffffffffffffffff |
| 831 | .long 0x4eb1d400 // fsub v0.4s, v0.4s, v17.4s |
| 832 | .long 0x4eb08630 // add v16.4s, v17.4s, v16.4s |
| 833 | .long 0x4ea0f800 // fabs v0.4s, v0.4s |
| 834 | .long 0x4eb0f400 // fmin v0.4s, v0.4s, v16.4s |
| 835 | .long 0xd61f0060 // br x3 |
| 836 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 837 | HIDDEN _sk_mirror_y_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 838 | .globl _sk_mirror_y_aarch64 |
| 839 | _sk_mirror_y_aarch64: |
| 840 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 841 | .long 0xbd400110 // ldr s16, [x8] |
| 842 | .long 0x4e040611 // dup v17.4s, v16.s[0] |
| 843 | .long 0x1e302a10 // fadd s16, s16, s16 |
| 844 | .long 0x4eb1d421 // fsub v1.4s, v1.4s, v17.4s |
| 845 | .long 0x4e040612 // dup v18.4s, v16.s[0] |
| 846 | .long 0x6e32fc32 // fdiv v18.4s, v1.4s, v18.4s |
| 847 | .long 0x4e219a52 // frintm v18.4s, v18.4s |
| 848 | .long 0x4f905241 // fmls v1.4s, v18.4s, v16.s[0] |
| 849 | .long 0x6f07e7f0 // movi v16.2d, #0xffffffffffffffff |
| 850 | .long 0x4eb1d421 // fsub v1.4s, v1.4s, v17.4s |
| 851 | .long 0x4eb08630 // add v16.4s, v17.4s, v16.4s |
| 852 | .long 0x4ea0f821 // fabs v1.4s, v1.4s |
| 853 | .long 0x4eb0f421 // fmin v1.4s, v1.4s, v16.4s |
| 854 | .long 0xd61f0060 // br x3 |
| 855 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 856 | HIDDEN _sk_luminance_to_alpha_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 857 | .globl _sk_luminance_to_alpha_aarch64 |
| 858 | _sk_luminance_to_alpha_aarch64: |
| 859 | .long 0x52a7cb28 // mov w8, #0x3e590000 |
| 860 | .long 0x72967a08 // movk w8, #0xb3d0 |
| 861 | .long 0x4e040d11 // dup v17.4s, w8 |
| 862 | .long 0x52a7e6e8 // mov w8, #0x3f370000 |
| 863 | .long 0x7282eb28 // movk w8, #0x1759 |
| 864 | .long 0x4ea01c10 // mov v16.16b, v0.16b |
| 865 | .long 0x4e040d00 // dup v0.4s, w8 |
| 866 | .long 0x52a7b268 // mov w8, #0x3d930000 |
| 867 | .long 0xf8408423 // ldr x3, [x1], #8 |
| 868 | .long 0x729bb308 // movk w8, #0xdd98 |
| 869 | .long 0x6e20dc23 // fmul v3.4s, v1.4s, v0.4s |
| 870 | .long 0x4e30ce23 // fmla v3.4s, v17.4s, v16.4s |
| 871 | .long 0x4e040d10 // dup v16.4s, w8 |
| 872 | .long 0x6f00e400 // movi v0.2d, #0x0 |
| 873 | .long 0x6f00e401 // movi v1.2d, #0x0 |
| 874 | .long 0x4e22ce03 // fmla v3.4s, v16.4s, v2.4s |
| 875 | .long 0x6f00e402 // movi v2.2d, #0x0 |
| 876 | .long 0xd61f0060 // br x3 |
| 877 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 878 | HIDDEN _sk_matrix_2x3_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 879 | .globl _sk_matrix_2x3_aarch64 |
| 880 | _sk_matrix_2x3_aarch64: |
| 881 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 882 | .long 0xaa0803e9 // mov x9, x8 |
| 883 | .long 0x9100410a // add x10, x8, #0x10 |
| 884 | .long 0x4ddfc932 // ld1r {v18.4s}, [x9], #4 |
| 885 | .long 0x4d40c950 // ld1r {v16.4s}, [x10] |
| 886 | .long 0x2d415113 // ldp s19, s20, [x8, #8] |
| 887 | .long 0x9100510a // add x10, x8, #0x14 |
| 888 | .long 0x4d40c951 // ld1r {v17.4s}, [x10] |
| 889 | .long 0x4f931030 // fmla v16.4s, v1.4s, v19.s[0] |
| 890 | .long 0xbd400133 // ldr s19, [x9] |
| 891 | .long 0x4f941031 // fmla v17.4s, v1.4s, v20.s[0] |
| 892 | .long 0x4e20ce50 // fmla v16.4s, v18.4s, v0.4s |
| 893 | .long 0x4f931011 // fmla v17.4s, v0.4s, v19.s[0] |
| 894 | .long 0x4eb01e00 // mov v0.16b, v16.16b |
| 895 | .long 0x4eb11e21 // mov v1.16b, v17.16b |
| 896 | .long 0xd61f0060 // br x3 |
| 897 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 898 | HIDDEN _sk_matrix_3x4_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 899 | .globl _sk_matrix_3x4_aarch64 |
| 900 | _sk_matrix_3x4_aarch64: |
| 901 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 902 | .long 0xaa0803e9 // mov x9, x8 |
| 903 | .long 0x9100910a // add x10, x8, #0x24 |
| 904 | .long 0x4ddfc933 // ld1r {v19.4s}, [x9], #4 |
| 905 | .long 0x4d40c950 // ld1r {v16.4s}, [x10] |
| 906 | .long 0x9100a10a // add x10, x8, #0x28 |
| 907 | .long 0x4d40c951 // ld1r {v17.4s}, [x10] |
| 908 | .long 0x9100b10a // add x10, x8, #0x2c |
| 909 | .long 0x2d435514 // ldp s20, s21, [x8, #24] |
| 910 | .long 0xbd402116 // ldr s22, [x8, #32] |
| 911 | .long 0x4d40c952 // ld1r {v18.4s}, [x10] |
| 912 | .long 0x4f941050 // fmla v16.4s, v2.4s, v20.s[0] |
| 913 | .long 0x4f951051 // fmla v17.4s, v2.4s, v21.s[0] |
| 914 | .long 0x4f961052 // fmla v18.4s, v2.4s, v22.s[0] |
| 915 | .long 0x2d425502 // ldp s2, s21, [x8, #16] |
| 916 | .long 0x2d415d14 // ldp s20, s23, [x8, #8] |
| 917 | .long 0x4f821031 // fmla v17.4s, v1.4s, v2.s[0] |
| 918 | .long 0xbd400122 // ldr s2, [x9] |
| 919 | .long 0x4f971030 // fmla v16.4s, v1.4s, v23.s[0] |
| 920 | .long 0x4f951032 // fmla v18.4s, v1.4s, v21.s[0] |
| 921 | .long 0x4e20ce70 // fmla v16.4s, v19.4s, v0.4s |
| 922 | .long 0x4f941012 // fmla v18.4s, v0.4s, v20.s[0] |
| 923 | .long 0x4f821011 // fmla v17.4s, v0.4s, v2.s[0] |
| 924 | .long 0x4eb01e00 // mov v0.16b, v16.16b |
| 925 | .long 0x4eb11e21 // mov v1.16b, v17.16b |
| 926 | .long 0x4eb21e42 // mov v2.16b, v18.16b |
| 927 | .long 0xd61f0060 // br x3 |
| 928 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 929 | HIDDEN _sk_matrix_4x5_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 930 | .globl _sk_matrix_4x5_aarch64 |
| 931 | _sk_matrix_4x5_aarch64: |
| 932 | .long 0xf9400029 // ldr x9, [x1] |
| 933 | .long 0xaa0903e8 // mov x8, x9 |
| 934 | .long 0x9101012a // add x10, x9, #0x40 |
| 935 | .long 0x4ddfc914 // ld1r {v20.4s}, [x8], #4 |
| 936 | .long 0x4d40c950 // ld1r {v16.4s}, [x10] |
| 937 | .long 0x9101112a // add x10, x9, #0x44 |
| 938 | .long 0x4d40c951 // ld1r {v17.4s}, [x10] |
| 939 | .long 0x9101212a // add x10, x9, #0x48 |
| 940 | .long 0x4d40c952 // ld1r {v18.4s}, [x10] |
| 941 | .long 0x2d465533 // ldp s19, s21, [x9, #48] |
| 942 | .long 0x2d475d36 // ldp s22, s23, [x9, #56] |
| 943 | .long 0x9101312a // add x10, x9, #0x4c |
| 944 | .long 0xf9400423 // ldr x3, [x1, #8] |
| 945 | .long 0x4f931070 // fmla v16.4s, v3.4s, v19.s[0] |
| 946 | .long 0x4d40c953 // ld1r {v19.4s}, [x10] |
| 947 | .long 0x4f951071 // fmla v17.4s, v3.4s, v21.s[0] |
| 948 | .long 0x4f961072 // fmla v18.4s, v3.4s, v22.s[0] |
| 949 | .long 0x2d445935 // ldp s21, s22, [x9, #32] |
| 950 | .long 0x4f971073 // fmla v19.4s, v3.4s, v23.s[0] |
| 951 | .long 0x2d455d23 // ldp s3, s23, [x9, #40] |
| 952 | .long 0x91004021 // add x1, x1, #0x10 |
| 953 | .long 0x4f951050 // fmla v16.4s, v2.4s, v21.s[0] |
| 954 | .long 0x4f961051 // fmla v17.4s, v2.4s, v22.s[0] |
| 955 | .long 0x2d425935 // ldp s21, s22, [x9, #16] |
| 956 | .long 0x4f971053 // fmla v19.4s, v2.4s, v23.s[0] |
| 957 | .long 0x4f831052 // fmla v18.4s, v2.4s, v3.s[0] |
| 958 | .long 0x2d410d22 // ldp s2, s3, [x9, #8] |
| 959 | .long 0x4f951030 // fmla v16.4s, v1.4s, v21.s[0] |
| 960 | .long 0x2d435d35 // ldp s21, s23, [x9, #24] |
| 961 | .long 0x4f961031 // fmla v17.4s, v1.4s, v22.s[0] |
| 962 | .long 0xbd400116 // ldr s22, [x8] |
| 963 | .long 0x4e20ce90 // fmla v16.4s, v20.4s, v0.4s |
| 964 | .long 0x4f951032 // fmla v18.4s, v1.4s, v21.s[0] |
| 965 | .long 0x4f971033 // fmla v19.4s, v1.4s, v23.s[0] |
| 966 | .long 0x4f821012 // fmla v18.4s, v0.4s, v2.s[0] |
| 967 | .long 0x4f831013 // fmla v19.4s, v0.4s, v3.s[0] |
| 968 | .long 0x4f961011 // fmla v17.4s, v0.4s, v22.s[0] |
| 969 | .long 0x4eb01e00 // mov v0.16b, v16.16b |
| 970 | .long 0x4eb11e21 // mov v1.16b, v17.16b |
| 971 | .long 0x4eb21e42 // mov v2.16b, v18.16b |
| 972 | .long 0x4eb31e63 // mov v3.16b, v19.16b |
| 973 | .long 0xd61f0060 // br x3 |
| 974 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 975 | HIDDEN _sk_matrix_perspective_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 976 | .globl _sk_matrix_perspective_aarch64 |
| 977 | _sk_matrix_perspective_aarch64: |
| 978 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 979 | .long 0xaa0803e9 // mov x9, x8 |
| 980 | .long 0x9100510a // add x10, x8, #0x14 |
| 981 | .long 0x4ddfc930 // ld1r {v16.4s}, [x9], #4 |
| 982 | .long 0x4d40c951 // ld1r {v17.4s}, [x10] |
| 983 | .long 0x9100810a // add x10, x8, #0x20 |
| 984 | .long 0x4d40c952 // ld1r {v18.4s}, [x10] |
| 985 | .long 0x2d41d113 // ldp s19, s20, [x8, #12] |
| 986 | .long 0x2d435915 // ldp s21, s22, [x8, #24] |
| 987 | .long 0x91002108 // add x8, x8, #0x8 |
| 988 | .long 0x4f941031 // fmla v17.4s, v1.4s, v20.s[0] |
| 989 | .long 0x4d40c914 // ld1r {v20.4s}, [x8] |
| 990 | .long 0x4f961032 // fmla v18.4s, v1.4s, v22.s[0] |
| 991 | .long 0xbd400136 // ldr s22, [x9] |
| 992 | .long 0x4f951012 // fmla v18.4s, v0.4s, v21.s[0] |
| 993 | .long 0x4f931011 // fmla v17.4s, v0.4s, v19.s[0] |
| 994 | .long 0x4f961034 // fmla v20.4s, v1.4s, v22.s[0] |
| 995 | .long 0x4ea1da41 // frecpe v1.4s, v18.4s |
| 996 | .long 0x4e21fe52 // frecps v18.4s, v18.4s, v1.4s |
| 997 | .long 0x6e32dc32 // fmul v18.4s, v1.4s, v18.4s |
| 998 | .long 0x4e20ce14 // fmla v20.4s, v16.4s, v0.4s |
| 999 | .long 0x6e32de21 // fmul v1.4s, v17.4s, v18.4s |
| 1000 | .long 0x6e32de80 // fmul v0.4s, v20.4s, v18.4s |
| 1001 | .long 0xd61f0060 // br x3 |
| 1002 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1003 | HIDDEN _sk_linear_gradient_2stops_aarch64 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1004 | .globl _sk_linear_gradient_2stops_aarch64 |
| 1005 | _sk_linear_gradient_2stops_aarch64: |
| 1006 | .long 0xa8c10c28 // ldp x8, x3, [x1], #16 |
| 1007 | .long 0xad404503 // ldp q3, q17, [x8] |
| 1008 | .long 0x4e040470 // dup v16.4s, v3.s[0] |
| 1009 | .long 0x4e0c0461 // dup v1.4s, v3.s[1] |
| 1010 | .long 0x4e140462 // dup v2.4s, v3.s[2] |
| 1011 | .long 0x4e1c0463 // dup v3.4s, v3.s[3] |
| 1012 | .long 0x4f911010 // fmla v16.4s, v0.4s, v17.s[0] |
| 1013 | .long 0x4fb11001 // fmla v1.4s, v0.4s, v17.s[1] |
| 1014 | .long 0x4f911802 // fmla v2.4s, v0.4s, v17.s[2] |
| 1015 | .long 0x4fb11803 // fmla v3.4s, v0.4s, v17.s[3] |
| 1016 | .long 0x4eb01e00 // mov v0.16b, v16.16b |
| 1017 | .long 0xd61f0060 // br x3 |
| 1018 | #elif defined(__arm__) |
| 1019 | .balign 4 |
| 1020 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1021 | HIDDEN _sk_start_pipeline_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1022 | .globl _sk_start_pipeline_vfp4 |
| 1023 | _sk_start_pipeline_vfp4: |
| 1024 | .long 0xe92d41f0 // push {r4, r5, r6, r7, r8, lr} |
| 1025 | .long 0xe1a04000 // mov r4, r0 |
| 1026 | .long 0xe2840002 // add r0, r4, #2 |
| 1027 | .long 0xe1a05003 // mov r5, r3 |
| 1028 | .long 0xe1a08002 // mov r8, r2 |
| 1029 | .long 0xe1a07001 // mov r7, r1 |
| 1030 | .long 0xe1500005 // cmp r0, r5 |
| 1031 | .long 0x8a000010 // bhi 64 <sk_start_pipeline_vfp4+0x64> |
| 1032 | .long 0xe4976004 // ldr r6, [r7], #4 |
| 1033 | .long 0xf2800010 // vmov.i32 d0, #0 |
| 1034 | .long 0xe1a00004 // mov r0, r4 |
| 1035 | .long 0xf2801010 // vmov.i32 d1, #0 |
| 1036 | .long 0xe1a01007 // mov r1, r7 |
| 1037 | .long 0xf2802010 // vmov.i32 d2, #0 |
| 1038 | .long 0xe1a02008 // mov r2, r8 |
| 1039 | .long 0xf2803010 // vmov.i32 d3, #0 |
| 1040 | .long 0xf2804010 // vmov.i32 d4, #0 |
| 1041 | .long 0xf2805010 // vmov.i32 d5, #0 |
| 1042 | .long 0xf2806010 // vmov.i32 d6, #0 |
| 1043 | .long 0xf2807010 // vmov.i32 d7, #0 |
| 1044 | .long 0xe12fff36 // blx r6 |
| 1045 | .long 0xe2840004 // add r0, r4, #4 |
| 1046 | .long 0xe2844002 // add r4, r4, #2 |
| 1047 | .long 0xe1500005 // cmp r0, r5 |
| 1048 | .long 0x9affffef // bls 24 <sk_start_pipeline_vfp4+0x24> |
| 1049 | .long 0xe1a00004 // mov r0, r4 |
| 1050 | .long 0xe8bd81f0 // pop {r4, r5, r6, r7, r8, pc} |
| 1051 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1052 | HIDDEN _sk_just_return_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1053 | .globl _sk_just_return_vfp4 |
| 1054 | _sk_just_return_vfp4: |
| 1055 | .long 0xe12fff1e // bx lr |
| 1056 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1057 | HIDDEN _sk_seed_shader_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1058 | .globl _sk_seed_shader_vfp4 |
| 1059 | _sk_seed_shader_vfp4: |
| 1060 | .long 0xee800b90 // vdup.32 d16, r0 |
| 1061 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1062 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1063 | .long 0xf2c3161f // vmov.i32 d17, #1056964608 |
| 1064 | .long 0xedd23b00 // vldr d19, [r2] |
| 1065 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 1066 | .long 0xf2872f10 // vmov.f32 d2, #1 |
| 1067 | .long 0xf3fb2622 // vcvt.f32.s32 d18, d18 |
| 1068 | .long 0xe2811008 // add r1, r1, #8 |
| 1069 | .long 0xf2400da1 // vadd.f32 d16, d16, d17 |
| 1070 | .long 0xf2803010 // vmov.i32 d3, #0 |
| 1071 | .long 0xf2804010 // vmov.i32 d4, #0 |
| 1072 | .long 0xf2021da1 // vadd.f32 d1, d18, d17 |
| 1073 | .long 0xf2000da3 // vadd.f32 d0, d16, d19 |
| 1074 | .long 0xf2805010 // vmov.i32 d5, #0 |
| 1075 | .long 0xf2806010 // vmov.i32 d6, #0 |
| 1076 | .long 0xf2807010 // vmov.i32 d7, #0 |
| 1077 | .long 0xe12fff1c // bx ip |
| 1078 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1079 | HIDDEN _sk_constant_color_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1080 | .globl _sk_constant_color_vfp4 |
| 1081 | _sk_constant_color_vfp4: |
| 1082 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1083 | .long 0xe2811008 // add r1, r1, #8 |
| 1084 | .long 0xf4630a0f // vld1.8 {d16-d17}, [r3] |
| 1085 | .long 0xf3b40c20 // vdup.32 d0, d16[0] |
| 1086 | .long 0xf3bc1c20 // vdup.32 d1, d16[1] |
| 1087 | .long 0xf3b42c21 // vdup.32 d2, d17[0] |
| 1088 | .long 0xf3bc3c21 // vdup.32 d3, d17[1] |
| 1089 | .long 0xe12fff1c // bx ip |
| 1090 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1091 | HIDDEN _sk_clear_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1092 | .globl _sk_clear_vfp4 |
| 1093 | _sk_clear_vfp4: |
| 1094 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1095 | .long 0xf2800010 // vmov.i32 d0, #0 |
| 1096 | .long 0xf2801010 // vmov.i32 d1, #0 |
| 1097 | .long 0xf2802010 // vmov.i32 d2, #0 |
| 1098 | .long 0xf2803010 // vmov.i32 d3, #0 |
| 1099 | .long 0xe12fff13 // bx r3 |
| 1100 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1101 | HIDDEN _sk_plus__vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1102 | .globl _sk_plus__vfp4 |
| 1103 | _sk_plus__vfp4: |
| 1104 | .long 0xf2000d04 // vadd.f32 d0, d0, d4 |
| 1105 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1106 | .long 0xf2011d05 // vadd.f32 d1, d1, d5 |
| 1107 | .long 0xf2022d06 // vadd.f32 d2, d2, d6 |
| 1108 | .long 0xf2033d07 // vadd.f32 d3, d3, d7 |
| 1109 | .long 0xe12fff13 // bx r3 |
| 1110 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1111 | HIDDEN _sk_srcover_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1112 | .globl _sk_srcover_vfp4 |
| 1113 | _sk_srcover_vfp4: |
| 1114 | .long 0xf2c70f10 // vmov.f32 d16, #1 |
| 1115 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1116 | .long 0xf2600d83 // vsub.f32 d16, d16, d3 |
| 1117 | .long 0xf2040c30 // vfma.f32 d0, d4, d16 |
| 1118 | .long 0xf2051c30 // vfma.f32 d1, d5, d16 |
| 1119 | .long 0xf2062c30 // vfma.f32 d2, d6, d16 |
| 1120 | .long 0xf2073c30 // vfma.f32 d3, d7, d16 |
| 1121 | .long 0xe12fff13 // bx r3 |
| 1122 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1123 | HIDDEN _sk_dstover_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1124 | .globl _sk_dstover_vfp4 |
| 1125 | _sk_dstover_vfp4: |
| 1126 | .long 0xf2c70f10 // vmov.f32 d16, #1 |
| 1127 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1128 | .long 0xf2651115 // vorr d17, d5, d5 |
| 1129 | .long 0xf2604d87 // vsub.f32 d20, d16, d7 |
| 1130 | .long 0xf2640114 // vorr d16, d4, d4 |
| 1131 | .long 0xf2662116 // vorr d18, d6, d6 |
| 1132 | .long 0xf2673117 // vorr d19, d7, d7 |
| 1133 | .long 0xf2400c34 // vfma.f32 d16, d0, d20 |
| 1134 | .long 0xf2411c34 // vfma.f32 d17, d1, d20 |
| 1135 | .long 0xf2422c34 // vfma.f32 d18, d2, d20 |
| 1136 | .long 0xf2433c34 // vfma.f32 d19, d3, d20 |
| 1137 | .long 0xf22001b0 // vorr d0, d16, d16 |
| 1138 | .long 0xf22111b1 // vorr d1, d17, d17 |
| 1139 | .long 0xf22221b2 // vorr d2, d18, d18 |
| 1140 | .long 0xf22331b3 // vorr d3, d19, d19 |
| 1141 | .long 0xe12fff13 // bx r3 |
| 1142 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1143 | HIDDEN _sk_clamp_0_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1144 | .globl _sk_clamp_0_vfp4 |
| 1145 | _sk_clamp_0_vfp4: |
| 1146 | .long 0xf2c00010 // vmov.i32 d16, #0 |
| 1147 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1148 | .long 0xf2000f20 // vmax.f32 d0, d0, d16 |
| 1149 | .long 0xf2011f20 // vmax.f32 d1, d1, d16 |
| 1150 | .long 0xf2022f20 // vmax.f32 d2, d2, d16 |
| 1151 | .long 0xf2033f20 // vmax.f32 d3, d3, d16 |
| 1152 | .long 0xe12fff13 // bx r3 |
| 1153 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1154 | HIDDEN _sk_clamp_1_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1155 | .globl _sk_clamp_1_vfp4 |
| 1156 | _sk_clamp_1_vfp4: |
| 1157 | .long 0xf2c70f10 // vmov.f32 d16, #1 |
| 1158 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1159 | .long 0xf2200f20 // vmin.f32 d0, d0, d16 |
| 1160 | .long 0xf2211f20 // vmin.f32 d1, d1, d16 |
| 1161 | .long 0xf2222f20 // vmin.f32 d2, d2, d16 |
| 1162 | .long 0xf2233f20 // vmin.f32 d3, d3, d16 |
| 1163 | .long 0xe12fff13 // bx r3 |
| 1164 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1165 | HIDDEN _sk_clamp_a_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1166 | .globl _sk_clamp_a_vfp4 |
| 1167 | _sk_clamp_a_vfp4: |
| 1168 | .long 0xf2c70f10 // vmov.f32 d16, #1 |
| 1169 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1170 | .long 0xf2233f20 // vmin.f32 d3, d3, d16 |
| 1171 | .long 0xf2200f03 // vmin.f32 d0, d0, d3 |
| 1172 | .long 0xf2211f03 // vmin.f32 d1, d1, d3 |
| 1173 | .long 0xf2222f03 // vmin.f32 d2, d2, d3 |
| 1174 | .long 0xe12fff13 // bx r3 |
| 1175 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1176 | HIDDEN _sk_set_rgb_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1177 | .globl _sk_set_rgb_vfp4 |
| 1178 | _sk_set_rgb_vfp4: |
| 1179 | .long 0xe92d4800 // push {fp, lr} |
| 1180 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1181 | .long 0xe2811008 // add r1, r1, #8 |
| 1182 | .long 0xe283e008 // add lr, r3, #8 |
| 1183 | .long 0xf4a30c9d // vld1.32 {d0[]}, [r3 :32]! |
| 1184 | .long 0xf4ae2c9f // vld1.32 {d2[]}, [lr :32] |
| 1185 | .long 0xf4a31c9f // vld1.32 {d1[]}, [r3 :32] |
| 1186 | .long 0xe8bd4800 // pop {fp, lr} |
| 1187 | .long 0xe12fff1c // bx ip |
| 1188 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1189 | HIDDEN _sk_swap_rb_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1190 | .globl _sk_swap_rb_vfp4 |
| 1191 | _sk_swap_rb_vfp4: |
| 1192 | .long 0xeef00b40 // vmov.f64 d16, d0 |
| 1193 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1194 | .long 0xeeb00b42 // vmov.f64 d0, d2 |
| 1195 | .long 0xeeb02b60 // vmov.f64 d2, d16 |
| 1196 | .long 0xe12fff13 // bx r3 |
| 1197 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1198 | HIDDEN _sk_swap_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1199 | .globl _sk_swap_vfp4 |
| 1200 | _sk_swap_vfp4: |
| 1201 | .long 0xeef00b43 // vmov.f64 d16, d3 |
| 1202 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1203 | .long 0xeef01b42 // vmov.f64 d17, d2 |
| 1204 | .long 0xeef02b41 // vmov.f64 d18, d1 |
| 1205 | .long 0xeef03b40 // vmov.f64 d19, d0 |
| 1206 | .long 0xeeb00b44 // vmov.f64 d0, d4 |
| 1207 | .long 0xeeb01b45 // vmov.f64 d1, d5 |
| 1208 | .long 0xeeb02b46 // vmov.f64 d2, d6 |
| 1209 | .long 0xeeb03b47 // vmov.f64 d3, d7 |
| 1210 | .long 0xeeb04b63 // vmov.f64 d4, d19 |
| 1211 | .long 0xeeb05b62 // vmov.f64 d5, d18 |
| 1212 | .long 0xeeb06b61 // vmov.f64 d6, d17 |
| 1213 | .long 0xeeb07b60 // vmov.f64 d7, d16 |
| 1214 | .long 0xe12fff13 // bx r3 |
| 1215 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1216 | HIDDEN _sk_move_src_dst_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1217 | .globl _sk_move_src_dst_vfp4 |
| 1218 | _sk_move_src_dst_vfp4: |
| 1219 | .long 0xeeb04b40 // vmov.f64 d4, d0 |
| 1220 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1221 | .long 0xeeb05b41 // vmov.f64 d5, d1 |
| 1222 | .long 0xeeb06b42 // vmov.f64 d6, d2 |
| 1223 | .long 0xeeb07b43 // vmov.f64 d7, d3 |
| 1224 | .long 0xe12fff13 // bx r3 |
| 1225 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1226 | HIDDEN _sk_move_dst_src_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1227 | .globl _sk_move_dst_src_vfp4 |
| 1228 | _sk_move_dst_src_vfp4: |
| 1229 | .long 0xeeb00b44 // vmov.f64 d0, d4 |
| 1230 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1231 | .long 0xeeb01b45 // vmov.f64 d1, d5 |
| 1232 | .long 0xeeb02b46 // vmov.f64 d2, d6 |
| 1233 | .long 0xeeb03b47 // vmov.f64 d3, d7 |
| 1234 | .long 0xe12fff13 // bx r3 |
| 1235 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1236 | HIDDEN _sk_premul_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1237 | .globl _sk_premul_vfp4 |
| 1238 | _sk_premul_vfp4: |
| 1239 | .long 0xf3000d13 // vmul.f32 d0, d0, d3 |
| 1240 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1241 | .long 0xf3011d13 // vmul.f32 d1, d1, d3 |
| 1242 | .long 0xf3022d13 // vmul.f32 d2, d2, d3 |
| 1243 | .long 0xe12fff13 // bx r3 |
| 1244 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1245 | HIDDEN _sk_unpremul_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1246 | .globl _sk_unpremul_vfp4 |
| 1247 | _sk_unpremul_vfp4: |
| 1248 | .long 0xed2d8b04 // vpush {d8-d9} |
| 1249 | .long 0xeeb78a00 // vmov.f32 s16, #112 |
| 1250 | .long 0xf3f91503 // vceq.f32 d17, d3, #0 |
| 1251 | .long 0xf2c00010 // vmov.i32 d16, #0 |
| 1252 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1253 | .long 0xeec89a23 // vdiv.f32 s19, s16, s7 |
| 1254 | .long 0xee889a03 // vdiv.f32 s18, s16, s6 |
| 1255 | .long 0xf3501199 // vbsl d17, d16, d9 |
| 1256 | .long 0xf3010d90 // vmul.f32 d0, d17, d0 |
| 1257 | .long 0xf3011d91 // vmul.f32 d1, d17, d1 |
| 1258 | .long 0xf3012d92 // vmul.f32 d2, d17, d2 |
| 1259 | .long 0xecbd8b04 // vpop {d8-d9} |
| 1260 | .long 0xe12fff13 // bx r3 |
| 1261 | .long 0xe320f000 // nop {0} |
| 1262 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1263 | HIDDEN _sk_from_srgb_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1264 | .globl _sk_from_srgb_vfp4 |
| 1265 | _sk_from_srgb_vfp4: |
| 1266 | .long 0xeddf3b20 // vldr d19, [pc, #128] |
| 1267 | .long 0xf3408d10 // vmul.f32 d24, d0, d0 |
| 1268 | .long 0xeddf0b1c // vldr d16, [pc, #112] |
| 1269 | .long 0xf26341b3 // vorr d20, d19, d19 |
| 1270 | .long 0xf26351b3 // vorr d21, d19, d19 |
| 1271 | .long 0xeddf9b1f // vldr d25, [pc, #124] |
| 1272 | .long 0xf2404c30 // vfma.f32 d20, d0, d16 |
| 1273 | .long 0xeddf2b1b // vldr d18, [pc, #108] |
| 1274 | .long 0xf2415c30 // vfma.f32 d21, d1, d16 |
| 1275 | .long 0xeddfcb1d // vldr d28, [pc, #116] |
| 1276 | .long 0xf2423c30 // vfma.f32 d19, d2, d16 |
| 1277 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1278 | .long 0xf3426d12 // vmul.f32 d22, d2, d2 |
| 1279 | .long 0xf3417d11 // vmul.f32 d23, d1, d1 |
| 1280 | .long 0xf3620e80 // vcgt.f32 d16, d18, d0 |
| 1281 | .long 0xf3621e81 // vcgt.f32 d17, d18, d1 |
| 1282 | .long 0xf341ad39 // vmul.f32 d26, d1, d25 |
| 1283 | .long 0xf342bd39 // vmul.f32 d27, d2, d25 |
| 1284 | .long 0xf3622e82 // vcgt.f32 d18, d18, d2 |
| 1285 | .long 0xf3409d39 // vmul.f32 d25, d0, d25 |
| 1286 | .long 0xf26cd1bc // vorr d29, d28, d28 |
| 1287 | .long 0xf248dcb4 // vfma.f32 d29, d24, d20 |
| 1288 | .long 0xf26c41bc // vorr d20, d28, d28 |
| 1289 | .long 0xf2474cb5 // vfma.f32 d20, d23, d21 |
| 1290 | .long 0xf246ccb3 // vfma.f32 d28, d22, d19 |
| 1291 | .long 0xf35901bd // vbsl d16, d25, d29 |
| 1292 | .long 0xf35a11b4 // vbsl d17, d26, d20 |
| 1293 | .long 0xf35b21bc // vbsl d18, d27, d28 |
| 1294 | .long 0xf22001b0 // vorr d0, d16, d16 |
| 1295 | .long 0xf22111b1 // vorr d1, d17, d17 |
| 1296 | .long 0xf22221b2 // vorr d2, d18, d18 |
| 1297 | .long 0xe12fff13 // bx r3 |
| 1298 | .long 0x3e99999a // .word 0x3e99999a |
| 1299 | .long 0x3e99999a // .word 0x3e99999a |
| 1300 | .long 0x3f328f5c // .word 0x3f328f5c |
| 1301 | .long 0x3f328f5c // .word 0x3f328f5c |
| 1302 | .long 0x3d6147ae // .word 0x3d6147ae |
| 1303 | .long 0x3d6147ae // .word 0x3d6147ae |
| 1304 | .long 0x3d9e8391 // .word 0x3d9e8391 |
| 1305 | .long 0x3d9e8391 // .word 0x3d9e8391 |
| 1306 | .long 0x3b23d70a // .word 0x3b23d70a |
| 1307 | .long 0x3b23d70a // .word 0x3b23d70a |
| 1308 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1309 | HIDDEN _sk_to_srgb_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1310 | .globl _sk_to_srgb_vfp4 |
| 1311 | _sk_to_srgb_vfp4: |
| 1312 | .long 0xf3fb0582 // vrsqrte.f32 d16, d2 |
| 1313 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1314 | .long 0xf3fb1581 // vrsqrte.f32 d17, d1 |
| 1315 | .long 0xf3fb2580 // vrsqrte.f32 d18, d0 |
| 1316 | .long 0xf3403db0 // vmul.f32 d19, d16, d16 |
| 1317 | .long 0xf3414db1 // vmul.f32 d20, d17, d17 |
| 1318 | .long 0xf3425db2 // vmul.f32 d21, d18, d18 |
| 1319 | .long 0xf2623f33 // vrsqrts.f32 d19, d2, d19 |
| 1320 | .long 0xf2614f34 // vrsqrts.f32 d20, d1, d20 |
| 1321 | .long 0xf2605f35 // vrsqrts.f32 d21, d0, d21 |
| 1322 | .long 0xf3400db3 // vmul.f32 d16, d16, d19 |
| 1323 | .long 0xf3411db4 // vmul.f32 d17, d17, d20 |
| 1324 | .long 0xf3422db5 // vmul.f32 d18, d18, d21 |
| 1325 | .long 0xf3fb3520 // vrecpe.f32 d19, d16 |
| 1326 | .long 0xf3fb4521 // vrecpe.f32 d20, d17 |
| 1327 | .long 0xf3fb6522 // vrecpe.f32 d22, d18 |
| 1328 | .long 0xf3fb55a0 // vrsqrte.f32 d21, d16 |
| 1329 | .long 0xf3fb75a1 // vrsqrte.f32 d23, d17 |
| 1330 | .long 0xf3fb85a2 // vrsqrte.f32 d24, d18 |
| 1331 | .long 0xf2409fb3 // vrecps.f32 d25, d16, d19 |
| 1332 | .long 0xf241afb4 // vrecps.f32 d26, d17, d20 |
| 1333 | .long 0xf242bfb6 // vrecps.f32 d27, d18, d22 |
| 1334 | .long 0xf345cdb5 // vmul.f32 d28, d21, d21 |
| 1335 | .long 0xf347ddb7 // vmul.f32 d29, d23, d23 |
| 1336 | .long 0xf348edb8 // vmul.f32 d30, d24, d24 |
| 1337 | .long 0xf2600fbc // vrsqrts.f32 d16, d16, d28 |
| 1338 | .long 0xf2611fbd // vrsqrts.f32 d17, d17, d29 |
| 1339 | .long 0xf2622fbe // vrsqrts.f32 d18, d18, d30 |
| 1340 | .long 0xf3433db9 // vmul.f32 d19, d19, d25 |
| 1341 | .long 0xeddf9b21 // vldr d25, [pc, #132] |
| 1342 | .long 0xf3444dba // vmul.f32 d20, d20, d26 |
| 1343 | .long 0xeddfab21 // vldr d26, [pc, #132] |
| 1344 | .long 0xf3466dbb // vmul.f32 d22, d22, d27 |
| 1345 | .long 0xf26ab1ba // vorr d27, d26, d26 |
| 1346 | .long 0xf243bcb9 // vfma.f32 d27, d19, d25 |
| 1347 | .long 0xf26a31ba // vorr d19, d26, d26 |
| 1348 | .long 0xf2443cb9 // vfma.f32 d19, d20, d25 |
| 1349 | .long 0xeddf4b1d // vldr d20, [pc, #116] |
| 1350 | .long 0xf246acb9 // vfma.f32 d26, d22, d25 |
| 1351 | .long 0xf3450db0 // vmul.f32 d16, d21, d16 |
| 1352 | .long 0xeddf5b1c // vldr d21, [pc, #112] |
| 1353 | .long 0xf3471db1 // vmul.f32 d17, d23, d17 |
| 1354 | .long 0xf3482db2 // vmul.f32 d18, d24, d18 |
| 1355 | .long 0xf3406d35 // vmul.f32 d22, d0, d21 |
| 1356 | .long 0xf240bcb4 // vfma.f32 d27, d16, d20 |
| 1357 | .long 0xf2413cb4 // vfma.f32 d19, d17, d20 |
| 1358 | .long 0xf242acb4 // vfma.f32 d26, d18, d20 |
| 1359 | .long 0xeddf2b17 // vldr d18, [pc, #92] |
| 1360 | .long 0xf3417d35 // vmul.f32 d23, d1, d21 |
| 1361 | .long 0xf3620e80 // vcgt.f32 d16, d18, d0 |
| 1362 | .long 0xf3621e81 // vcgt.f32 d17, d18, d1 |
| 1363 | .long 0xf3622e82 // vcgt.f32 d18, d18, d2 |
| 1364 | .long 0xf3425d35 // vmul.f32 d21, d2, d21 |
| 1365 | .long 0xf2c74f10 // vmov.f32 d20, #1 |
| 1366 | .long 0xf2648faa // vmin.f32 d24, d20, d26 |
| 1367 | .long 0xf2643fa3 // vmin.f32 d19, d20, d19 |
| 1368 | .long 0xf2644fab // vmin.f32 d20, d20, d27 |
| 1369 | .long 0xf35601b8 // vbsl d16, d22, d24 |
| 1370 | .long 0xf35711b3 // vbsl d17, d23, d19 |
| 1371 | .long 0xf35521b4 // vbsl d18, d21, d20 |
| 1372 | .long 0xf22001b0 // vorr d0, d16, d16 |
| 1373 | .long 0xf22111b1 // vorr d1, d17, d17 |
| 1374 | .long 0xf22221b2 // vorr d2, d18, d18 |
| 1375 | .long 0xe12fff13 // bx r3 |
| 1376 | .long 0x3f306fce // .word 0x3f306fce |
| 1377 | .long 0x3f306fce // .word 0x3f306fce |
| 1378 | .long 0xbdca57a8 // .word 0xbdca57a8 |
| 1379 | .long 0xbdca57a8 // .word 0xbdca57a8 |
| 1380 | .long 0x3ed287c2 // .word 0x3ed287c2 |
| 1381 | .long 0x3ed287c2 // .word 0x3ed287c2 |
| 1382 | .long 0x41475c29 // .word 0x41475c29 |
| 1383 | .long 0x41475c29 // .word 0x41475c29 |
| 1384 | .long 0x3b8ce704 // .word 0x3b8ce704 |
| 1385 | .long 0x3b8ce704 // .word 0x3b8ce704 |
| 1386 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1387 | HIDDEN _sk_scale_1_float_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1388 | .globl _sk_scale_1_float_vfp4 |
| 1389 | _sk_scale_1_float_vfp4: |
| 1390 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1391 | .long 0xe2811008 // add r1, r1, #8 |
| 1392 | .long 0xf4e30c9f // vld1.32 {d16[]}, [r3 :32] |
| 1393 | .long 0xf3000d90 // vmul.f32 d0, d16, d0 |
| 1394 | .long 0xf3001d91 // vmul.f32 d1, d16, d1 |
| 1395 | .long 0xf3002d92 // vmul.f32 d2, d16, d2 |
| 1396 | .long 0xf3003d93 // vmul.f32 d3, d16, d3 |
| 1397 | .long 0xe12fff1c // bx ip |
| 1398 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1399 | HIDDEN _sk_scale_u8_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1400 | .globl _sk_scale_u8_vfp4 |
| 1401 | _sk_scale_u8_vfp4: |
| 1402 | .long 0xe24dd004 // sub sp, sp, #4 |
| 1403 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1404 | .long 0xe2811008 // add r1, r1, #8 |
| 1405 | .long 0xe5933000 // ldr r3, [r3] |
| 1406 | .long 0xe0833000 // add r3, r3, r0 |
| 1407 | .long 0xe1d330b0 // ldrh r3, [r3] |
| 1408 | .long 0xe1cd30b0 // strh r3, [sp] |
| 1409 | .long 0xe1a0300d // mov r3, sp |
| 1410 | .long 0xf4e3041f // vld1.16 {d16[0]}, [r3 :16] |
| 1411 | .long 0xf3c80a30 // vmovl.u8 q8, d16 |
| 1412 | .long 0xf3d00a30 // vmovl.u16 q8, d16 |
| 1413 | .long 0xf3fb06a0 // vcvt.f32.u32 d16, d16 |
| 1414 | .long 0xeddf1b06 // vldr d17, [pc, #24] |
| 1415 | .long 0xf3400db1 // vmul.f32 d16, d16, d17 |
| 1416 | .long 0xf3000d90 // vmul.f32 d0, d16, d0 |
| 1417 | .long 0xf3001d91 // vmul.f32 d1, d16, d1 |
| 1418 | .long 0xf3002d92 // vmul.f32 d2, d16, d2 |
| 1419 | .long 0xf3003d93 // vmul.f32 d3, d16, d3 |
| 1420 | .long 0xe28dd004 // add sp, sp, #4 |
| 1421 | .long 0xe12fff1c // bx ip |
| 1422 | .long 0x3b808081 // .word 0x3b808081 |
| 1423 | .long 0x3b808081 // .word 0x3b808081 |
| 1424 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1425 | HIDDEN _sk_lerp_1_float_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1426 | .globl _sk_lerp_1_float_vfp4 |
| 1427 | _sk_lerp_1_float_vfp4: |
| 1428 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1429 | .long 0xf2600d04 // vsub.f32 d16, d0, d4 |
| 1430 | .long 0xf2611d05 // vsub.f32 d17, d1, d5 |
| 1431 | .long 0xf2622d06 // vsub.f32 d18, d2, d6 |
| 1432 | .long 0xe2811008 // add r1, r1, #8 |
| 1433 | .long 0xf2633d07 // vsub.f32 d19, d3, d7 |
| 1434 | .long 0xf4e34c9f // vld1.32 {d20[]}, [r3 :32] |
| 1435 | .long 0xf2240114 // vorr d0, d4, d4 |
| 1436 | .long 0xf2251115 // vorr d1, d5, d5 |
| 1437 | .long 0xf2262116 // vorr d2, d6, d6 |
| 1438 | .long 0xf2273117 // vorr d3, d7, d7 |
| 1439 | .long 0xf2000cb4 // vfma.f32 d0, d16, d20 |
| 1440 | .long 0xf2011cb4 // vfma.f32 d1, d17, d20 |
| 1441 | .long 0xf2022cb4 // vfma.f32 d2, d18, d20 |
| 1442 | .long 0xf2033cb4 // vfma.f32 d3, d19, d20 |
| 1443 | .long 0xe12fff1c // bx ip |
| 1444 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1445 | HIDDEN _sk_lerp_u8_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1446 | .globl _sk_lerp_u8_vfp4 |
| 1447 | _sk_lerp_u8_vfp4: |
| 1448 | .long 0xe24dd004 // sub sp, sp, #4 |
| 1449 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1450 | .long 0xf2602d04 // vsub.f32 d18, d0, d4 |
| 1451 | .long 0xf2623d06 // vsub.f32 d19, d2, d6 |
| 1452 | .long 0xf2634d07 // vsub.f32 d20, d3, d7 |
| 1453 | .long 0xe2811008 // add r1, r1, #8 |
| 1454 | .long 0xe5933000 // ldr r3, [r3] |
| 1455 | .long 0xf2240114 // vorr d0, d4, d4 |
| 1456 | .long 0xf2262116 // vorr d2, d6, d6 |
| 1457 | .long 0xe0833000 // add r3, r3, r0 |
| 1458 | .long 0xf2273117 // vorr d3, d7, d7 |
| 1459 | .long 0xe1d330b0 // ldrh r3, [r3] |
| 1460 | .long 0xe1cd30b0 // strh r3, [sp] |
| 1461 | .long 0xe1a0300d // mov r3, sp |
| 1462 | .long 0xf4e3041f // vld1.16 {d16[0]}, [r3 :16] |
| 1463 | .long 0xf3c80a30 // vmovl.u8 q8, d16 |
| 1464 | .long 0xf3d00a30 // vmovl.u16 q8, d16 |
| 1465 | .long 0xf3fb06a0 // vcvt.f32.u32 d16, d16 |
| 1466 | .long 0xeddf1b08 // vldr d17, [pc, #32] |
| 1467 | .long 0xf3400db1 // vmul.f32 d16, d16, d17 |
| 1468 | .long 0xf2611d05 // vsub.f32 d17, d1, d5 |
| 1469 | .long 0xf2251115 // vorr d1, d5, d5 |
| 1470 | .long 0xf2020cb0 // vfma.f32 d0, d18, d16 |
| 1471 | .long 0xf2011cb0 // vfma.f32 d1, d17, d16 |
| 1472 | .long 0xf2032cb0 // vfma.f32 d2, d19, d16 |
| 1473 | .long 0xf2043cb0 // vfma.f32 d3, d20, d16 |
| 1474 | .long 0xe28dd004 // add sp, sp, #4 |
| 1475 | .long 0xe12fff1c // bx ip |
| 1476 | .long 0x3b808081 // .word 0x3b808081 |
| 1477 | .long 0x3b808081 // .word 0x3b808081 |
| 1478 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1479 | HIDDEN _sk_lerp_565_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1480 | .globl _sk_lerp_565_vfp4 |
| 1481 | _sk_lerp_565_vfp4: |
| 1482 | .long 0xe24dd004 // sub sp, sp, #4 |
| 1483 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1484 | .long 0xf3c72218 // vmov.i32 d18, #63488 |
| 1485 | .long 0xf2c1101f // vmov.i32 d17, #31 |
| 1486 | .long 0xf2603d04 // vsub.f32 d19, d0, d4 |
| 1487 | .long 0xe2811008 // add r1, r1, #8 |
| 1488 | .long 0xe5933000 // ldr r3, [r3] |
| 1489 | .long 0xf2616d05 // vsub.f32 d22, d1, d5 |
| 1490 | .long 0xf2240114 // vorr d0, d4, d4 |
| 1491 | .long 0xf2251115 // vorr d1, d5, d5 |
| 1492 | .long 0xe7933080 // ldr r3, [r3, r0, lsl #1] |
| 1493 | .long 0xf2873f10 // vmov.f32 d3, #1 |
| 1494 | .long 0xe58d3000 // str r3, [sp] |
| 1495 | .long 0xe1a0300d // mov r3, sp |
| 1496 | .long 0xf4e3083f // vld1.32 {d16[0]}, [r3 :32] |
| 1497 | .long 0xe3a03e7e // mov r3, #2016 |
| 1498 | .long 0xf3d04a30 // vmovl.u16 q10, d16 |
| 1499 | .long 0xee803b90 // vdup.32 d16, r3 |
| 1500 | .long 0xf24421b2 // vand d18, d20, d18 |
| 1501 | .long 0xf24411b1 // vand d17, d20, d17 |
| 1502 | .long 0xeddf5b12 // vldr d21, [pc, #72] |
| 1503 | .long 0xf24401b0 // vand d16, d20, d16 |
| 1504 | .long 0xeddf4b0e // vldr d20, [pc, #56] |
| 1505 | .long 0xf3fb2622 // vcvt.f32.s32 d18, d18 |
| 1506 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1507 | .long 0xf3fb1621 // vcvt.f32.s32 d17, d17 |
| 1508 | .long 0xf3422db4 // vmul.f32 d18, d18, d20 |
| 1509 | .long 0xeddf4b0d // vldr d20, [pc, #52] |
| 1510 | .long 0xf3400db5 // vmul.f32 d16, d16, d21 |
| 1511 | .long 0xf2625d06 // vsub.f32 d21, d2, d6 |
| 1512 | .long 0xf3411db4 // vmul.f32 d17, d17, d20 |
| 1513 | .long 0xf2262116 // vorr d2, d6, d6 |
| 1514 | .long 0xf2030cb2 // vfma.f32 d0, d19, d18 |
| 1515 | .long 0xf2061cb0 // vfma.f32 d1, d22, d16 |
| 1516 | .long 0xf2052cb1 // vfma.f32 d2, d21, d17 |
| 1517 | .long 0xe28dd004 // add sp, sp, #4 |
| 1518 | .long 0xe12fff1c // bx ip |
| 1519 | .long 0xe320f000 // nop {0} |
| 1520 | .long 0x37842108 // .word 0x37842108 |
| 1521 | .long 0x37842108 // .word 0x37842108 |
| 1522 | .long 0x3a020821 // .word 0x3a020821 |
| 1523 | .long 0x3a020821 // .word 0x3a020821 |
| 1524 | .long 0x3d042108 // .word 0x3d042108 |
| 1525 | .long 0x3d042108 // .word 0x3d042108 |
| 1526 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1527 | HIDDEN _sk_load_tables_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1528 | .globl _sk_load_tables_vfp4 |
| 1529 | _sk_load_tables_vfp4: |
| 1530 | .long 0xe92d48f0 // push {r4, r5, r6, r7, fp, lr} |
| 1531 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1532 | .long 0xf3c7001f // vmov.i32 d16, #255 |
| 1533 | .long 0xe2811008 // add r1, r1, #8 |
| 1534 | .long 0xe593e000 // ldr lr, [r3] |
| 1535 | .long 0xe99300b0 // ldmib r3, {r4, r5, r7} |
| 1536 | .long 0xe08e3100 // add r3, lr, r0, lsl #2 |
| 1537 | .long 0xedd31b00 // vldr d17, [r3] |
| 1538 | .long 0xf24121b0 // vand d18, d17, d16 |
| 1539 | .long 0xf3f83031 // vshr.u32 d19, d17, #8 |
| 1540 | .long 0xee323b90 // vmov.32 r3, d18[1] |
| 1541 | .long 0xee126b90 // vmov.32 r6, d18[0] |
| 1542 | .long 0xf3f02031 // vshr.u32 d18, d17, #16 |
| 1543 | .long 0xf24221b0 // vand d18, d18, d16 |
| 1544 | .long 0xf24301b0 // vand d16, d19, d16 |
| 1545 | .long 0xe0843103 // add r3, r4, r3, lsl #2 |
| 1546 | .long 0xedd30a00 // vldr s1, [r3] |
| 1547 | .long 0xe0843106 // add r3, r4, r6, lsl #2 |
| 1548 | .long 0xee326b90 // vmov.32 r6, d18[1] |
| 1549 | .long 0xed930a00 // vldr s0, [r3] |
| 1550 | .long 0xee303b90 // vmov.32 r3, d16[1] |
| 1551 | .long 0xee104b90 // vmov.32 r4, d16[0] |
| 1552 | .long 0xf3e80031 // vshr.u32 d16, d17, #24 |
| 1553 | .long 0xeddf1b0d // vldr d17, [pc, #52] |
| 1554 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1555 | .long 0xf3003db1 // vmul.f32 d3, d16, d17 |
| 1556 | .long 0xe087e106 // add lr, r7, r6, lsl #2 |
| 1557 | .long 0xee126b90 // vmov.32 r6, d18[0] |
| 1558 | .long 0xe0853103 // add r3, r5, r3, lsl #2 |
| 1559 | .long 0xedde2a00 // vldr s5, [lr] |
| 1560 | .long 0xedd31a00 // vldr s3, [r3] |
| 1561 | .long 0xe0853104 // add r3, r5, r4, lsl #2 |
| 1562 | .long 0xed931a00 // vldr s2, [r3] |
| 1563 | .long 0xe0873106 // add r3, r7, r6, lsl #2 |
| 1564 | .long 0xed932a00 // vldr s4, [r3] |
| 1565 | .long 0xe8bd48f0 // pop {r4, r5, r6, r7, fp, lr} |
| 1566 | .long 0xe12fff1c // bx ip |
| 1567 | .long 0xe320f000 // nop {0} |
| 1568 | .long 0x3b808081 // .word 0x3b808081 |
| 1569 | .long 0x3b808081 // .word 0x3b808081 |
| 1570 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1571 | HIDDEN _sk_load_a8_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1572 | .globl _sk_load_a8_vfp4 |
| 1573 | _sk_load_a8_vfp4: |
| 1574 | .long 0xe24dd004 // sub sp, sp, #4 |
| 1575 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1576 | .long 0xe2811008 // add r1, r1, #8 |
| 1577 | .long 0xf2800010 // vmov.i32 d0, #0 |
| 1578 | .long 0xf2801010 // vmov.i32 d1, #0 |
| 1579 | .long 0xe5933000 // ldr r3, [r3] |
| 1580 | .long 0xf2802010 // vmov.i32 d2, #0 |
| 1581 | .long 0xe0833000 // add r3, r3, r0 |
| 1582 | .long 0xe1d330b0 // ldrh r3, [r3] |
| 1583 | .long 0xe1cd30b0 // strh r3, [sp] |
| 1584 | .long 0xe1a0300d // mov r3, sp |
| 1585 | .long 0xf4e3041f // vld1.16 {d16[0]}, [r3 :16] |
| 1586 | .long 0xf3c80a30 // vmovl.u8 q8, d16 |
| 1587 | .long 0xf3d00a30 // vmovl.u16 q8, d16 |
| 1588 | .long 0xf3fb06a0 // vcvt.f32.u32 d16, d16 |
| 1589 | .long 0xeddf1b03 // vldr d17, [pc, #12] |
| 1590 | .long 0xf3003db1 // vmul.f32 d3, d16, d17 |
| 1591 | .long 0xe28dd004 // add sp, sp, #4 |
| 1592 | .long 0xe12fff1c // bx ip |
| 1593 | .long 0xe320f000 // nop {0} |
| 1594 | .long 0x3b808081 // .word 0x3b808081 |
| 1595 | .long 0x3b808081 // .word 0x3b808081 |
| 1596 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1597 | HIDDEN _sk_store_a8_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1598 | .globl _sk_store_a8_vfp4 |
| 1599 | _sk_store_a8_vfp4: |
| 1600 | .long 0xe92d4800 // push {fp, lr} |
| 1601 | .long 0xeddf0b0d // vldr d16, [pc, #52] |
| 1602 | .long 0xf2c3161f // vmov.i32 d17, #1056964608 |
| 1603 | .long 0xf2431c30 // vfma.f32 d17, d3, d16 |
| 1604 | .long 0xe5913000 // ldr r3, [r1] |
| 1605 | .long 0xe5933000 // ldr r3, [r3] |
| 1606 | .long 0xf3fb07a1 // vcvt.u32.f32 d16, d17 |
| 1607 | .long 0xee10eb90 // vmov.32 lr, d16[0] |
| 1608 | .long 0xee30cb90 // vmov.32 ip, d16[1] |
| 1609 | .long 0xe7e3e000 // strb lr, [r3, r0]! |
| 1610 | .long 0xe5c3c001 // strb ip, [r3, #1] |
| 1611 | .long 0xe2813008 // add r3, r1, #8 |
| 1612 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1613 | .long 0xe1a01003 // mov r1, r3 |
| 1614 | .long 0xe8bd4800 // pop {fp, lr} |
| 1615 | .long 0xe12fff1c // bx ip |
| 1616 | .long 0x437f0000 // .word 0x437f0000 |
| 1617 | .long 0x437f0000 // .word 0x437f0000 |
| 1618 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1619 | HIDDEN _sk_load_565_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1620 | .globl _sk_load_565_vfp4 |
| 1621 | _sk_load_565_vfp4: |
| 1622 | .long 0xe24dd004 // sub sp, sp, #4 |
| 1623 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1624 | .long 0xf2c1101f // vmov.i32 d17, #31 |
| 1625 | .long 0xf3c72218 // vmov.i32 d18, #63488 |
| 1626 | .long 0xeddf3b16 // vldr d19, [pc, #88] |
| 1627 | .long 0xe2811008 // add r1, r1, #8 |
| 1628 | .long 0xe5933000 // ldr r3, [r3] |
| 1629 | .long 0xf2873f10 // vmov.f32 d3, #1 |
| 1630 | .long 0xe7933080 // ldr r3, [r3, r0, lsl #1] |
| 1631 | .long 0xe58d3000 // str r3, [sp] |
| 1632 | .long 0xe1a0300d // mov r3, sp |
| 1633 | .long 0xf4e3083f // vld1.32 {d16[0]}, [r3 :32] |
| 1634 | .long 0xe3a03e7e // mov r3, #2016 |
| 1635 | .long 0xf3d04a30 // vmovl.u16 q10, d16 |
| 1636 | .long 0xee803b90 // vdup.32 d16, r3 |
| 1637 | .long 0xf24411b1 // vand d17, d20, d17 |
| 1638 | .long 0xeddf5b0e // vldr d21, [pc, #56] |
| 1639 | .long 0xf24421b2 // vand d18, d20, d18 |
| 1640 | .long 0xf24401b0 // vand d16, d20, d16 |
| 1641 | .long 0xeddf4b09 // vldr d20, [pc, #36] |
| 1642 | .long 0xf3fb2622 // vcvt.f32.s32 d18, d18 |
| 1643 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1644 | .long 0xf3fb1621 // vcvt.f32.s32 d17, d17 |
| 1645 | .long 0xf3020db3 // vmul.f32 d0, d18, d19 |
| 1646 | .long 0xf3001db4 // vmul.f32 d1, d16, d20 |
| 1647 | .long 0xf3012db5 // vmul.f32 d2, d17, d21 |
| 1648 | .long 0xe28dd004 // add sp, sp, #4 |
| 1649 | .long 0xe12fff1c // bx ip |
| 1650 | .long 0x37842108 // .word 0x37842108 |
| 1651 | .long 0x37842108 // .word 0x37842108 |
| 1652 | .long 0x3a020821 // .word 0x3a020821 |
| 1653 | .long 0x3a020821 // .word 0x3a020821 |
| 1654 | .long 0x3d042108 // .word 0x3d042108 |
| 1655 | .long 0x3d042108 // .word 0x3d042108 |
| 1656 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1657 | HIDDEN _sk_store_565_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1658 | .globl _sk_store_565_vfp4 |
| 1659 | _sk_store_565_vfp4: |
| 1660 | .long 0xf2c30f1f // vmov.f32 d16, #31 |
| 1661 | .long 0xeddf1b15 // vldr d17, [pc, #84] |
| 1662 | .long 0xf2c3361f // vmov.i32 d19, #1056964608 |
| 1663 | .long 0xe5913000 // ldr r3, [r1] |
| 1664 | .long 0xf2413c31 // vfma.f32 d19, d1, d17 |
| 1665 | .long 0xf2c3161f // vmov.i32 d17, #1056964608 |
| 1666 | .long 0xf2401c30 // vfma.f32 d17, d0, d16 |
| 1667 | .long 0xe5933000 // ldr r3, [r3] |
| 1668 | .long 0xf2c3261f // vmov.i32 d18, #1056964608 |
| 1669 | .long 0xf2422c30 // vfma.f32 d18, d2, d16 |
| 1670 | .long 0xe0833080 // add r3, r3, r0, lsl #1 |
| 1671 | .long 0xf3fb07a3 // vcvt.u32.f32 d16, d19 |
| 1672 | .long 0xf3fb17a1 // vcvt.u32.f32 d17, d17 |
| 1673 | .long 0xf3fb27a2 // vcvt.u32.f32 d18, d18 |
| 1674 | .long 0xf2e50530 // vshl.s32 d16, d16, #5 |
| 1675 | .long 0xf2eb1531 // vshl.s32 d17, d17, #11 |
| 1676 | .long 0xf26001b1 // vorr d16, d16, d17 |
| 1677 | .long 0xf26001b2 // vorr d16, d16, d18 |
| 1678 | .long 0xf3f60121 // vuzp.16 d16, d17 |
| 1679 | .long 0xf4c3080f // vst1.32 {d16[0]}, [r3] |
| 1680 | .long 0xe2813008 // add r3, r1, #8 |
| 1681 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1682 | .long 0xe1a01003 // mov r1, r3 |
| 1683 | .long 0xe12fff1c // bx ip |
| 1684 | .long 0x427c0000 // .word 0x427c0000 |
| 1685 | .long 0x427c0000 // .word 0x427c0000 |
| 1686 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1687 | HIDDEN _sk_load_8888_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1688 | .globl _sk_load_8888_vfp4 |
| 1689 | _sk_load_8888_vfp4: |
| 1690 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1691 | .long 0xf3c7001f // vmov.i32 d16, #255 |
| 1692 | .long 0xe2811008 // add r1, r1, #8 |
| 1693 | .long 0xe5933000 // ldr r3, [r3] |
| 1694 | .long 0xe0833100 // add r3, r3, r0, lsl #2 |
| 1695 | .long 0xedd31b00 // vldr d17, [r3] |
| 1696 | .long 0xf24121b0 // vand d18, d17, d16 |
| 1697 | .long 0xf3f83031 // vshr.u32 d19, d17, #8 |
| 1698 | .long 0xf3e84031 // vshr.u32 d20, d17, #24 |
| 1699 | .long 0xf3f01031 // vshr.u32 d17, d17, #16 |
| 1700 | .long 0xf24331b0 // vand d19, d19, d16 |
| 1701 | .long 0xf24101b0 // vand d16, d17, d16 |
| 1702 | .long 0xeddf1b08 // vldr d17, [pc, #32] |
| 1703 | .long 0xf3fb2622 // vcvt.f32.s32 d18, d18 |
| 1704 | .long 0xf3fb4624 // vcvt.f32.s32 d20, d20 |
| 1705 | .long 0xf3fb3623 // vcvt.f32.s32 d19, d19 |
| 1706 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1707 | .long 0xf3020db1 // vmul.f32 d0, d18, d17 |
| 1708 | .long 0xf3043db1 // vmul.f32 d3, d20, d17 |
| 1709 | .long 0xf3031db1 // vmul.f32 d1, d19, d17 |
| 1710 | .long 0xf3002db1 // vmul.f32 d2, d16, d17 |
| 1711 | .long 0xe12fff1c // bx ip |
| 1712 | .long 0x3b808081 // .word 0x3b808081 |
| 1713 | .long 0x3b808081 // .word 0x3b808081 |
| 1714 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1715 | HIDDEN _sk_store_8888_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1716 | .globl _sk_store_8888_vfp4 |
| 1717 | _sk_store_8888_vfp4: |
| 1718 | .long 0xeddf0b1a // vldr d16, [pc, #104] |
| 1719 | .long 0xf2c3261f // vmov.i32 d18, #1056964608 |
| 1720 | .long 0xf2412c30 // vfma.f32 d18, d1, d16 |
| 1721 | .long 0xe5913000 // ldr r3, [r1] |
| 1722 | .long 0xf2c3361f // vmov.i32 d19, #1056964608 |
| 1723 | .long 0xf2c3161f // vmov.i32 d17, #1056964608 |
| 1724 | .long 0xf2423c30 // vfma.f32 d19, d2, d16 |
| 1725 | .long 0xe5933000 // ldr r3, [r3] |
| 1726 | .long 0xf2c3461f // vmov.i32 d20, #1056964608 |
| 1727 | .long 0xf2401c30 // vfma.f32 d17, d0, d16 |
| 1728 | .long 0xe0833100 // add r3, r3, r0, lsl #2 |
| 1729 | .long 0xf2434c30 // vfma.f32 d20, d3, d16 |
| 1730 | .long 0xf3fb07a2 // vcvt.u32.f32 d16, d18 |
| 1731 | .long 0xf3fb27a3 // vcvt.u32.f32 d18, d19 |
| 1732 | .long 0xf3fb17a1 // vcvt.u32.f32 d17, d17 |
| 1733 | .long 0xf3fb37a4 // vcvt.u32.f32 d19, d20 |
| 1734 | .long 0xf2e80530 // vshl.s32 d16, d16, #8 |
| 1735 | .long 0xf2f02532 // vshl.s32 d18, d18, #16 |
| 1736 | .long 0xf26001b1 // vorr d16, d16, d17 |
| 1737 | .long 0xf2f81533 // vshl.s32 d17, d19, #24 |
| 1738 | .long 0xf26001b2 // vorr d16, d16, d18 |
| 1739 | .long 0xf26001b1 // vorr d16, d16, d17 |
| 1740 | .long 0xedc30b00 // vstr d16, [r3] |
| 1741 | .long 0xe2813008 // add r3, r1, #8 |
| 1742 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1743 | .long 0xe1a01003 // mov r1, r3 |
| 1744 | .long 0xe12fff1c // bx ip |
| 1745 | .long 0xe320f000 // nop {0} |
| 1746 | .long 0x437f0000 // .word 0x437f0000 |
| 1747 | .long 0x437f0000 // .word 0x437f0000 |
| 1748 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1749 | HIDDEN _sk_load_f16_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1750 | .globl _sk_load_f16_vfp4 |
| 1751 | _sk_load_f16_vfp4: |
| 1752 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1753 | .long 0xe2811008 // add r1, r1, #8 |
| 1754 | .long 0xe5933000 // ldr r3, [r3] |
| 1755 | .long 0xe0833180 // add r3, r3, r0, lsl #3 |
| 1756 | .long 0xf463084f // vld2.16 {d16-d17}, [r3] |
| 1757 | .long 0xf3f62720 // vcvt.f32.f16 q9, d16 |
| 1758 | .long 0xf3f60721 // vcvt.f32.f16 q8, d17 |
| 1759 | .long 0xf22201b2 // vorr d0, d18, d18 |
| 1760 | .long 0xf22011b0 // vorr d1, d16, d16 |
| 1761 | .long 0xf3ba00a3 // vtrn.32 d0, d19 |
| 1762 | .long 0xf22321b3 // vorr d2, d19, d19 |
| 1763 | .long 0xf3ba10a1 // vtrn.32 d1, d17 |
| 1764 | .long 0xf22131b1 // vorr d3, d17, d17 |
| 1765 | .long 0xe12fff1c // bx ip |
| 1766 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1767 | HIDDEN _sk_store_f16_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1768 | .globl _sk_store_f16_vfp4 |
| 1769 | _sk_store_f16_vfp4: |
| 1770 | .long 0xeef00b41 // vmov.f64 d16, d1 |
| 1771 | .long 0xeef03b42 // vmov.f64 d19, d2 |
| 1772 | .long 0xf2631113 // vorr d17, d3, d3 |
| 1773 | .long 0xf2602110 // vorr d18, d0, d0 |
| 1774 | .long 0xf3fa00a1 // vtrn.32 d16, d17 |
| 1775 | .long 0xf3f61620 // vcvt.f16.f32 d17, q8 |
| 1776 | .long 0xf3fa20a3 // vtrn.32 d18, d19 |
| 1777 | .long 0xe5913000 // ldr r3, [r1] |
| 1778 | .long 0xf3f60622 // vcvt.f16.f32 d16, q9 |
| 1779 | .long 0xe5933000 // ldr r3, [r3] |
| 1780 | .long 0xe0833180 // add r3, r3, r0, lsl #3 |
| 1781 | .long 0xf443084f // vst2.16 {d16-d17}, [r3] |
| 1782 | .long 0xe2813008 // add r3, r1, #8 |
| 1783 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1784 | .long 0xe1a01003 // mov r1, r3 |
| 1785 | .long 0xe12fff1c // bx ip |
| 1786 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1787 | HIDDEN _sk_store_f32_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1788 | .globl _sk_store_f32_vfp4 |
| 1789 | _sk_store_f32_vfp4: |
| 1790 | .long 0xe5913000 // ldr r3, [r1] |
| 1791 | .long 0xe5933000 // ldr r3, [r3] |
| 1792 | .long 0xe0833200 // add r3, r3, r0, lsl #4 |
| 1793 | .long 0xf403008f // vst4.32 {d0-d3}, [r3] |
| 1794 | .long 0xe2813008 // add r3, r1, #8 |
| 1795 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1796 | .long 0xe1a01003 // mov r1, r3 |
| 1797 | .long 0xe12fff1c // bx ip |
| 1798 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1799 | HIDDEN _sk_clamp_x_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1800 | .globl _sk_clamp_x_vfp4 |
| 1801 | _sk_clamp_x_vfp4: |
| 1802 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1803 | .long 0xf2c00010 // vmov.i32 d16, #0 |
| 1804 | .long 0xf3c71e1f // vmov.i8 d17, #255 |
| 1805 | .long 0xf2400f80 // vmax.f32 d16, d16, d0 |
| 1806 | .long 0xe2811008 // add r1, r1, #8 |
| 1807 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 1808 | .long 0xf26218a1 // vadd.i32 d17, d18, d17 |
| 1809 | .long 0xf2200fa1 // vmin.f32 d0, d16, d17 |
| 1810 | .long 0xe12fff1c // bx ip |
| 1811 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1812 | HIDDEN _sk_clamp_y_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1813 | .globl _sk_clamp_y_vfp4 |
| 1814 | _sk_clamp_y_vfp4: |
| 1815 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1816 | .long 0xf2c00010 // vmov.i32 d16, #0 |
| 1817 | .long 0xf3c71e1f // vmov.i8 d17, #255 |
| 1818 | .long 0xf2400f81 // vmax.f32 d16, d16, d1 |
| 1819 | .long 0xe2811008 // add r1, r1, #8 |
| 1820 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 1821 | .long 0xf26218a1 // vadd.i32 d17, d18, d17 |
| 1822 | .long 0xf2201fa1 // vmin.f32 d1, d16, d17 |
| 1823 | .long 0xe12fff1c // bx ip |
| 1824 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1825 | HIDDEN _sk_repeat_x_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1826 | .globl _sk_repeat_x_vfp4 |
| 1827 | _sk_repeat_x_vfp4: |
| 1828 | .long 0xed2d8b04 // vpush {d8-d9} |
| 1829 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1830 | .long 0xf2c02010 // vmov.i32 d18, #0 |
| 1831 | .long 0xe2811008 // add r1, r1, #8 |
| 1832 | .long 0xeddf3b10 // vldr d19, [pc, #64] |
| 1833 | .long 0xed938a00 // vldr s16, [r3] |
| 1834 | .long 0xeec09a88 // vdiv.f32 s19, s1, s16 |
| 1835 | .long 0xee809a08 // vdiv.f32 s18, s0, s16 |
| 1836 | .long 0xf3fb0709 // vcvt.s32.f32 d16, d9 |
| 1837 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1838 | .long 0xf3601e89 // vcgt.f32 d17, d16, d9 |
| 1839 | .long 0xf35311b2 // vbsl d17, d19, d18 |
| 1840 | .long 0xf3f42c08 // vdup.32 d18, d8[0] |
| 1841 | .long 0xf2600da1 // vsub.f32 d16, d16, d17 |
| 1842 | .long 0xf3c71e1f // vmov.i8 d17, #255 |
| 1843 | .long 0xf26218a1 // vadd.i32 d17, d18, d17 |
| 1844 | .long 0xf2e009c8 // vmul.f32 d16, d16, d8[0] |
| 1845 | .long 0xf2600d20 // vsub.f32 d16, d0, d16 |
| 1846 | .long 0xf2200fa1 // vmin.f32 d0, d16, d17 |
| 1847 | .long 0xecbd8b04 // vpop {d8-d9} |
| 1848 | .long 0xe12fff1c // bx ip |
| 1849 | .long 0xe320f000 // nop {0} |
| 1850 | .long 0x3f800000 // .word 0x3f800000 |
| 1851 | .long 0x3f800000 // .word 0x3f800000 |
| 1852 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1853 | HIDDEN _sk_repeat_y_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1854 | .globl _sk_repeat_y_vfp4 |
| 1855 | _sk_repeat_y_vfp4: |
| 1856 | .long 0xed2d8b04 // vpush {d8-d9} |
| 1857 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1858 | .long 0xf2c02010 // vmov.i32 d18, #0 |
| 1859 | .long 0xe2811008 // add r1, r1, #8 |
| 1860 | .long 0xeddf3b10 // vldr d19, [pc, #64] |
| 1861 | .long 0xed938a00 // vldr s16, [r3] |
| 1862 | .long 0xeec19a88 // vdiv.f32 s19, s3, s16 |
| 1863 | .long 0xee819a08 // vdiv.f32 s18, s2, s16 |
| 1864 | .long 0xf3fb0709 // vcvt.s32.f32 d16, d9 |
| 1865 | .long 0xf3fb0620 // vcvt.f32.s32 d16, d16 |
| 1866 | .long 0xf3601e89 // vcgt.f32 d17, d16, d9 |
| 1867 | .long 0xf35311b2 // vbsl d17, d19, d18 |
| 1868 | .long 0xf3f42c08 // vdup.32 d18, d8[0] |
| 1869 | .long 0xf2600da1 // vsub.f32 d16, d16, d17 |
| 1870 | .long 0xf3c71e1f // vmov.i8 d17, #255 |
| 1871 | .long 0xf26218a1 // vadd.i32 d17, d18, d17 |
| 1872 | .long 0xf2e009c8 // vmul.f32 d16, d16, d8[0] |
| 1873 | .long 0xf2610d20 // vsub.f32 d16, d1, d16 |
| 1874 | .long 0xf2201fa1 // vmin.f32 d1, d16, d17 |
| 1875 | .long 0xecbd8b04 // vpop {d8-d9} |
| 1876 | .long 0xe12fff1c // bx ip |
| 1877 | .long 0xe320f000 // nop {0} |
| 1878 | .long 0x3f800000 // .word 0x3f800000 |
| 1879 | .long 0x3f800000 // .word 0x3f800000 |
| 1880 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1881 | HIDDEN _sk_mirror_x_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1882 | .globl _sk_mirror_x_vfp4 |
| 1883 | _sk_mirror_x_vfp4: |
| 1884 | .long 0xed2d8b04 // vpush {d8-d9} |
| 1885 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1886 | .long 0xf2c03010 // vmov.i32 d19, #0 |
| 1887 | .long 0xe2811008 // add r1, r1, #8 |
| 1888 | .long 0xeddf4b14 // vldr d20, [pc, #80] |
| 1889 | .long 0xed938a00 // vldr s16, [r3] |
| 1890 | .long 0xee389a08 // vadd.f32 s18, s16, s16 |
| 1891 | .long 0xf3f40c08 // vdup.32 d16, d8[0] |
| 1892 | .long 0xf2200d20 // vsub.f32 d0, d0, d16 |
| 1893 | .long 0xeec08a89 // vdiv.f32 s17, s1, s18 |
| 1894 | .long 0xee808a09 // vdiv.f32 s16, s0, s18 |
| 1895 | .long 0xf3fb1708 // vcvt.s32.f32 d17, d8 |
| 1896 | .long 0xf3fb1621 // vcvt.f32.s32 d17, d17 |
| 1897 | .long 0xf3612e88 // vcgt.f32 d18, d17, d8 |
| 1898 | .long 0xf35421b3 // vbsl d18, d20, d19 |
| 1899 | .long 0xf2611da2 // vsub.f32 d17, d17, d18 |
| 1900 | .long 0xf3c72e1f // vmov.i8 d18, #255 |
| 1901 | .long 0xf2e119c9 // vmul.f32 d17, d17, d9[0] |
| 1902 | .long 0xf2601d21 // vsub.f32 d17, d0, d17 |
| 1903 | .long 0xf2611da0 // vsub.f32 d17, d17, d16 |
| 1904 | .long 0xf26008a2 // vadd.i32 d16, d16, d18 |
| 1905 | .long 0xf3f91721 // vabs.f32 d17, d17 |
| 1906 | .long 0xf2210fa0 // vmin.f32 d0, d17, d16 |
| 1907 | .long 0xecbd8b04 // vpop {d8-d9} |
| 1908 | .long 0xe12fff1c // bx ip |
| 1909 | .long 0xe320f000 // nop {0} |
| 1910 | .long 0x3f800000 // .word 0x3f800000 |
| 1911 | .long 0x3f800000 // .word 0x3f800000 |
| 1912 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1913 | HIDDEN _sk_mirror_y_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1914 | .globl _sk_mirror_y_vfp4 |
| 1915 | _sk_mirror_y_vfp4: |
| 1916 | .long 0xed2d8b04 // vpush {d8-d9} |
| 1917 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 1918 | .long 0xf2c03010 // vmov.i32 d19, #0 |
| 1919 | .long 0xe2811008 // add r1, r1, #8 |
| 1920 | .long 0xeddf4b14 // vldr d20, [pc, #80] |
| 1921 | .long 0xed938a00 // vldr s16, [r3] |
| 1922 | .long 0xee389a08 // vadd.f32 s18, s16, s16 |
| 1923 | .long 0xf3f40c08 // vdup.32 d16, d8[0] |
| 1924 | .long 0xf2211d20 // vsub.f32 d1, d1, d16 |
| 1925 | .long 0xeec18a89 // vdiv.f32 s17, s3, s18 |
| 1926 | .long 0xee818a09 // vdiv.f32 s16, s2, s18 |
| 1927 | .long 0xf3fb1708 // vcvt.s32.f32 d17, d8 |
| 1928 | .long 0xf3fb1621 // vcvt.f32.s32 d17, d17 |
| 1929 | .long 0xf3612e88 // vcgt.f32 d18, d17, d8 |
| 1930 | .long 0xf35421b3 // vbsl d18, d20, d19 |
| 1931 | .long 0xf2611da2 // vsub.f32 d17, d17, d18 |
| 1932 | .long 0xf3c72e1f // vmov.i8 d18, #255 |
| 1933 | .long 0xf2e119c9 // vmul.f32 d17, d17, d9[0] |
| 1934 | .long 0xf2611d21 // vsub.f32 d17, d1, d17 |
| 1935 | .long 0xf2611da0 // vsub.f32 d17, d17, d16 |
| 1936 | .long 0xf26008a2 // vadd.i32 d16, d16, d18 |
| 1937 | .long 0xf3f91721 // vabs.f32 d17, d17 |
| 1938 | .long 0xf2211fa0 // vmin.f32 d1, d17, d16 |
| 1939 | .long 0xecbd8b04 // vpop {d8-d9} |
| 1940 | .long 0xe12fff1c // bx ip |
| 1941 | .long 0xe320f000 // nop {0} |
| 1942 | .long 0x3f800000 // .word 0x3f800000 |
| 1943 | .long 0x3f800000 // .word 0x3f800000 |
| 1944 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1945 | HIDDEN _sk_luminance_to_alpha_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1946 | .globl _sk_luminance_to_alpha_vfp4 |
| 1947 | _sk_luminance_to_alpha_vfp4: |
| 1948 | .long 0xeddf0b0a // vldr d16, [pc, #40] |
| 1949 | .long 0xeddf1b0b // vldr d17, [pc, #44] |
| 1950 | .long 0xf3410d30 // vmul.f32 d16, d1, d16 |
| 1951 | .long 0xe4913004 // ldr r3, [r1], #4 |
| 1952 | .long 0xf3401d31 // vmul.f32 d17, d0, d17 |
| 1953 | .long 0xf2800010 // vmov.i32 d0, #0 |
| 1954 | .long 0xf2801010 // vmov.i32 d1, #0 |
| 1955 | .long 0xf2013da0 // vadd.f32 d3, d17, d16 |
| 1956 | .long 0xeddf0b06 // vldr d16, [pc, #24] |
| 1957 | .long 0xf2023c30 // vfma.f32 d3, d2, d16 |
| 1958 | .long 0xf2802010 // vmov.i32 d2, #0 |
| 1959 | .long 0xe12fff13 // bx r3 |
| 1960 | .long 0x3f371759 // .word 0x3f371759 |
| 1961 | .long 0x3f371759 // .word 0x3f371759 |
| 1962 | .long 0x3e59b3d0 // .word 0x3e59b3d0 |
| 1963 | .long 0x3e59b3d0 // .word 0x3e59b3d0 |
| 1964 | .long 0x3d93dd98 // .word 0x3d93dd98 |
| 1965 | .long 0x3d93dd98 // .word 0x3d93dd98 |
| 1966 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1967 | HIDDEN _sk_matrix_2x3_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1968 | .globl _sk_matrix_2x3_vfp4 |
| 1969 | _sk_matrix_2x3_vfp4: |
| 1970 | .long 0xe92d4800 // push {fp, lr} |
| 1971 | .long 0xe591e000 // ldr lr, [r1] |
| 1972 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1973 | .long 0xe2811008 // add r1, r1, #8 |
| 1974 | .long 0xe28e300c // add r3, lr, #12 |
| 1975 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 1976 | .long 0xe28e3008 // add r3, lr, #8 |
| 1977 | .long 0xf4e31c9f // vld1.32 {d17[]}, [r3 :32] |
| 1978 | .long 0xe28e3010 // add r3, lr, #16 |
| 1979 | .long 0xf4e30c9f // vld1.32 {d16[]}, [r3 :32] |
| 1980 | .long 0xe28e3014 // add r3, lr, #20 |
| 1981 | .long 0xf2410c31 // vfma.f32 d16, d1, d17 |
| 1982 | .long 0xf4e31c9f // vld1.32 {d17[]}, [r3 :32] |
| 1983 | .long 0xf2411c32 // vfma.f32 d17, d1, d18 |
| 1984 | .long 0xf4ee2c9d // vld1.32 {d18[]}, [lr :32]! |
| 1985 | .long 0xf4ee3c9f // vld1.32 {d19[]}, [lr :32] |
| 1986 | .long 0xf2400c32 // vfma.f32 d16, d0, d18 |
| 1987 | .long 0xf2401c33 // vfma.f32 d17, d0, d19 |
| 1988 | .long 0xf22001b0 // vorr d0, d16, d16 |
| 1989 | .long 0xf22111b1 // vorr d1, d17, d17 |
| 1990 | .long 0xe8bd4800 // pop {fp, lr} |
| 1991 | .long 0xe12fff1c // bx ip |
| 1992 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 1993 | HIDDEN _sk_matrix_3x4_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 1994 | .globl _sk_matrix_3x4_vfp4 |
| 1995 | _sk_matrix_3x4_vfp4: |
| 1996 | .long 0xe92d4800 // push {fp, lr} |
| 1997 | .long 0xe591e000 // ldr lr, [r1] |
| 1998 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 1999 | .long 0xe2811008 // add r1, r1, #8 |
| 2000 | .long 0xe28e3020 // add r3, lr, #32 |
| 2001 | .long 0xf4e33c9f // vld1.32 {d19[]}, [r3 :32] |
| 2002 | .long 0xe28e302c // add r3, lr, #44 |
| 2003 | .long 0xf4e30c9f // vld1.32 {d16[]}, [r3 :32] |
| 2004 | .long 0xe28e301c // add r3, lr, #28 |
| 2005 | .long 0xf2420c33 // vfma.f32 d16, d2, d19 |
| 2006 | .long 0xf4e34c9f // vld1.32 {d20[]}, [r3 :32] |
| 2007 | .long 0xe28e3018 // add r3, lr, #24 |
| 2008 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 2009 | .long 0xe28e3024 // add r3, lr, #36 |
| 2010 | .long 0xf4e31c9f // vld1.32 {d17[]}, [r3 :32] |
| 2011 | .long 0xe28e3028 // add r3, lr, #40 |
| 2012 | .long 0xf2421c32 // vfma.f32 d17, d2, d18 |
| 2013 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 2014 | .long 0xe28e3010 // add r3, lr, #16 |
| 2015 | .long 0xf2422c34 // vfma.f32 d18, d2, d20 |
| 2016 | .long 0xf4e33c9f // vld1.32 {d19[]}, [r3 :32] |
| 2017 | .long 0xe28e300c // add r3, lr, #12 |
| 2018 | .long 0xf4e34c9f // vld1.32 {d20[]}, [r3 :32] |
| 2019 | .long 0xe28e3014 // add r3, lr, #20 |
| 2020 | .long 0xf2411c34 // vfma.f32 d17, d1, d20 |
| 2021 | .long 0xf4e34c9f // vld1.32 {d20[]}, [r3 :32] |
| 2022 | .long 0xf2410c34 // vfma.f32 d16, d1, d20 |
| 2023 | .long 0xe28e3008 // add r3, lr, #8 |
| 2024 | .long 0xf2412c33 // vfma.f32 d18, d1, d19 |
| 2025 | .long 0xf4ee3c9d // vld1.32 {d19[]}, [lr :32]! |
| 2026 | .long 0xf4ee4c9f // vld1.32 {d20[]}, [lr :32] |
| 2027 | .long 0xf2401c33 // vfma.f32 d17, d0, d19 |
| 2028 | .long 0xf4e33c9f // vld1.32 {d19[]}, [r3 :32] |
| 2029 | .long 0xf2400c33 // vfma.f32 d16, d0, d19 |
| 2030 | .long 0xf2402c34 // vfma.f32 d18, d0, d20 |
| 2031 | .long 0xf22101b1 // vorr d0, d17, d17 |
| 2032 | .long 0xf22021b0 // vorr d2, d16, d16 |
| 2033 | .long 0xf22211b2 // vorr d1, d18, d18 |
| 2034 | .long 0xe8bd4800 // pop {fp, lr} |
| 2035 | .long 0xe12fff1c // bx ip |
| 2036 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2037 | HIDDEN _sk_matrix_4x5_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2038 | .globl _sk_matrix_4x5_vfp4 |
| 2039 | _sk_matrix_4x5_vfp4: |
| 2040 | .long 0xe92d4010 // push {r4, lr} |
| 2041 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 2042 | .long 0xf2620112 // vorr d16, d2, d2 |
| 2043 | .long 0xe2811008 // add r1, r1, #8 |
| 2044 | .long 0xe2834014 // add r4, r3, #20 |
| 2045 | .long 0xe1a0e003 // mov lr, r3 |
| 2046 | .long 0xf4e45c9f // vld1.32 {d21[]}, [r4 :32] |
| 2047 | .long 0xe2834028 // add r4, r3, #40 |
| 2048 | .long 0xf4e46c9f // vld1.32 {d22[]}, [r4 :32] |
| 2049 | .long 0xe2834038 // add r4, r3, #56 |
| 2050 | .long 0xf4e47c9f // vld1.32 {d23[]}, [r4 :32] |
| 2051 | .long 0xe2834048 // add r4, r3, #72 |
| 2052 | .long 0xf4a42c9f // vld1.32 {d2[]}, [r4 :32] |
| 2053 | .long 0xe2834034 // add r4, r3, #52 |
| 2054 | .long 0xf2032c37 // vfma.f32 d2, d3, d23 |
| 2055 | .long 0xf4e48c9f // vld1.32 {d24[]}, [r4 :32] |
| 2056 | .long 0xe2834044 // add r4, r3, #68 |
| 2057 | .long 0xf4e41c9f // vld1.32 {d17[]}, [r4 :32] |
| 2058 | .long 0xe2834030 // add r4, r3, #48 |
| 2059 | .long 0xf2431c38 // vfma.f32 d17, d3, d24 |
| 2060 | .long 0xf4e49c9f // vld1.32 {d25[]}, [r4 :32] |
| 2061 | .long 0xe283403c // add r4, r3, #60 |
| 2062 | .long 0xf4e43c9f // vld1.32 {d19[]}, [r4 :32] |
| 2063 | .long 0xe283404c // add r4, r3, #76 |
| 2064 | .long 0xf2002cb6 // vfma.f32 d2, d16, d22 |
| 2065 | .long 0xf4e42c9f // vld1.32 {d18[]}, [r4 :32] |
| 2066 | .long 0xe2834040 // add r4, r3, #64 |
| 2067 | .long 0xf2432c33 // vfma.f32 d18, d3, d19 |
| 2068 | .long 0xf4e43c9f // vld1.32 {d19[]}, [r4 :32] |
| 2069 | .long 0xe2834020 // add r4, r3, #32 |
| 2070 | .long 0xf2433c39 // vfma.f32 d19, d3, d25 |
| 2071 | .long 0xf4e47c9f // vld1.32 {d23[]}, [r4 :32] |
| 2072 | .long 0xe283402c // add r4, r3, #44 |
| 2073 | .long 0xf4e48c9f // vld1.32 {d24[]}, [r4 :32] |
| 2074 | .long 0xe2834024 // add r4, r3, #36 |
| 2075 | .long 0xf2402cb8 // vfma.f32 d18, d16, d24 |
| 2076 | .long 0xf4e48c9f // vld1.32 {d24[]}, [r4 :32] |
| 2077 | .long 0xf2401cb8 // vfma.f32 d17, d16, d24 |
| 2078 | .long 0xe2834010 // add r4, r3, #16 |
| 2079 | .long 0xf2403cb7 // vfma.f32 d19, d16, d23 |
| 2080 | .long 0xf4ee4c9d // vld1.32 {d20[]}, [lr :32]! |
| 2081 | .long 0xf4e40c9f // vld1.32 {d16[]}, [r4 :32] |
| 2082 | .long 0xe283401c // add r4, r3, #28 |
| 2083 | .long 0xf4e46c9f // vld1.32 {d22[]}, [r4 :32] |
| 2084 | .long 0xe2834018 // add r4, r3, #24 |
| 2085 | .long 0xf2412c36 // vfma.f32 d18, d1, d22 |
| 2086 | .long 0xf2411c35 // vfma.f32 d17, d1, d21 |
| 2087 | .long 0xf4ee5c9f // vld1.32 {d21[]}, [lr :32] |
| 2088 | .long 0xf2413c30 // vfma.f32 d19, d1, d16 |
| 2089 | .long 0xf4e40c9f // vld1.32 {d16[]}, [r4 :32] |
| 2090 | .long 0xe2834008 // add r4, r3, #8 |
| 2091 | .long 0xe283300c // add r3, r3, #12 |
| 2092 | .long 0xf2012c30 // vfma.f32 d2, d1, d16 |
| 2093 | .long 0xf4e40c9f // vld1.32 {d16[]}, [r4 :32] |
| 2094 | .long 0xf2401c35 // vfma.f32 d17, d0, d21 |
| 2095 | .long 0xf2403c34 // vfma.f32 d19, d0, d20 |
| 2096 | .long 0xf4e34c9f // vld1.32 {d20[]}, [r3 :32] |
| 2097 | .long 0xf2402c34 // vfma.f32 d18, d0, d20 |
| 2098 | .long 0xf2002c30 // vfma.f32 d2, d0, d16 |
| 2099 | .long 0xf22111b1 // vorr d1, d17, d17 |
| 2100 | .long 0xf22301b3 // vorr d0, d19, d19 |
| 2101 | .long 0xf22231b2 // vorr d3, d18, d18 |
| 2102 | .long 0xe8bd4010 // pop {r4, lr} |
| 2103 | .long 0xe12fff1c // bx ip |
| 2104 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2105 | HIDDEN _sk_matrix_perspective_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2106 | .globl _sk_matrix_perspective_vfp4 |
| 2107 | _sk_matrix_perspective_vfp4: |
| 2108 | .long 0xe92d4010 // push {r4, lr} |
| 2109 | .long 0xe591e000 // ldr lr, [r1] |
| 2110 | .long 0xe591c004 // ldr ip, [r1, #4] |
| 2111 | .long 0xe2811008 // add r1, r1, #8 |
| 2112 | .long 0xe28e301c // add r3, lr, #28 |
| 2113 | .long 0xe28e4010 // add r4, lr, #16 |
| 2114 | .long 0xf4e30c9f // vld1.32 {d16[]}, [r3 :32] |
| 2115 | .long 0xe28e3020 // add r3, lr, #32 |
| 2116 | .long 0xf4e31c9f // vld1.32 {d17[]}, [r3 :32] |
| 2117 | .long 0xe28e3018 // add r3, lr, #24 |
| 2118 | .long 0xf2411c30 // vfma.f32 d17, d1, d16 |
| 2119 | .long 0xf4e30c9f // vld1.32 {d16[]}, [r3 :32] |
| 2120 | .long 0xe1a0300e // mov r3, lr |
| 2121 | .long 0xf4e42c9f // vld1.32 {d18[]}, [r4 :32] |
| 2122 | .long 0xe28e4008 // add r4, lr, #8 |
| 2123 | .long 0xf4e43c9f // vld1.32 {d19[]}, [r4 :32] |
| 2124 | .long 0xf2401c30 // vfma.f32 d17, d0, d16 |
| 2125 | .long 0xf4e30c9d // vld1.32 {d16[]}, [r3 :32]! |
| 2126 | .long 0xf4e35c9f // vld1.32 {d21[]}, [r3 :32] |
| 2127 | .long 0xe28e3014 // add r3, lr, #20 |
| 2128 | .long 0xf2413c35 // vfma.f32 d19, d1, d21 |
| 2129 | .long 0xf4e35c9f // vld1.32 {d21[]}, [r3 :32] |
| 2130 | .long 0xe28e300c // add r3, lr, #12 |
| 2131 | .long 0xf2415c32 // vfma.f32 d21, d1, d18 |
| 2132 | .long 0xf4e32c9f // vld1.32 {d18[]}, [r3 :32] |
| 2133 | .long 0xf3fb4521 // vrecpe.f32 d20, d17 |
| 2134 | .long 0xf2403c30 // vfma.f32 d19, d0, d16 |
| 2135 | .long 0xf2411fb4 // vrecps.f32 d17, d17, d20 |
| 2136 | .long 0xf2405c32 // vfma.f32 d21, d0, d18 |
| 2137 | .long 0xf3440db1 // vmul.f32 d16, d20, d17 |
| 2138 | .long 0xf3030db0 // vmul.f32 d0, d19, d16 |
| 2139 | .long 0xf3051db0 // vmul.f32 d1, d21, d16 |
| 2140 | .long 0xe8bd4010 // pop {r4, lr} |
| 2141 | .long 0xe12fff1c // bx ip |
| 2142 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2143 | HIDDEN _sk_linear_gradient_2stops_vfp4 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2144 | .globl _sk_linear_gradient_2stops_vfp4 |
| 2145 | _sk_linear_gradient_2stops_vfp4: |
| 2146 | .long 0xe8911008 // ldm r1, {r3, ip} |
| 2147 | .long 0xe2811008 // add r1, r1, #8 |
| 2148 | .long 0xf4632a0d // vld1.8 {d18-d19}, [r3]! |
| 2149 | .long 0xf4634a0f // vld1.8 {d20-d21}, [r3] |
| 2150 | .long 0xf3f40c22 // vdup.32 d16, d18[0] |
| 2151 | .long 0xf3f41c24 // vdup.32 d17, d20[0] |
| 2152 | .long 0xf2400c31 // vfma.f32 d16, d0, d17 |
| 2153 | .long 0xf3fc6c24 // vdup.32 d22, d20[1] |
| 2154 | .long 0xf3bc1c22 // vdup.32 d1, d18[1] |
| 2155 | .long 0xf3b42c23 // vdup.32 d2, d19[0] |
| 2156 | .long 0xf2001c36 // vfma.f32 d1, d0, d22 |
| 2157 | .long 0xf3f41c25 // vdup.32 d17, d21[0] |
| 2158 | .long 0xf3fc4c25 // vdup.32 d20, d21[1] |
| 2159 | .long 0xf2002c31 // vfma.f32 d2, d0, d17 |
| 2160 | .long 0xf3bc3c23 // vdup.32 d3, d19[1] |
| 2161 | .long 0xf2003c34 // vfma.f32 d3, d0, d20 |
| 2162 | .long 0xf22001b0 // vorr d0, d16, d16 |
| 2163 | .long 0xe12fff1c // bx ip |
| 2164 | #elif defined(__x86_64__) |
| 2165 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2166 | HIDDEN _sk_start_pipeline_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2167 | .globl _sk_start_pipeline_hsw |
| 2168 | _sk_start_pipeline_hsw: |
| 2169 | .byte 65,87 // push %r15 |
| 2170 | .byte 65,86 // push %r14 |
| 2171 | .byte 65,85 // push %r13 |
| 2172 | .byte 65,84 // push %r12 |
| 2173 | .byte 83 // push %rbx |
| 2174 | .byte 73,137,205 // mov %rcx,%r13 |
| 2175 | .byte 73,137,214 // mov %rdx,%r14 |
| 2176 | .byte 72,137,251 // mov %rdi,%rbx |
| 2177 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2178 | .byte 73,137,199 // mov %rax,%r15 |
| 2179 | .byte 73,137,244 // mov %rsi,%r12 |
| 2180 | .byte 72,141,67,8 // lea 0x8(%rbx),%rax |
| 2181 | .byte 76,57,232 // cmp %r13,%rax |
| 2182 | .byte 118,5 // jbe 28 <_sk_start_pipeline_hsw+0x28> |
| 2183 | .byte 72,137,223 // mov %rbx,%rdi |
| 2184 | .byte 235,65 // jmp 69 <_sk_start_pipeline_hsw+0x69> |
| 2185 | .byte 185,0,0,0,0 // mov $0x0,%ecx |
| 2186 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 2187 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 2188 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 2189 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 2190 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 2191 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 2192 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 2193 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 2194 | .byte 72,137,223 // mov %rbx,%rdi |
| 2195 | .byte 76,137,230 // mov %r12,%rsi |
| 2196 | .byte 76,137,242 // mov %r14,%rdx |
| 2197 | .byte 65,255,215 // callq *%r15 |
| 2198 | .byte 72,141,123,8 // lea 0x8(%rbx),%rdi |
| 2199 | .byte 72,131,195,16 // add $0x10,%rbx |
| 2200 | .byte 76,57,235 // cmp %r13,%rbx |
| 2201 | .byte 72,137,251 // mov %rdi,%rbx |
| 2202 | .byte 118,191 // jbe 28 <_sk_start_pipeline_hsw+0x28> |
| 2203 | .byte 76,137,233 // mov %r13,%rcx |
| 2204 | .byte 72,41,249 // sub %rdi,%rcx |
| 2205 | .byte 116,41 // je 9a <_sk_start_pipeline_hsw+0x9a> |
| 2206 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 2207 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 2208 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 2209 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 2210 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 2211 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 2212 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 2213 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 2214 | .byte 76,137,230 // mov %r12,%rsi |
| 2215 | .byte 76,137,242 // mov %r14,%rdx |
| 2216 | .byte 65,255,215 // callq *%r15 |
| 2217 | .byte 76,137,232 // mov %r13,%rax |
| 2218 | .byte 91 // pop %rbx |
| 2219 | .byte 65,92 // pop %r12 |
| 2220 | .byte 65,93 // pop %r13 |
| 2221 | .byte 65,94 // pop %r14 |
| 2222 | .byte 65,95 // pop %r15 |
| 2223 | .byte 197,248,119 // vzeroupper |
| 2224 | .byte 195 // retq |
| 2225 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2226 | HIDDEN _sk_just_return_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2227 | .globl _sk_just_return_hsw |
| 2228 | _sk_just_return_hsw: |
| 2229 | .byte 195 // retq |
| 2230 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2231 | HIDDEN _sk_seed_shader_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2232 | .globl _sk_seed_shader_hsw |
| 2233 | _sk_seed_shader_hsw: |
| 2234 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2235 | .byte 197,249,110,199 // vmovd %edi,%xmm0 |
| 2236 | .byte 196,226,125,88,192 // vpbroadcastd %xmm0,%ymm0 |
| 2237 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 2238 | .byte 65,184,0,0,0,63 // mov $0x3f000000,%r8d |
| 2239 | .byte 196,193,121,110,200 // vmovd %r8d,%xmm1 |
| 2240 | .byte 196,226,125,88,201 // vpbroadcastd %xmm1,%ymm1 |
| 2241 | .byte 197,252,88,193 // vaddps %ymm1,%ymm0,%ymm0 |
| 2242 | .byte 197,252,88,2 // vaddps (%rdx),%ymm0,%ymm0 |
| 2243 | .byte 196,226,125,24,16 // vbroadcastss (%rax),%ymm2 |
| 2244 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 2245 | .byte 197,236,88,201 // vaddps %ymm1,%ymm2,%ymm1 |
| 2246 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2247 | .byte 197,249,110,208 // vmovd %eax,%xmm2 |
| 2248 | .byte 196,226,125,88,210 // vpbroadcastd %xmm2,%ymm2 |
| 2249 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2250 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 2251 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 2252 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 2253 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 2254 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 2255 | .byte 255,224 // jmpq *%rax |
| 2256 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2257 | HIDDEN _sk_constant_color_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2258 | .globl _sk_constant_color_hsw |
| 2259 | _sk_constant_color_hsw: |
| 2260 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2261 | .byte 196,226,125,24,0 // vbroadcastss (%rax),%ymm0 |
| 2262 | .byte 196,226,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm1 |
| 2263 | .byte 196,226,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm2 |
| 2264 | .byte 196,226,125,24,88,12 // vbroadcastss 0xc(%rax),%ymm3 |
| 2265 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2266 | .byte 255,224 // jmpq *%rax |
| 2267 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2268 | HIDDEN _sk_clear_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2269 | .globl _sk_clear_hsw |
| 2270 | _sk_clear_hsw: |
| 2271 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2272 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 2273 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 2274 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 2275 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 2276 | .byte 255,224 // jmpq *%rax |
| 2277 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2278 | HIDDEN _sk_plus__hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2279 | .globl _sk_plus__hsw |
| 2280 | _sk_plus__hsw: |
| 2281 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 2282 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 2283 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 2284 | .byte 197,228,88,223 // vaddps %ymm7,%ymm3,%ymm3 |
| 2285 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2286 | .byte 255,224 // jmpq *%rax |
| 2287 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2288 | HIDDEN _sk_srcover_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2289 | .globl _sk_srcover_hsw |
| 2290 | _sk_srcover_hsw: |
| 2291 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2292 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2293 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2294 | .byte 197,60,92,195 // vsubps %ymm3,%ymm8,%ymm8 |
| 2295 | .byte 196,194,93,184,192 // vfmadd231ps %ymm8,%ymm4,%ymm0 |
| 2296 | .byte 196,194,85,184,200 // vfmadd231ps %ymm8,%ymm5,%ymm1 |
| 2297 | .byte 196,194,77,184,208 // vfmadd231ps %ymm8,%ymm6,%ymm2 |
| 2298 | .byte 196,194,69,184,216 // vfmadd231ps %ymm8,%ymm7,%ymm3 |
| 2299 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2300 | .byte 255,224 // jmpq *%rax |
| 2301 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2302 | HIDDEN _sk_dstover_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2303 | .globl _sk_dstover_hsw |
| 2304 | _sk_dstover_hsw: |
| 2305 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2306 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2307 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2308 | .byte 197,60,92,199 // vsubps %ymm7,%ymm8,%ymm8 |
| 2309 | .byte 196,226,61,168,196 // vfmadd213ps %ymm4,%ymm8,%ymm0 |
| 2310 | .byte 196,226,61,168,205 // vfmadd213ps %ymm5,%ymm8,%ymm1 |
| 2311 | .byte 196,226,61,168,214 // vfmadd213ps %ymm6,%ymm8,%ymm2 |
| 2312 | .byte 196,226,61,168,223 // vfmadd213ps %ymm7,%ymm8,%ymm3 |
| 2313 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2314 | .byte 255,224 // jmpq *%rax |
| 2315 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2316 | HIDDEN _sk_clamp_0_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2317 | .globl _sk_clamp_0_hsw |
| 2318 | _sk_clamp_0_hsw: |
| 2319 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 2320 | .byte 196,193,124,95,192 // vmaxps %ymm8,%ymm0,%ymm0 |
| 2321 | .byte 196,193,116,95,200 // vmaxps %ymm8,%ymm1,%ymm1 |
| 2322 | .byte 196,193,108,95,208 // vmaxps %ymm8,%ymm2,%ymm2 |
| 2323 | .byte 196,193,100,95,216 // vmaxps %ymm8,%ymm3,%ymm3 |
| 2324 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2325 | .byte 255,224 // jmpq *%rax |
| 2326 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2327 | HIDDEN _sk_clamp_1_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2328 | .globl _sk_clamp_1_hsw |
| 2329 | _sk_clamp_1_hsw: |
| 2330 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2331 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2332 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2333 | .byte 196,193,124,93,192 // vminps %ymm8,%ymm0,%ymm0 |
| 2334 | .byte 196,193,116,93,200 // vminps %ymm8,%ymm1,%ymm1 |
| 2335 | .byte 196,193,108,93,208 // vminps %ymm8,%ymm2,%ymm2 |
| 2336 | .byte 196,193,100,93,216 // vminps %ymm8,%ymm3,%ymm3 |
| 2337 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2338 | .byte 255,224 // jmpq *%rax |
| 2339 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2340 | HIDDEN _sk_clamp_a_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2341 | .globl _sk_clamp_a_hsw |
| 2342 | _sk_clamp_a_hsw: |
| 2343 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2344 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2345 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2346 | .byte 196,193,100,93,216 // vminps %ymm8,%ymm3,%ymm3 |
| 2347 | .byte 197,252,93,195 // vminps %ymm3,%ymm0,%ymm0 |
| 2348 | .byte 197,244,93,203 // vminps %ymm3,%ymm1,%ymm1 |
| 2349 | .byte 197,236,93,211 // vminps %ymm3,%ymm2,%ymm2 |
| 2350 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2351 | .byte 255,224 // jmpq *%rax |
| 2352 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2353 | HIDDEN _sk_set_rgb_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2354 | .globl _sk_set_rgb_hsw |
| 2355 | _sk_set_rgb_hsw: |
| 2356 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2357 | .byte 196,226,125,24,0 // vbroadcastss (%rax),%ymm0 |
| 2358 | .byte 196,226,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm1 |
| 2359 | .byte 196,226,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm2 |
| 2360 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2361 | .byte 255,224 // jmpq *%rax |
| 2362 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2363 | HIDDEN _sk_swap_rb_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2364 | .globl _sk_swap_rb_hsw |
| 2365 | _sk_swap_rb_hsw: |
| 2366 | .byte 197,124,40,192 // vmovaps %ymm0,%ymm8 |
| 2367 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2368 | .byte 197,252,40,194 // vmovaps %ymm2,%ymm0 |
| 2369 | .byte 197,124,41,194 // vmovaps %ymm8,%ymm2 |
| 2370 | .byte 255,224 // jmpq *%rax |
| 2371 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2372 | HIDDEN _sk_swap_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2373 | .globl _sk_swap_hsw |
| 2374 | _sk_swap_hsw: |
| 2375 | .byte 197,124,40,195 // vmovaps %ymm3,%ymm8 |
| 2376 | .byte 197,124,40,202 // vmovaps %ymm2,%ymm9 |
| 2377 | .byte 197,124,40,209 // vmovaps %ymm1,%ymm10 |
| 2378 | .byte 197,124,40,216 // vmovaps %ymm0,%ymm11 |
| 2379 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2380 | .byte 197,252,40,196 // vmovaps %ymm4,%ymm0 |
| 2381 | .byte 197,252,40,205 // vmovaps %ymm5,%ymm1 |
| 2382 | .byte 197,252,40,214 // vmovaps %ymm6,%ymm2 |
| 2383 | .byte 197,252,40,223 // vmovaps %ymm7,%ymm3 |
| 2384 | .byte 197,124,41,220 // vmovaps %ymm11,%ymm4 |
| 2385 | .byte 197,124,41,213 // vmovaps %ymm10,%ymm5 |
| 2386 | .byte 197,124,41,206 // vmovaps %ymm9,%ymm6 |
| 2387 | .byte 197,124,41,199 // vmovaps %ymm8,%ymm7 |
| 2388 | .byte 255,224 // jmpq *%rax |
| 2389 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2390 | HIDDEN _sk_move_src_dst_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2391 | .globl _sk_move_src_dst_hsw |
| 2392 | _sk_move_src_dst_hsw: |
| 2393 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2394 | .byte 197,252,40,224 // vmovaps %ymm0,%ymm4 |
| 2395 | .byte 197,252,40,233 // vmovaps %ymm1,%ymm5 |
| 2396 | .byte 197,252,40,242 // vmovaps %ymm2,%ymm6 |
| 2397 | .byte 197,252,40,251 // vmovaps %ymm3,%ymm7 |
| 2398 | .byte 255,224 // jmpq *%rax |
| 2399 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2400 | HIDDEN _sk_move_dst_src_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2401 | .globl _sk_move_dst_src_hsw |
| 2402 | _sk_move_dst_src_hsw: |
| 2403 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2404 | .byte 197,252,40,196 // vmovaps %ymm4,%ymm0 |
| 2405 | .byte 197,252,40,205 // vmovaps %ymm5,%ymm1 |
| 2406 | .byte 197,252,40,214 // vmovaps %ymm6,%ymm2 |
| 2407 | .byte 197,252,40,223 // vmovaps %ymm7,%ymm3 |
| 2408 | .byte 255,224 // jmpq *%rax |
| 2409 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2410 | HIDDEN _sk_premul_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2411 | .globl _sk_premul_hsw |
| 2412 | _sk_premul_hsw: |
| 2413 | .byte 197,252,89,195 // vmulps %ymm3,%ymm0,%ymm0 |
| 2414 | .byte 197,244,89,203 // vmulps %ymm3,%ymm1,%ymm1 |
| 2415 | .byte 197,236,89,211 // vmulps %ymm3,%ymm2,%ymm2 |
| 2416 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2417 | .byte 255,224 // jmpq *%rax |
| 2418 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2419 | HIDDEN _sk_unpremul_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2420 | .globl _sk_unpremul_hsw |
| 2421 | _sk_unpremul_hsw: |
| 2422 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 2423 | .byte 196,65,100,194,200,0 // vcmpeqps %ymm8,%ymm3,%ymm9 |
| 2424 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2425 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 2426 | .byte 196,66,125,88,210 // vpbroadcastd %xmm10,%ymm10 |
| 2427 | .byte 197,44,94,211 // vdivps %ymm3,%ymm10,%ymm10 |
| 2428 | .byte 196,67,45,74,192,144 // vblendvps %ymm9,%ymm8,%ymm10,%ymm8 |
| 2429 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 2430 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 2431 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 2432 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2433 | .byte 255,224 // jmpq *%rax |
| 2434 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2435 | HIDDEN _sk_from_srgb_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2436 | .globl _sk_from_srgb_hsw |
| 2437 | _sk_from_srgb_hsw: |
| 2438 | .byte 184,145,131,158,61 // mov $0x3d9e8391,%eax |
| 2439 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2440 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2441 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 2442 | .byte 197,124,89,208 // vmulps %ymm0,%ymm0,%ymm10 |
| 2443 | .byte 184,154,153,153,62 // mov $0x3e99999a,%eax |
| 2444 | .byte 197,121,110,216 // vmovd %eax,%xmm11 |
| 2445 | .byte 196,66,125,88,219 // vpbroadcastd %xmm11,%ymm11 |
| 2446 | .byte 184,92,143,50,63 // mov $0x3f328f5c,%eax |
| 2447 | .byte 197,121,110,224 // vmovd %eax,%xmm12 |
| 2448 | .byte 196,66,125,88,228 // vpbroadcastd %xmm12,%ymm12 |
| 2449 | .byte 196,65,125,111,235 // vmovdqa %ymm11,%ymm13 |
| 2450 | .byte 196,66,125,168,236 // vfmadd213ps %ymm12,%ymm0,%ymm13 |
| 2451 | .byte 184,10,215,35,59 // mov $0x3b23d70a,%eax |
| 2452 | .byte 197,121,110,240 // vmovd %eax,%xmm14 |
| 2453 | .byte 196,66,125,88,246 // vpbroadcastd %xmm14,%ymm14 |
| 2454 | .byte 196,66,45,168,238 // vfmadd213ps %ymm14,%ymm10,%ymm13 |
| 2455 | .byte 184,174,71,97,61 // mov $0x3d6147ae,%eax |
| 2456 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 2457 | .byte 196,66,125,88,210 // vpbroadcastd %xmm10,%ymm10 |
| 2458 | .byte 196,193,124,194,194,1 // vcmpltps %ymm10,%ymm0,%ymm0 |
| 2459 | .byte 196,195,21,74,193,0 // vblendvps %ymm0,%ymm9,%ymm13,%ymm0 |
| 2460 | .byte 197,60,89,201 // vmulps %ymm1,%ymm8,%ymm9 |
| 2461 | .byte 197,116,89,233 // vmulps %ymm1,%ymm1,%ymm13 |
| 2462 | .byte 196,65,125,111,251 // vmovdqa %ymm11,%ymm15 |
| 2463 | .byte 196,66,117,168,252 // vfmadd213ps %ymm12,%ymm1,%ymm15 |
| 2464 | .byte 196,66,21,168,254 // vfmadd213ps %ymm14,%ymm13,%ymm15 |
| 2465 | .byte 196,193,116,194,202,1 // vcmpltps %ymm10,%ymm1,%ymm1 |
| 2466 | .byte 196,195,5,74,201,16 // vblendvps %ymm1,%ymm9,%ymm15,%ymm1 |
| 2467 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 2468 | .byte 197,108,89,202 // vmulps %ymm2,%ymm2,%ymm9 |
| 2469 | .byte 196,66,109,168,220 // vfmadd213ps %ymm12,%ymm2,%ymm11 |
| 2470 | .byte 196,66,53,168,222 // vfmadd213ps %ymm14,%ymm9,%ymm11 |
| 2471 | .byte 196,193,108,194,210,1 // vcmpltps %ymm10,%ymm2,%ymm2 |
| 2472 | .byte 196,195,37,74,208,32 // vblendvps %ymm2,%ymm8,%ymm11,%ymm2 |
| 2473 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2474 | .byte 255,224 // jmpq *%rax |
| 2475 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2476 | HIDDEN _sk_to_srgb_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2477 | .globl _sk_to_srgb_hsw |
| 2478 | _sk_to_srgb_hsw: |
| 2479 | .byte 197,124,82,192 // vrsqrtps %ymm0,%ymm8 |
| 2480 | .byte 196,65,124,83,216 // vrcpps %ymm8,%ymm11 |
| 2481 | .byte 196,65,124,82,224 // vrsqrtps %ymm8,%ymm12 |
| 2482 | .byte 184,41,92,71,65 // mov $0x41475c29,%eax |
| 2483 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2484 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2485 | .byte 197,60,89,232 // vmulps %ymm0,%ymm8,%ymm13 |
| 2486 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2487 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 2488 | .byte 196,66,125,88,201 // vpbroadcastd %xmm9,%ymm9 |
| 2489 | .byte 184,194,135,210,62 // mov $0x3ed287c2,%eax |
| 2490 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 2491 | .byte 196,66,125,88,210 // vpbroadcastd %xmm10,%ymm10 |
| 2492 | .byte 184,206,111,48,63 // mov $0x3f306fce,%eax |
| 2493 | .byte 197,121,110,240 // vmovd %eax,%xmm14 |
| 2494 | .byte 196,66,125,88,246 // vpbroadcastd %xmm14,%ymm14 |
| 2495 | .byte 184,168,87,202,61 // mov $0x3dca57a8,%eax |
| 2496 | .byte 53,0,0,0,128 // xor $0x80000000,%eax |
| 2497 | .byte 197,121,110,248 // vmovd %eax,%xmm15 |
| 2498 | .byte 196,66,125,88,255 // vpbroadcastd %xmm15,%ymm15 |
| 2499 | .byte 196,66,13,168,223 // vfmadd213ps %ymm15,%ymm14,%ymm11 |
| 2500 | .byte 196,66,45,184,220 // vfmadd231ps %ymm12,%ymm10,%ymm11 |
| 2501 | .byte 196,65,52,93,219 // vminps %ymm11,%ymm9,%ymm11 |
| 2502 | .byte 184,4,231,140,59 // mov $0x3b8ce704,%eax |
| 2503 | .byte 197,121,110,224 // vmovd %eax,%xmm12 |
| 2504 | .byte 196,66,125,88,228 // vpbroadcastd %xmm12,%ymm12 |
| 2505 | .byte 196,193,124,194,196,1 // vcmpltps %ymm12,%ymm0,%ymm0 |
| 2506 | .byte 196,195,37,74,197,0 // vblendvps %ymm0,%ymm13,%ymm11,%ymm0 |
| 2507 | .byte 197,124,82,217 // vrsqrtps %ymm1,%ymm11 |
| 2508 | .byte 196,65,124,83,235 // vrcpps %ymm11,%ymm13 |
| 2509 | .byte 196,65,124,82,219 // vrsqrtps %ymm11,%ymm11 |
| 2510 | .byte 196,66,13,168,239 // vfmadd213ps %ymm15,%ymm14,%ymm13 |
| 2511 | .byte 196,66,45,184,235 // vfmadd231ps %ymm11,%ymm10,%ymm13 |
| 2512 | .byte 197,60,89,217 // vmulps %ymm1,%ymm8,%ymm11 |
| 2513 | .byte 196,65,52,93,237 // vminps %ymm13,%ymm9,%ymm13 |
| 2514 | .byte 196,193,116,194,204,1 // vcmpltps %ymm12,%ymm1,%ymm1 |
| 2515 | .byte 196,195,21,74,203,16 // vblendvps %ymm1,%ymm11,%ymm13,%ymm1 |
| 2516 | .byte 197,124,82,218 // vrsqrtps %ymm2,%ymm11 |
| 2517 | .byte 196,65,124,83,235 // vrcpps %ymm11,%ymm13 |
| 2518 | .byte 196,66,13,168,239 // vfmadd213ps %ymm15,%ymm14,%ymm13 |
| 2519 | .byte 196,65,124,82,219 // vrsqrtps %ymm11,%ymm11 |
| 2520 | .byte 196,66,45,184,235 // vfmadd231ps %ymm11,%ymm10,%ymm13 |
| 2521 | .byte 196,65,52,93,205 // vminps %ymm13,%ymm9,%ymm9 |
| 2522 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 2523 | .byte 196,193,108,194,212,1 // vcmpltps %ymm12,%ymm2,%ymm2 |
| 2524 | .byte 196,195,53,74,208,32 // vblendvps %ymm2,%ymm8,%ymm9,%ymm2 |
| 2525 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2526 | .byte 255,224 // jmpq *%rax |
| 2527 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2528 | HIDDEN _sk_scale_1_float_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2529 | .globl _sk_scale_1_float_hsw |
| 2530 | _sk_scale_1_float_hsw: |
| 2531 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2532 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 2533 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 2534 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 2535 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 2536 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 2537 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2538 | .byte 255,224 // jmpq *%rax |
| 2539 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2540 | HIDDEN _sk_scale_u8_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2541 | .globl _sk_scale_u8_hsw |
| 2542 | _sk_scale_u8_hsw: |
| 2543 | .byte 73,137,200 // mov %rcx,%r8 |
| 2544 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2545 | .byte 72,139,0 // mov (%rax),%rax |
| 2546 | .byte 72,1,248 // add %rdi,%rax |
| 2547 | .byte 77,133,192 // test %r8,%r8 |
| 2548 | .byte 117,56 // jne 4bf <_sk_scale_u8_hsw+0x48> |
| 2549 | .byte 197,122,126,0 // vmovq (%rax),%xmm8 |
| 2550 | .byte 196,66,125,49,192 // vpmovzxbd %xmm8,%ymm8 |
| 2551 | .byte 196,65,124,91,192 // vcvtdq2ps %ymm8,%ymm8 |
| 2552 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 2553 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 2554 | .byte 196,66,125,88,201 // vpbroadcastd %xmm9,%ymm9 |
| 2555 | .byte 196,65,60,89,193 // vmulps %ymm9,%ymm8,%ymm8 |
| 2556 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 2557 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 2558 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 2559 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 2560 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2561 | .byte 76,137,193 // mov %r8,%rcx |
| 2562 | .byte 255,224 // jmpq *%rax |
| 2563 | .byte 49,201 // xor %ecx,%ecx |
| 2564 | .byte 77,137,194 // mov %r8,%r10 |
| 2565 | .byte 69,49,201 // xor %r9d,%r9d |
| 2566 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 2567 | .byte 72,255,192 // inc %rax |
| 2568 | .byte 73,211,227 // shl %cl,%r11 |
| 2569 | .byte 77,9,217 // or %r11,%r9 |
| 2570 | .byte 72,131,193,8 // add $0x8,%rcx |
| 2571 | .byte 73,255,202 // dec %r10 |
| 2572 | .byte 117,234 // jne 4c7 <_sk_scale_u8_hsw+0x50> |
| 2573 | .byte 196,65,249,110,193 // vmovq %r9,%xmm8 |
| 2574 | .byte 235,167 // jmp 48b <_sk_scale_u8_hsw+0x14> |
| 2575 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2576 | HIDDEN _sk_lerp_1_float_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2577 | .globl _sk_lerp_1_float_hsw |
| 2578 | _sk_lerp_1_float_hsw: |
| 2579 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2580 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 2581 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 2582 | .byte 196,226,61,168,196 // vfmadd213ps %ymm4,%ymm8,%ymm0 |
| 2583 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 2584 | .byte 196,226,61,168,205 // vfmadd213ps %ymm5,%ymm8,%ymm1 |
| 2585 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 2586 | .byte 196,226,61,168,214 // vfmadd213ps %ymm6,%ymm8,%ymm2 |
| 2587 | .byte 197,228,92,223 // vsubps %ymm7,%ymm3,%ymm3 |
| 2588 | .byte 196,226,61,168,223 // vfmadd213ps %ymm7,%ymm8,%ymm3 |
| 2589 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2590 | .byte 255,224 // jmpq *%rax |
| 2591 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2592 | HIDDEN _sk_lerp_u8_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2593 | .globl _sk_lerp_u8_hsw |
| 2594 | _sk_lerp_u8_hsw: |
| 2595 | .byte 73,137,200 // mov %rcx,%r8 |
| 2596 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2597 | .byte 72,139,0 // mov (%rax),%rax |
| 2598 | .byte 72,1,248 // add %rdi,%rax |
| 2599 | .byte 77,133,192 // test %r8,%r8 |
| 2600 | .byte 117,76 // jne 56f <_sk_lerp_u8_hsw+0x5c> |
| 2601 | .byte 197,122,126,0 // vmovq (%rax),%xmm8 |
| 2602 | .byte 196,66,125,49,192 // vpmovzxbd %xmm8,%ymm8 |
| 2603 | .byte 196,65,124,91,192 // vcvtdq2ps %ymm8,%ymm8 |
| 2604 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 2605 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 2606 | .byte 196,66,125,88,201 // vpbroadcastd %xmm9,%ymm9 |
| 2607 | .byte 196,65,60,89,193 // vmulps %ymm9,%ymm8,%ymm8 |
| 2608 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 2609 | .byte 196,226,61,168,196 // vfmadd213ps %ymm4,%ymm8,%ymm0 |
| 2610 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 2611 | .byte 196,226,61,168,205 // vfmadd213ps %ymm5,%ymm8,%ymm1 |
| 2612 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 2613 | .byte 196,226,61,168,214 // vfmadd213ps %ymm6,%ymm8,%ymm2 |
| 2614 | .byte 197,228,92,223 // vsubps %ymm7,%ymm3,%ymm3 |
| 2615 | .byte 196,226,61,168,223 // vfmadd213ps %ymm7,%ymm8,%ymm3 |
| 2616 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2617 | .byte 76,137,193 // mov %r8,%rcx |
| 2618 | .byte 255,224 // jmpq *%rax |
| 2619 | .byte 49,201 // xor %ecx,%ecx |
| 2620 | .byte 77,137,194 // mov %r8,%r10 |
| 2621 | .byte 69,49,201 // xor %r9d,%r9d |
| 2622 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 2623 | .byte 72,255,192 // inc %rax |
| 2624 | .byte 73,211,227 // shl %cl,%r11 |
| 2625 | .byte 77,9,217 // or %r11,%r9 |
| 2626 | .byte 72,131,193,8 // add $0x8,%rcx |
| 2627 | .byte 73,255,202 // dec %r10 |
| 2628 | .byte 117,234 // jne 577 <_sk_lerp_u8_hsw+0x64> |
| 2629 | .byte 196,65,249,110,193 // vmovq %r9,%xmm8 |
| 2630 | .byte 235,147 // jmp 527 <_sk_lerp_u8_hsw+0x14> |
| 2631 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2632 | HIDDEN _sk_lerp_565_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2633 | .globl _sk_lerp_565_hsw |
| 2634 | _sk_lerp_565_hsw: |
| 2635 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2636 | .byte 76,139,16 // mov (%rax),%r10 |
| 2637 | .byte 72,133,201 // test %rcx,%rcx |
| 2638 | .byte 15,133,179,0,0,0 // jne 655 <_sk_lerp_565_hsw+0xc1> |
| 2639 | .byte 196,193,122,111,28,122 // vmovdqu (%r10,%rdi,2),%xmm3 |
| 2640 | .byte 196,98,125,51,195 // vpmovzxwd %xmm3,%ymm8 |
| 2641 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 2642 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2643 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2644 | .byte 196,193,101,219,216 // vpand %ymm8,%ymm3,%ymm3 |
| 2645 | .byte 197,124,91,203 // vcvtdq2ps %ymm3,%ymm9 |
| 2646 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 2647 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2648 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2649 | .byte 197,52,89,203 // vmulps %ymm3,%ymm9,%ymm9 |
| 2650 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 2651 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2652 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2653 | .byte 196,193,101,219,216 // vpand %ymm8,%ymm3,%ymm3 |
| 2654 | .byte 197,124,91,211 // vcvtdq2ps %ymm3,%ymm10 |
| 2655 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 2656 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2657 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2658 | .byte 197,44,89,211 // vmulps %ymm3,%ymm10,%ymm10 |
| 2659 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 2660 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2661 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2662 | .byte 196,193,101,219,216 // vpand %ymm8,%ymm3,%ymm3 |
| 2663 | .byte 197,124,91,195 // vcvtdq2ps %ymm3,%ymm8 |
| 2664 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 2665 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2666 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2667 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 2668 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 2669 | .byte 196,226,53,168,196 // vfmadd213ps %ymm4,%ymm9,%ymm0 |
| 2670 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 2671 | .byte 196,226,45,168,205 // vfmadd213ps %ymm5,%ymm10,%ymm1 |
| 2672 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 2673 | .byte 196,226,101,168,214 // vfmadd213ps %ymm6,%ymm3,%ymm2 |
| 2674 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2675 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2676 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2677 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2678 | .byte 255,224 // jmpq *%rax |
| 2679 | .byte 65,137,200 // mov %ecx,%r8d |
| 2680 | .byte 65,128,224,7 // and $0x7,%r8b |
| 2681 | .byte 197,225,239,219 // vpxor %xmm3,%xmm3,%xmm3 |
| 2682 | .byte 65,254,200 // dec %r8b |
| 2683 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 2684 | .byte 15,135,59,255,255,255 // ja 5a8 <_sk_lerp_565_hsw+0x14> |
| 2685 | .byte 69,15,182,192 // movzbl %r8b,%r8d |
| 2686 | .byte 76,141,13,76,0,0,0 // lea 0x4c(%rip),%r9 # 6c4 <_sk_lerp_565_hsw+0x130> |
| 2687 | .byte 75,99,4,129 // movslq (%r9,%r8,4),%rax |
| 2688 | .byte 76,1,200 // add %r9,%rax |
| 2689 | .byte 255,224 // jmpq *%rax |
| 2690 | .byte 197,225,239,219 // vpxor %xmm3,%xmm3,%xmm3 |
| 2691 | .byte 196,193,97,196,92,122,12,6 // vpinsrw $0x6,0xc(%r10,%rdi,2),%xmm3,%xmm3 |
| 2692 | .byte 196,193,97,196,92,122,10,5 // vpinsrw $0x5,0xa(%r10,%rdi,2),%xmm3,%xmm3 |
| 2693 | .byte 196,193,97,196,92,122,8,4 // vpinsrw $0x4,0x8(%r10,%rdi,2),%xmm3,%xmm3 |
| 2694 | .byte 196,193,97,196,92,122,6,3 // vpinsrw $0x3,0x6(%r10,%rdi,2),%xmm3,%xmm3 |
| 2695 | .byte 196,193,97,196,92,122,4,2 // vpinsrw $0x2,0x4(%r10,%rdi,2),%xmm3,%xmm3 |
| 2696 | .byte 196,193,97,196,92,122,2,1 // vpinsrw $0x1,0x2(%r10,%rdi,2),%xmm3,%xmm3 |
| 2697 | .byte 196,193,97,196,28,122,0 // vpinsrw $0x0,(%r10,%rdi,2),%xmm3,%xmm3 |
| 2698 | .byte 233,231,254,255,255 // jmpq 5a8 <_sk_lerp_565_hsw+0x14> |
| 2699 | .byte 15,31,0 // nopl (%rax) |
| 2700 | .byte 241 // icebp |
| 2701 | .byte 255 // (bad) |
| 2702 | .byte 255 // (bad) |
| 2703 | .byte 255 // (bad) |
| 2704 | .byte 233,255,255,255,225 // jmpq ffffffffe20006cc <_sk_linear_gradient_2stops_hsw+0xffffffffe1fff4f0> |
| 2705 | .byte 255 // (bad) |
| 2706 | .byte 255 // (bad) |
| 2707 | .byte 255 // (bad) |
| 2708 | .byte 217,255 // fcos |
| 2709 | .byte 255 // (bad) |
| 2710 | .byte 255,209 // callq *%rcx |
| 2711 | .byte 255 // (bad) |
| 2712 | .byte 255 // (bad) |
| 2713 | .byte 255,201 // dec %ecx |
| 2714 | .byte 255 // (bad) |
| 2715 | .byte 255 // (bad) |
| 2716 | .byte 255 // (bad) |
| 2717 | .byte 189 // .byte 0xbd |
| 2718 | .byte 255 // (bad) |
| 2719 | .byte 255 // (bad) |
| 2720 | .byte 255 // .byte 0xff |
| 2721 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2722 | HIDDEN _sk_load_tables_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2723 | .globl _sk_load_tables_hsw |
| 2724 | _sk_load_tables_hsw: |
| 2725 | .byte 73,137,200 // mov %rcx,%r8 |
| 2726 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2727 | .byte 76,141,12,189,0,0,0,0 // lea 0x0(,%rdi,4),%r9 |
| 2728 | .byte 76,3,8 // add (%rax),%r9 |
| 2729 | .byte 77,133,192 // test %r8,%r8 |
| 2730 | .byte 117,121 // jne 76e <_sk_load_tables_hsw+0x8e> |
| 2731 | .byte 196,193,126,111,25 // vmovdqu (%r9),%ymm3 |
| 2732 | .byte 185,255,0,0,0 // mov $0xff,%ecx |
| 2733 | .byte 197,249,110,193 // vmovd %ecx,%xmm0 |
| 2734 | .byte 196,226,125,88,208 // vpbroadcastd %xmm0,%ymm2 |
| 2735 | .byte 197,237,219,203 // vpand %ymm3,%ymm2,%ymm1 |
| 2736 | .byte 196,65,61,118,192 // vpcmpeqd %ymm8,%ymm8,%ymm8 |
| 2737 | .byte 72,139,72,8 // mov 0x8(%rax),%rcx |
| 2738 | .byte 76,139,72,16 // mov 0x10(%rax),%r9 |
| 2739 | .byte 196,65,53,118,201 // vpcmpeqd %ymm9,%ymm9,%ymm9 |
| 2740 | .byte 196,226,53,146,4,137 // vgatherdps %ymm9,(%rcx,%ymm1,4),%ymm0 |
| 2741 | .byte 197,245,114,211,8 // vpsrld $0x8,%ymm3,%ymm1 |
| 2742 | .byte 197,109,219,201 // vpand %ymm1,%ymm2,%ymm9 |
| 2743 | .byte 196,65,45,118,210 // vpcmpeqd %ymm10,%ymm10,%ymm10 |
| 2744 | .byte 196,130,45,146,12,137 // vgatherdps %ymm10,(%r9,%ymm9,4),%ymm1 |
| 2745 | .byte 72,139,64,24 // mov 0x18(%rax),%rax |
| 2746 | .byte 197,181,114,211,16 // vpsrld $0x10,%ymm3,%ymm9 |
| 2747 | .byte 196,65,109,219,201 // vpand %ymm9,%ymm2,%ymm9 |
| 2748 | .byte 196,162,61,146,20,136 // vgatherdps %ymm8,(%rax,%ymm9,4),%ymm2 |
| 2749 | .byte 197,229,114,211,24 // vpsrld $0x18,%ymm3,%ymm3 |
| 2750 | .byte 197,124,91,195 // vcvtdq2ps %ymm3,%ymm8 |
| 2751 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 2752 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2753 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2754 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 2755 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2756 | .byte 76,137,193 // mov %r8,%rcx |
| 2757 | .byte 255,224 // jmpq *%rax |
| 2758 | .byte 185,8,0,0,0 // mov $0x8,%ecx |
| 2759 | .byte 68,41,193 // sub %r8d,%ecx |
| 2760 | .byte 192,225,3 // shl $0x3,%cl |
| 2761 | .byte 73,199,194,255,255,255,255 // mov $0xffffffffffffffff,%r10 |
| 2762 | .byte 73,211,234 // shr %cl,%r10 |
| 2763 | .byte 196,193,249,110,194 // vmovq %r10,%xmm0 |
| 2764 | .byte 196,226,125,33,192 // vpmovsxbd %xmm0,%ymm0 |
| 2765 | .byte 196,194,125,140,25 // vpmaskmovd (%r9),%ymm0,%ymm3 |
| 2766 | .byte 233,99,255,255,255 // jmpq 6fa <_sk_load_tables_hsw+0x1a> |
| 2767 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2768 | HIDDEN _sk_load_a8_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2769 | .globl _sk_load_a8_hsw |
| 2770 | _sk_load_a8_hsw: |
| 2771 | .byte 73,137,200 // mov %rcx,%r8 |
| 2772 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2773 | .byte 72,139,0 // mov (%rax),%rax |
| 2774 | .byte 72,1,248 // add %rdi,%rax |
| 2775 | .byte 77,133,192 // test %r8,%r8 |
| 2776 | .byte 117,50 // jne 7d9 <_sk_load_a8_hsw+0x42> |
| 2777 | .byte 197,250,126,0 // vmovq (%rax),%xmm0 |
| 2778 | .byte 196,226,125,49,192 // vpmovzxbd %xmm0,%ymm0 |
| 2779 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 2780 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 2781 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 2782 | .byte 196,226,125,88,201 // vpbroadcastd %xmm1,%ymm1 |
| 2783 | .byte 197,252,89,217 // vmulps %ymm1,%ymm0,%ymm3 |
| 2784 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2785 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 2786 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 2787 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 2788 | .byte 76,137,193 // mov %r8,%rcx |
| 2789 | .byte 255,224 // jmpq *%rax |
| 2790 | .byte 49,201 // xor %ecx,%ecx |
| 2791 | .byte 77,137,194 // mov %r8,%r10 |
| 2792 | .byte 69,49,201 // xor %r9d,%r9d |
| 2793 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 2794 | .byte 72,255,192 // inc %rax |
| 2795 | .byte 73,211,227 // shl %cl,%r11 |
| 2796 | .byte 77,9,217 // or %r11,%r9 |
| 2797 | .byte 72,131,193,8 // add $0x8,%rcx |
| 2798 | .byte 73,255,202 // dec %r10 |
| 2799 | .byte 117,234 // jne 7e1 <_sk_load_a8_hsw+0x4a> |
| 2800 | .byte 196,193,249,110,193 // vmovq %r9,%xmm0 |
| 2801 | .byte 235,173 // jmp 7ab <_sk_load_a8_hsw+0x14> |
| 2802 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2803 | HIDDEN _sk_store_a8_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2804 | .globl _sk_store_a8_hsw |
| 2805 | _sk_store_a8_hsw: |
| 2806 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2807 | .byte 76,139,8 // mov (%rax),%r9 |
| 2808 | .byte 184,0,0,127,67 // mov $0x437f0000,%eax |
| 2809 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2810 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2811 | .byte 197,60,89,195 // vmulps %ymm3,%ymm8,%ymm8 |
| 2812 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 2813 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 2814 | .byte 196,66,57,43,193 // vpackusdw %xmm9,%xmm8,%xmm8 |
| 2815 | .byte 196,65,57,103,192 // vpackuswb %xmm8,%xmm8,%xmm8 |
| 2816 | .byte 72,133,201 // test %rcx,%rcx |
| 2817 | .byte 117,10 // jne 839 <_sk_store_a8_hsw+0x3b> |
| 2818 | .byte 196,65,123,17,4,57 // vmovsd %xmm8,(%r9,%rdi,1) |
| 2819 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2820 | .byte 255,224 // jmpq *%rax |
| 2821 | .byte 65,137,200 // mov %ecx,%r8d |
| 2822 | .byte 65,128,224,7 // and $0x7,%r8b |
| 2823 | .byte 65,254,200 // dec %r8b |
| 2824 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 2825 | .byte 119,236 // ja 835 <_sk_store_a8_hsw+0x37> |
| 2826 | .byte 196,66,121,48,192 // vpmovzxbw %xmm8,%xmm8 |
| 2827 | .byte 65,15,182,192 // movzbl %r8b,%eax |
| 2828 | .byte 76,141,5,67,0,0,0 // lea 0x43(%rip),%r8 # 89c <_sk_store_a8_hsw+0x9e> |
| 2829 | .byte 73,99,4,128 // movslq (%r8,%rax,4),%rax |
| 2830 | .byte 76,1,192 // add %r8,%rax |
| 2831 | .byte 255,224 // jmpq *%rax |
| 2832 | .byte 196,67,121,20,68,57,6,12 // vpextrb $0xc,%xmm8,0x6(%r9,%rdi,1) |
| 2833 | .byte 196,67,121,20,68,57,5,10 // vpextrb $0xa,%xmm8,0x5(%r9,%rdi,1) |
| 2834 | .byte 196,67,121,20,68,57,4,8 // vpextrb $0x8,%xmm8,0x4(%r9,%rdi,1) |
| 2835 | .byte 196,67,121,20,68,57,3,6 // vpextrb $0x6,%xmm8,0x3(%r9,%rdi,1) |
| 2836 | .byte 196,67,121,20,68,57,2,4 // vpextrb $0x4,%xmm8,0x2(%r9,%rdi,1) |
| 2837 | .byte 196,67,121,20,68,57,1,2 // vpextrb $0x2,%xmm8,0x1(%r9,%rdi,1) |
| 2838 | .byte 196,67,121,20,4,57,0 // vpextrb $0x0,%xmm8,(%r9,%rdi,1) |
| 2839 | .byte 235,154 // jmp 835 <_sk_store_a8_hsw+0x37> |
| 2840 | .byte 144 // nop |
| 2841 | .byte 246,255 // idiv %bh |
| 2842 | .byte 255 // (bad) |
| 2843 | .byte 255 // (bad) |
| 2844 | .byte 238 // out %al,(%dx) |
| 2845 | .byte 255 // (bad) |
| 2846 | .byte 255 // (bad) |
| 2847 | .byte 255,230 // jmpq *%rsi |
| 2848 | .byte 255 // (bad) |
| 2849 | .byte 255 // (bad) |
| 2850 | .byte 255 // (bad) |
| 2851 | .byte 222,255 // fdivrp %st,%st(7) |
| 2852 | .byte 255 // (bad) |
| 2853 | .byte 255,214 // callq *%rsi |
| 2854 | .byte 255 // (bad) |
| 2855 | .byte 255 // (bad) |
| 2856 | .byte 255,206 // dec %esi |
| 2857 | .byte 255 // (bad) |
| 2858 | .byte 255 // (bad) |
| 2859 | .byte 255,198 // inc %esi |
| 2860 | .byte 255 // (bad) |
| 2861 | .byte 255 // (bad) |
| 2862 | .byte 255 // .byte 0xff |
| 2863 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2864 | HIDDEN _sk_load_565_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2865 | .globl _sk_load_565_hsw |
| 2866 | _sk_load_565_hsw: |
| 2867 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2868 | .byte 76,139,16 // mov (%rax),%r10 |
| 2869 | .byte 72,133,201 // test %rcx,%rcx |
| 2870 | .byte 15,133,149,0,0,0 // jne 95b <_sk_load_565_hsw+0xa3> |
| 2871 | .byte 196,193,122,111,4,122 // vmovdqu (%r10,%rdi,2),%xmm0 |
| 2872 | .byte 196,226,125,51,208 // vpmovzxwd %xmm0,%ymm2 |
| 2873 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 2874 | .byte 197,249,110,192 // vmovd %eax,%xmm0 |
| 2875 | .byte 196,226,125,88,192 // vpbroadcastd %xmm0,%ymm0 |
| 2876 | .byte 197,253,219,194 // vpand %ymm2,%ymm0,%ymm0 |
| 2877 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 2878 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 2879 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 2880 | .byte 196,226,125,88,201 // vpbroadcastd %xmm1,%ymm1 |
| 2881 | .byte 197,252,89,193 // vmulps %ymm1,%ymm0,%ymm0 |
| 2882 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 2883 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 2884 | .byte 196,226,125,88,201 // vpbroadcastd %xmm1,%ymm1 |
| 2885 | .byte 197,245,219,202 // vpand %ymm2,%ymm1,%ymm1 |
| 2886 | .byte 197,252,91,201 // vcvtdq2ps %ymm1,%ymm1 |
| 2887 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 2888 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2889 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2890 | .byte 197,244,89,203 // vmulps %ymm3,%ymm1,%ymm1 |
| 2891 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 2892 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2893 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2894 | .byte 197,229,219,210 // vpand %ymm2,%ymm3,%ymm2 |
| 2895 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 2896 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 2897 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2898 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2899 | .byte 197,236,89,211 // vmulps %ymm3,%ymm2,%ymm2 |
| 2900 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 2901 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 2902 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 2903 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2904 | .byte 255,224 // jmpq *%rax |
| 2905 | .byte 65,137,200 // mov %ecx,%r8d |
| 2906 | .byte 65,128,224,7 // and $0x7,%r8b |
| 2907 | .byte 197,249,239,192 // vpxor %xmm0,%xmm0,%xmm0 |
| 2908 | .byte 65,254,200 // dec %r8b |
| 2909 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 2910 | .byte 15,135,89,255,255,255 // ja 8cc <_sk_load_565_hsw+0x14> |
| 2911 | .byte 69,15,182,192 // movzbl %r8b,%r8d |
| 2912 | .byte 76,141,13,74,0,0,0 // lea 0x4a(%rip),%r9 # 9c8 <_sk_load_565_hsw+0x110> |
| 2913 | .byte 75,99,4,129 // movslq (%r9,%r8,4),%rax |
| 2914 | .byte 76,1,200 // add %r9,%rax |
| 2915 | .byte 255,224 // jmpq *%rax |
| 2916 | .byte 197,249,239,192 // vpxor %xmm0,%xmm0,%xmm0 |
| 2917 | .byte 196,193,121,196,68,122,12,6 // vpinsrw $0x6,0xc(%r10,%rdi,2),%xmm0,%xmm0 |
| 2918 | .byte 196,193,121,196,68,122,10,5 // vpinsrw $0x5,0xa(%r10,%rdi,2),%xmm0,%xmm0 |
| 2919 | .byte 196,193,121,196,68,122,8,4 // vpinsrw $0x4,0x8(%r10,%rdi,2),%xmm0,%xmm0 |
| 2920 | .byte 196,193,121,196,68,122,6,3 // vpinsrw $0x3,0x6(%r10,%rdi,2),%xmm0,%xmm0 |
| 2921 | .byte 196,193,121,196,68,122,4,2 // vpinsrw $0x2,0x4(%r10,%rdi,2),%xmm0,%xmm0 |
| 2922 | .byte 196,193,121,196,68,122,2,1 // vpinsrw $0x1,0x2(%r10,%rdi,2),%xmm0,%xmm0 |
| 2923 | .byte 196,193,121,196,4,122,0 // vpinsrw $0x0,(%r10,%rdi,2),%xmm0,%xmm0 |
| 2924 | .byte 233,5,255,255,255 // jmpq 8cc <_sk_load_565_hsw+0x14> |
| 2925 | .byte 144 // nop |
| 2926 | .byte 243,255 // repz (bad) |
| 2927 | .byte 255 // (bad) |
| 2928 | .byte 255 // (bad) |
| 2929 | .byte 235,255 // jmp 9cd <_sk_load_565_hsw+0x115> |
| 2930 | .byte 255 // (bad) |
| 2931 | .byte 255,227 // jmpq *%rbx |
| 2932 | .byte 255 // (bad) |
| 2933 | .byte 255 // (bad) |
| 2934 | .byte 255 // (bad) |
| 2935 | .byte 219,255 // (bad) |
| 2936 | .byte 255 // (bad) |
| 2937 | .byte 255,211 // callq *%rbx |
| 2938 | .byte 255 // (bad) |
| 2939 | .byte 255 // (bad) |
| 2940 | .byte 255,203 // dec %ebx |
| 2941 | .byte 255 // (bad) |
| 2942 | .byte 255 // (bad) |
| 2943 | .byte 255 // (bad) |
| 2944 | .byte 191 // .byte 0xbf |
| 2945 | .byte 255 // (bad) |
| 2946 | .byte 255 // (bad) |
| 2947 | .byte 255 // .byte 0xff |
| 2948 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 2949 | HIDDEN _sk_store_565_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 2950 | .globl _sk_store_565_hsw |
| 2951 | _sk_store_565_hsw: |
| 2952 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2953 | .byte 76,139,8 // mov (%rax),%r9 |
| 2954 | .byte 184,0,0,248,65 // mov $0x41f80000,%eax |
| 2955 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 2956 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 2957 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 2958 | .byte 196,65,125,91,201 // vcvtps2dq %ymm9,%ymm9 |
| 2959 | .byte 196,193,53,114,241,11 // vpslld $0xb,%ymm9,%ymm9 |
| 2960 | .byte 184,0,0,124,66 // mov $0x427c0000,%eax |
| 2961 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 2962 | .byte 196,66,125,88,210 // vpbroadcastd %xmm10,%ymm10 |
| 2963 | .byte 197,44,89,209 // vmulps %ymm1,%ymm10,%ymm10 |
| 2964 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 2965 | .byte 196,193,45,114,242,5 // vpslld $0x5,%ymm10,%ymm10 |
| 2966 | .byte 196,65,45,235,201 // vpor %ymm9,%ymm10,%ymm9 |
| 2967 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 2968 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 2969 | .byte 196,65,53,235,192 // vpor %ymm8,%ymm9,%ymm8 |
| 2970 | .byte 196,67,125,57,193,1 // vextracti128 $0x1,%ymm8,%xmm9 |
| 2971 | .byte 196,66,57,43,193 // vpackusdw %xmm9,%xmm8,%xmm8 |
| 2972 | .byte 72,133,201 // test %rcx,%rcx |
| 2973 | .byte 117,10 // jne a50 <_sk_store_565_hsw+0x6c> |
| 2974 | .byte 196,65,122,127,4,121 // vmovdqu %xmm8,(%r9,%rdi,2) |
| 2975 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 2976 | .byte 255,224 // jmpq *%rax |
| 2977 | .byte 65,137,200 // mov %ecx,%r8d |
| 2978 | .byte 65,128,224,7 // and $0x7,%r8b |
| 2979 | .byte 65,254,200 // dec %r8b |
| 2980 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 2981 | .byte 119,236 // ja a4c <_sk_store_565_hsw+0x68> |
| 2982 | .byte 65,15,182,192 // movzbl %r8b,%eax |
| 2983 | .byte 76,141,5,69,0,0,0 // lea 0x45(%rip),%r8 # ab0 <_sk_store_565_hsw+0xcc> |
| 2984 | .byte 73,99,4,128 // movslq (%r8,%rax,4),%rax |
| 2985 | .byte 76,1,192 // add %r8,%rax |
| 2986 | .byte 255,224 // jmpq *%rax |
| 2987 | .byte 196,67,121,21,68,121,12,6 // vpextrw $0x6,%xmm8,0xc(%r9,%rdi,2) |
| 2988 | .byte 196,67,121,21,68,121,10,5 // vpextrw $0x5,%xmm8,0xa(%r9,%rdi,2) |
| 2989 | .byte 196,67,121,21,68,121,8,4 // vpextrw $0x4,%xmm8,0x8(%r9,%rdi,2) |
| 2990 | .byte 196,67,121,21,68,121,6,3 // vpextrw $0x3,%xmm8,0x6(%r9,%rdi,2) |
| 2991 | .byte 196,67,121,21,68,121,4,2 // vpextrw $0x2,%xmm8,0x4(%r9,%rdi,2) |
| 2992 | .byte 196,67,121,21,68,121,2,1 // vpextrw $0x1,%xmm8,0x2(%r9,%rdi,2) |
| 2993 | .byte 196,67,121,21,4,121,0 // vpextrw $0x0,%xmm8,(%r9,%rdi,2) |
| 2994 | .byte 235,159 // jmp a4c <_sk_store_565_hsw+0x68> |
| 2995 | .byte 15,31,0 // nopl (%rax) |
| 2996 | .byte 244 // hlt |
| 2997 | .byte 255 // (bad) |
| 2998 | .byte 255 // (bad) |
| 2999 | .byte 255 // (bad) |
| 3000 | .byte 236 // in (%dx),%al |
| 3001 | .byte 255 // (bad) |
| 3002 | .byte 255 // (bad) |
| 3003 | .byte 255,228 // jmpq *%rsp |
| 3004 | .byte 255 // (bad) |
| 3005 | .byte 255 // (bad) |
| 3006 | .byte 255 // (bad) |
| 3007 | .byte 220,255 // fdivr %st,%st(7) |
| 3008 | .byte 255 // (bad) |
| 3009 | .byte 255,212 // callq *%rsp |
| 3010 | .byte 255 // (bad) |
| 3011 | .byte 255 // (bad) |
| 3012 | .byte 255,204 // dec %esp |
| 3013 | .byte 255 // (bad) |
| 3014 | .byte 255 // (bad) |
| 3015 | .byte 255,196 // inc %esp |
| 3016 | .byte 255 // (bad) |
| 3017 | .byte 255 // (bad) |
| 3018 | .byte 255 // .byte 0xff |
| 3019 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3020 | HIDDEN _sk_load_8888_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3021 | .globl _sk_load_8888_hsw |
| 3022 | _sk_load_8888_hsw: |
| 3023 | .byte 73,137,200 // mov %rcx,%r8 |
| 3024 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3025 | .byte 76,141,12,189,0,0,0,0 // lea 0x0(,%rdi,4),%r9 |
| 3026 | .byte 76,3,8 // add (%rax),%r9 |
| 3027 | .byte 77,133,192 // test %r8,%r8 |
| 3028 | .byte 117,104 // jne b49 <_sk_load_8888_hsw+0x7d> |
| 3029 | .byte 196,193,126,111,25 // vmovdqu (%r9),%ymm3 |
| 3030 | .byte 184,255,0,0,0 // mov $0xff,%eax |
| 3031 | .byte 197,249,110,192 // vmovd %eax,%xmm0 |
| 3032 | .byte 196,226,125,88,208 // vpbroadcastd %xmm0,%ymm2 |
| 3033 | .byte 197,237,219,195 // vpand %ymm3,%ymm2,%ymm0 |
| 3034 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 3035 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 3036 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 3037 | .byte 196,98,125,88,193 // vpbroadcastd %xmm1,%ymm8 |
| 3038 | .byte 196,193,124,89,192 // vmulps %ymm8,%ymm0,%ymm0 |
| 3039 | .byte 197,245,114,211,8 // vpsrld $0x8,%ymm3,%ymm1 |
| 3040 | .byte 197,237,219,201 // vpand %ymm1,%ymm2,%ymm1 |
| 3041 | .byte 197,252,91,201 // vcvtdq2ps %ymm1,%ymm1 |
| 3042 | .byte 196,193,116,89,200 // vmulps %ymm8,%ymm1,%ymm1 |
| 3043 | .byte 197,181,114,211,16 // vpsrld $0x10,%ymm3,%ymm9 |
| 3044 | .byte 196,193,109,219,209 // vpand %ymm9,%ymm2,%ymm2 |
| 3045 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 3046 | .byte 196,193,108,89,208 // vmulps %ymm8,%ymm2,%ymm2 |
| 3047 | .byte 197,229,114,211,24 // vpsrld $0x18,%ymm3,%ymm3 |
| 3048 | .byte 197,252,91,219 // vcvtdq2ps %ymm3,%ymm3 |
| 3049 | .byte 196,193,100,89,216 // vmulps %ymm8,%ymm3,%ymm3 |
| 3050 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3051 | .byte 76,137,193 // mov %r8,%rcx |
| 3052 | .byte 255,224 // jmpq *%rax |
| 3053 | .byte 185,8,0,0,0 // mov $0x8,%ecx |
| 3054 | .byte 68,41,193 // sub %r8d,%ecx |
| 3055 | .byte 192,225,3 // shl $0x3,%cl |
| 3056 | .byte 72,199,192,255,255,255,255 // mov $0xffffffffffffffff,%rax |
| 3057 | .byte 72,211,232 // shr %cl,%rax |
| 3058 | .byte 196,225,249,110,192 // vmovq %rax,%xmm0 |
| 3059 | .byte 196,226,125,33,192 // vpmovsxbd %xmm0,%ymm0 |
| 3060 | .byte 196,194,125,140,25 // vpmaskmovd (%r9),%ymm0,%ymm3 |
| 3061 | .byte 233,116,255,255,255 // jmpq ae6 <_sk_load_8888_hsw+0x1a> |
| 3062 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3063 | HIDDEN _sk_store_8888_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3064 | .globl _sk_store_8888_hsw |
| 3065 | _sk_store_8888_hsw: |
| 3066 | .byte 73,137,200 // mov %rcx,%r8 |
| 3067 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3068 | .byte 76,141,12,189,0,0,0,0 // lea 0x0(,%rdi,4),%r9 |
| 3069 | .byte 76,3,8 // add (%rax),%r9 |
| 3070 | .byte 184,0,0,127,67 // mov $0x437f0000,%eax |
| 3071 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3072 | .byte 196,66,125,88,192 // vpbroadcastd %xmm8,%ymm8 |
| 3073 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 3074 | .byte 196,65,125,91,201 // vcvtps2dq %ymm9,%ymm9 |
| 3075 | .byte 197,60,89,209 // vmulps %ymm1,%ymm8,%ymm10 |
| 3076 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 3077 | .byte 196,193,45,114,242,8 // vpslld $0x8,%ymm10,%ymm10 |
| 3078 | .byte 196,65,45,235,201 // vpor %ymm9,%ymm10,%ymm9 |
| 3079 | .byte 197,60,89,210 // vmulps %ymm2,%ymm8,%ymm10 |
| 3080 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 3081 | .byte 196,193,45,114,242,16 // vpslld $0x10,%ymm10,%ymm10 |
| 3082 | .byte 197,60,89,195 // vmulps %ymm3,%ymm8,%ymm8 |
| 3083 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 3084 | .byte 196,193,61,114,240,24 // vpslld $0x18,%ymm8,%ymm8 |
| 3085 | .byte 196,65,45,235,192 // vpor %ymm8,%ymm10,%ymm8 |
| 3086 | .byte 196,65,53,235,192 // vpor %ymm8,%ymm9,%ymm8 |
| 3087 | .byte 77,133,192 // test %r8,%r8 |
| 3088 | .byte 117,12 // jne be6 <_sk_store_8888_hsw+0x74> |
| 3089 | .byte 196,65,126,127,1 // vmovdqu %ymm8,(%r9) |
| 3090 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3091 | .byte 76,137,193 // mov %r8,%rcx |
| 3092 | .byte 255,224 // jmpq *%rax |
| 3093 | .byte 185,8,0,0,0 // mov $0x8,%ecx |
| 3094 | .byte 68,41,193 // sub %r8d,%ecx |
| 3095 | .byte 192,225,3 // shl $0x3,%cl |
| 3096 | .byte 72,199,192,255,255,255,255 // mov $0xffffffffffffffff,%rax |
| 3097 | .byte 72,211,232 // shr %cl,%rax |
| 3098 | .byte 196,97,249,110,200 // vmovq %rax,%xmm9 |
| 3099 | .byte 196,66,125,33,201 // vpmovsxbd %xmm9,%ymm9 |
| 3100 | .byte 196,66,53,142,1 // vpmaskmovd %ymm8,%ymm9,(%r9) |
| 3101 | .byte 235,211 // jmp bdf <_sk_store_8888_hsw+0x6d> |
| 3102 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3103 | HIDDEN _sk_load_f16_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3104 | .globl _sk_load_f16_hsw |
| 3105 | _sk_load_f16_hsw: |
| 3106 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3107 | .byte 72,139,0 // mov (%rax),%rax |
| 3108 | .byte 72,133,201 // test %rcx,%rcx |
| 3109 | .byte 117,97 // jne c77 <_sk_load_f16_hsw+0x6b> |
| 3110 | .byte 197,121,16,4,248 // vmovupd (%rax,%rdi,8),%xmm8 |
| 3111 | .byte 197,249,16,84,248,16 // vmovupd 0x10(%rax,%rdi,8),%xmm2 |
| 3112 | .byte 197,249,16,92,248,32 // vmovupd 0x20(%rax,%rdi,8),%xmm3 |
| 3113 | .byte 197,122,111,76,248,48 // vmovdqu 0x30(%rax,%rdi,8),%xmm9 |
| 3114 | .byte 197,185,97,194 // vpunpcklwd %xmm2,%xmm8,%xmm0 |
| 3115 | .byte 197,185,105,210 // vpunpckhwd %xmm2,%xmm8,%xmm2 |
| 3116 | .byte 196,193,97,97,201 // vpunpcklwd %xmm9,%xmm3,%xmm1 |
| 3117 | .byte 196,193,97,105,217 // vpunpckhwd %xmm9,%xmm3,%xmm3 |
| 3118 | .byte 197,121,97,194 // vpunpcklwd %xmm2,%xmm0,%xmm8 |
| 3119 | .byte 197,121,105,202 // vpunpckhwd %xmm2,%xmm0,%xmm9 |
| 3120 | .byte 197,241,97,211 // vpunpcklwd %xmm3,%xmm1,%xmm2 |
| 3121 | .byte 197,241,105,219 // vpunpckhwd %xmm3,%xmm1,%xmm3 |
| 3122 | .byte 197,185,108,194 // vpunpcklqdq %xmm2,%xmm8,%xmm0 |
| 3123 | .byte 196,226,125,19,192 // vcvtph2ps %xmm0,%ymm0 |
| 3124 | .byte 197,185,109,202 // vpunpckhqdq %xmm2,%xmm8,%xmm1 |
| 3125 | .byte 196,226,125,19,201 // vcvtph2ps %xmm1,%ymm1 |
| 3126 | .byte 197,177,108,211 // vpunpcklqdq %xmm3,%xmm9,%xmm2 |
| 3127 | .byte 196,226,125,19,210 // vcvtph2ps %xmm2,%ymm2 |
| 3128 | .byte 197,177,109,219 // vpunpckhqdq %xmm3,%xmm9,%xmm3 |
| 3129 | .byte 196,226,125,19,219 // vcvtph2ps %xmm3,%ymm3 |
| 3130 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3131 | .byte 255,224 // jmpq *%rax |
| 3132 | .byte 197,123,16,4,248 // vmovsd (%rax,%rdi,8),%xmm8 |
| 3133 | .byte 196,65,49,239,201 // vpxor %xmm9,%xmm9,%xmm9 |
| 3134 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 3135 | .byte 116,79 // je cd6 <_sk_load_f16_hsw+0xca> |
| 3136 | .byte 197,57,22,68,248,8 // vmovhpd 0x8(%rax,%rdi,8),%xmm8,%xmm8 |
| 3137 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 3138 | .byte 114,67 // jb cd6 <_sk_load_f16_hsw+0xca> |
| 3139 | .byte 197,251,16,84,248,16 // vmovsd 0x10(%rax,%rdi,8),%xmm2 |
| 3140 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 3141 | .byte 116,68 // je ce3 <_sk_load_f16_hsw+0xd7> |
| 3142 | .byte 197,233,22,84,248,24 // vmovhpd 0x18(%rax,%rdi,8),%xmm2,%xmm2 |
| 3143 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 3144 | .byte 114,56 // jb ce3 <_sk_load_f16_hsw+0xd7> |
| 3145 | .byte 197,251,16,92,248,32 // vmovsd 0x20(%rax,%rdi,8),%xmm3 |
| 3146 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 3147 | .byte 15,132,114,255,255,255 // je c2d <_sk_load_f16_hsw+0x21> |
| 3148 | .byte 197,225,22,92,248,40 // vmovhpd 0x28(%rax,%rdi,8),%xmm3,%xmm3 |
| 3149 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 3150 | .byte 15,130,98,255,255,255 // jb c2d <_sk_load_f16_hsw+0x21> |
| 3151 | .byte 197,122,126,76,248,48 // vmovq 0x30(%rax,%rdi,8),%xmm9 |
| 3152 | .byte 233,87,255,255,255 // jmpq c2d <_sk_load_f16_hsw+0x21> |
| 3153 | .byte 197,225,87,219 // vxorpd %xmm3,%xmm3,%xmm3 |
| 3154 | .byte 197,233,87,210 // vxorpd %xmm2,%xmm2,%xmm2 |
| 3155 | .byte 233,74,255,255,255 // jmpq c2d <_sk_load_f16_hsw+0x21> |
| 3156 | .byte 197,225,87,219 // vxorpd %xmm3,%xmm3,%xmm3 |
| 3157 | .byte 233,65,255,255,255 // jmpq c2d <_sk_load_f16_hsw+0x21> |
| 3158 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3159 | HIDDEN _sk_store_f16_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3160 | .globl _sk_store_f16_hsw |
| 3161 | _sk_store_f16_hsw: |
| 3162 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3163 | .byte 72,139,0 // mov (%rax),%rax |
| 3164 | .byte 196,195,125,29,192,4 // vcvtps2ph $0x4,%ymm0,%xmm8 |
| 3165 | .byte 196,195,125,29,201,4 // vcvtps2ph $0x4,%ymm1,%xmm9 |
| 3166 | .byte 196,195,125,29,210,4 // vcvtps2ph $0x4,%ymm2,%xmm10 |
| 3167 | .byte 196,195,125,29,219,4 // vcvtps2ph $0x4,%ymm3,%xmm11 |
| 3168 | .byte 196,65,57,97,225 // vpunpcklwd %xmm9,%xmm8,%xmm12 |
| 3169 | .byte 196,65,57,105,193 // vpunpckhwd %xmm9,%xmm8,%xmm8 |
| 3170 | .byte 196,65,41,97,203 // vpunpcklwd %xmm11,%xmm10,%xmm9 |
| 3171 | .byte 196,65,41,105,235 // vpunpckhwd %xmm11,%xmm10,%xmm13 |
| 3172 | .byte 196,65,25,98,217 // vpunpckldq %xmm9,%xmm12,%xmm11 |
| 3173 | .byte 196,65,25,106,209 // vpunpckhdq %xmm9,%xmm12,%xmm10 |
| 3174 | .byte 196,65,57,98,205 // vpunpckldq %xmm13,%xmm8,%xmm9 |
| 3175 | .byte 196,65,57,106,197 // vpunpckhdq %xmm13,%xmm8,%xmm8 |
| 3176 | .byte 72,133,201 // test %rcx,%rcx |
| 3177 | .byte 117,27 // jne d51 <_sk_store_f16_hsw+0x65> |
| 3178 | .byte 197,120,17,28,248 // vmovups %xmm11,(%rax,%rdi,8) |
| 3179 | .byte 197,120,17,84,248,16 // vmovups %xmm10,0x10(%rax,%rdi,8) |
| 3180 | .byte 197,120,17,76,248,32 // vmovups %xmm9,0x20(%rax,%rdi,8) |
| 3181 | .byte 197,122,127,68,248,48 // vmovdqu %xmm8,0x30(%rax,%rdi,8) |
| 3182 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3183 | .byte 255,224 // jmpq *%rax |
| 3184 | .byte 197,121,214,28,248 // vmovq %xmm11,(%rax,%rdi,8) |
| 3185 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 3186 | .byte 116,241 // je d4d <_sk_store_f16_hsw+0x61> |
| 3187 | .byte 197,121,23,92,248,8 // vmovhpd %xmm11,0x8(%rax,%rdi,8) |
| 3188 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 3189 | .byte 114,229 // jb d4d <_sk_store_f16_hsw+0x61> |
| 3190 | .byte 197,121,214,84,248,16 // vmovq %xmm10,0x10(%rax,%rdi,8) |
| 3191 | .byte 116,221 // je d4d <_sk_store_f16_hsw+0x61> |
| 3192 | .byte 197,121,23,84,248,24 // vmovhpd %xmm10,0x18(%rax,%rdi,8) |
| 3193 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 3194 | .byte 114,209 // jb d4d <_sk_store_f16_hsw+0x61> |
| 3195 | .byte 197,121,214,76,248,32 // vmovq %xmm9,0x20(%rax,%rdi,8) |
| 3196 | .byte 116,201 // je d4d <_sk_store_f16_hsw+0x61> |
| 3197 | .byte 197,121,23,76,248,40 // vmovhpd %xmm9,0x28(%rax,%rdi,8) |
| 3198 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 3199 | .byte 114,189 // jb d4d <_sk_store_f16_hsw+0x61> |
| 3200 | .byte 197,121,214,68,248,48 // vmovq %xmm8,0x30(%rax,%rdi,8) |
| 3201 | .byte 235,181 // jmp d4d <_sk_store_f16_hsw+0x61> |
| 3202 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3203 | HIDDEN _sk_store_f32_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3204 | .globl _sk_store_f32_hsw |
| 3205 | _sk_store_f32_hsw: |
| 3206 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3207 | .byte 76,139,0 // mov (%rax),%r8 |
| 3208 | .byte 72,141,4,189,0,0,0,0 // lea 0x0(,%rdi,4),%rax |
| 3209 | .byte 197,124,20,193 // vunpcklps %ymm1,%ymm0,%ymm8 |
| 3210 | .byte 197,124,21,217 // vunpckhps %ymm1,%ymm0,%ymm11 |
| 3211 | .byte 197,108,20,203 // vunpcklps %ymm3,%ymm2,%ymm9 |
| 3212 | .byte 197,108,21,227 // vunpckhps %ymm3,%ymm2,%ymm12 |
| 3213 | .byte 196,65,61,20,209 // vunpcklpd %ymm9,%ymm8,%ymm10 |
| 3214 | .byte 196,65,61,21,201 // vunpckhpd %ymm9,%ymm8,%ymm9 |
| 3215 | .byte 196,65,37,20,196 // vunpcklpd %ymm12,%ymm11,%ymm8 |
| 3216 | .byte 196,65,37,21,220 // vunpckhpd %ymm12,%ymm11,%ymm11 |
| 3217 | .byte 72,133,201 // test %rcx,%rcx |
| 3218 | .byte 117,55 // jne e05 <_sk_store_f32_hsw+0x6d> |
| 3219 | .byte 196,67,45,24,225,1 // vinsertf128 $0x1,%xmm9,%ymm10,%ymm12 |
| 3220 | .byte 196,67,61,24,235,1 // vinsertf128 $0x1,%xmm11,%ymm8,%ymm13 |
| 3221 | .byte 196,67,45,6,201,49 // vperm2f128 $0x31,%ymm9,%ymm10,%ymm9 |
| 3222 | .byte 196,67,61,6,195,49 // vperm2f128 $0x31,%ymm11,%ymm8,%ymm8 |
| 3223 | .byte 196,65,125,17,36,128 // vmovupd %ymm12,(%r8,%rax,4) |
| 3224 | .byte 196,65,125,17,108,128,32 // vmovupd %ymm13,0x20(%r8,%rax,4) |
| 3225 | .byte 196,65,125,17,76,128,64 // vmovupd %ymm9,0x40(%r8,%rax,4) |
| 3226 | .byte 196,65,125,17,68,128,96 // vmovupd %ymm8,0x60(%r8,%rax,4) |
| 3227 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3228 | .byte 255,224 // jmpq *%rax |
| 3229 | .byte 196,65,121,17,20,128 // vmovupd %xmm10,(%r8,%rax,4) |
| 3230 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 3231 | .byte 116,240 // je e01 <_sk_store_f32_hsw+0x69> |
| 3232 | .byte 196,65,121,17,76,128,16 // vmovupd %xmm9,0x10(%r8,%rax,4) |
| 3233 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 3234 | .byte 114,227 // jb e01 <_sk_store_f32_hsw+0x69> |
| 3235 | .byte 196,65,121,17,68,128,32 // vmovupd %xmm8,0x20(%r8,%rax,4) |
| 3236 | .byte 116,218 // je e01 <_sk_store_f32_hsw+0x69> |
| 3237 | .byte 196,65,121,17,92,128,48 // vmovupd %xmm11,0x30(%r8,%rax,4) |
| 3238 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 3239 | .byte 114,205 // jb e01 <_sk_store_f32_hsw+0x69> |
| 3240 | .byte 196,67,125,25,84,128,64,1 // vextractf128 $0x1,%ymm10,0x40(%r8,%rax,4) |
| 3241 | .byte 116,195 // je e01 <_sk_store_f32_hsw+0x69> |
| 3242 | .byte 196,67,125,25,76,128,80,1 // vextractf128 $0x1,%ymm9,0x50(%r8,%rax,4) |
| 3243 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 3244 | .byte 114,181 // jb e01 <_sk_store_f32_hsw+0x69> |
| 3245 | .byte 196,67,125,25,68,128,96,1 // vextractf128 $0x1,%ymm8,0x60(%r8,%rax,4) |
| 3246 | .byte 235,171 // jmp e01 <_sk_store_f32_hsw+0x69> |
| 3247 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3248 | HIDDEN _sk_clamp_x_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3249 | .globl _sk_clamp_x_hsw |
| 3250 | _sk_clamp_x_hsw: |
| 3251 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3252 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3253 | .byte 197,188,95,192 // vmaxps %ymm0,%ymm8,%ymm0 |
| 3254 | .byte 196,98,125,88,0 // vpbroadcastd (%rax),%ymm8 |
| 3255 | .byte 196,65,53,118,201 // vpcmpeqd %ymm9,%ymm9,%ymm9 |
| 3256 | .byte 196,65,61,254,193 // vpaddd %ymm9,%ymm8,%ymm8 |
| 3257 | .byte 196,193,124,93,192 // vminps %ymm8,%ymm0,%ymm0 |
| 3258 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3259 | .byte 255,224 // jmpq *%rax |
| 3260 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3261 | HIDDEN _sk_clamp_y_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3262 | .globl _sk_clamp_y_hsw |
| 3263 | _sk_clamp_y_hsw: |
| 3264 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3265 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3266 | .byte 197,188,95,201 // vmaxps %ymm1,%ymm8,%ymm1 |
| 3267 | .byte 196,98,125,88,0 // vpbroadcastd (%rax),%ymm8 |
| 3268 | .byte 196,65,53,118,201 // vpcmpeqd %ymm9,%ymm9,%ymm9 |
| 3269 | .byte 196,65,61,254,193 // vpaddd %ymm9,%ymm8,%ymm8 |
| 3270 | .byte 196,193,116,93,200 // vminps %ymm8,%ymm1,%ymm1 |
| 3271 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3272 | .byte 255,224 // jmpq *%rax |
| 3273 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3274 | HIDDEN _sk_repeat_x_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3275 | .globl _sk_repeat_x_hsw |
| 3276 | _sk_repeat_x_hsw: |
| 3277 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3278 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3279 | .byte 196,65,124,94,200 // vdivps %ymm8,%ymm0,%ymm9 |
| 3280 | .byte 196,67,125,8,201,1 // vroundps $0x1,%ymm9,%ymm9 |
| 3281 | .byte 196,98,61,172,200 // vfnmadd213ps %ymm0,%ymm8,%ymm9 |
| 3282 | .byte 197,253,118,192 // vpcmpeqd %ymm0,%ymm0,%ymm0 |
| 3283 | .byte 197,189,254,192 // vpaddd %ymm0,%ymm8,%ymm0 |
| 3284 | .byte 197,180,93,192 // vminps %ymm0,%ymm9,%ymm0 |
| 3285 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3286 | .byte 255,224 // jmpq *%rax |
| 3287 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3288 | HIDDEN _sk_repeat_y_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3289 | .globl _sk_repeat_y_hsw |
| 3290 | _sk_repeat_y_hsw: |
| 3291 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3292 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3293 | .byte 196,65,116,94,200 // vdivps %ymm8,%ymm1,%ymm9 |
| 3294 | .byte 196,67,125,8,201,1 // vroundps $0x1,%ymm9,%ymm9 |
| 3295 | .byte 196,98,61,172,201 // vfnmadd213ps %ymm1,%ymm8,%ymm9 |
| 3296 | .byte 197,245,118,201 // vpcmpeqd %ymm1,%ymm1,%ymm1 |
| 3297 | .byte 197,189,254,201 // vpaddd %ymm1,%ymm8,%ymm1 |
| 3298 | .byte 197,180,93,201 // vminps %ymm1,%ymm9,%ymm1 |
| 3299 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3300 | .byte 255,224 // jmpq *%rax |
| 3301 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3302 | HIDDEN _sk_mirror_x_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3303 | .globl _sk_mirror_x_hsw |
| 3304 | _sk_mirror_x_hsw: |
| 3305 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3306 | .byte 197,122,16,0 // vmovss (%rax),%xmm8 |
| 3307 | .byte 196,66,125,24,200 // vbroadcastss %xmm8,%ymm9 |
| 3308 | .byte 196,65,124,92,209 // vsubps %ymm9,%ymm0,%ymm10 |
| 3309 | .byte 196,193,58,88,192 // vaddss %xmm8,%xmm8,%xmm0 |
| 3310 | .byte 196,226,125,24,192 // vbroadcastss %xmm0,%ymm0 |
| 3311 | .byte 197,44,94,192 // vdivps %ymm0,%ymm10,%ymm8 |
| 3312 | .byte 196,67,125,8,192,1 // vroundps $0x1,%ymm8,%ymm8 |
| 3313 | .byte 196,66,125,172,194 // vfnmadd213ps %ymm10,%ymm0,%ymm8 |
| 3314 | .byte 196,193,60,92,193 // vsubps %ymm9,%ymm8,%ymm0 |
| 3315 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3316 | .byte 197,60,92,192 // vsubps %ymm0,%ymm8,%ymm8 |
| 3317 | .byte 197,188,84,192 // vandps %ymm0,%ymm8,%ymm0 |
| 3318 | .byte 196,65,61,118,192 // vpcmpeqd %ymm8,%ymm8,%ymm8 |
| 3319 | .byte 196,65,53,254,192 // vpaddd %ymm8,%ymm9,%ymm8 |
| 3320 | .byte 196,193,124,93,192 // vminps %ymm8,%ymm0,%ymm0 |
| 3321 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3322 | .byte 255,224 // jmpq *%rax |
| 3323 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3324 | HIDDEN _sk_mirror_y_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3325 | .globl _sk_mirror_y_hsw |
| 3326 | _sk_mirror_y_hsw: |
| 3327 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3328 | .byte 197,122,16,0 // vmovss (%rax),%xmm8 |
| 3329 | .byte 196,66,125,24,200 // vbroadcastss %xmm8,%ymm9 |
| 3330 | .byte 196,65,116,92,209 // vsubps %ymm9,%ymm1,%ymm10 |
| 3331 | .byte 196,193,58,88,200 // vaddss %xmm8,%xmm8,%xmm1 |
| 3332 | .byte 196,226,125,24,201 // vbroadcastss %xmm1,%ymm1 |
| 3333 | .byte 197,44,94,193 // vdivps %ymm1,%ymm10,%ymm8 |
| 3334 | .byte 196,67,125,8,192,1 // vroundps $0x1,%ymm8,%ymm8 |
| 3335 | .byte 196,66,117,172,194 // vfnmadd213ps %ymm10,%ymm1,%ymm8 |
| 3336 | .byte 196,193,60,92,201 // vsubps %ymm9,%ymm8,%ymm1 |
| 3337 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3338 | .byte 197,60,92,193 // vsubps %ymm1,%ymm8,%ymm8 |
| 3339 | .byte 197,188,84,201 // vandps %ymm1,%ymm8,%ymm1 |
| 3340 | .byte 196,65,61,118,192 // vpcmpeqd %ymm8,%ymm8,%ymm8 |
| 3341 | .byte 196,65,53,254,192 // vpaddd %ymm8,%ymm9,%ymm8 |
| 3342 | .byte 196,193,116,93,200 // vminps %ymm8,%ymm1,%ymm1 |
| 3343 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3344 | .byte 255,224 // jmpq *%rax |
| 3345 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3346 | HIDDEN _sk_luminance_to_alpha_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3347 | .globl _sk_luminance_to_alpha_hsw |
| 3348 | _sk_luminance_to_alpha_hsw: |
| 3349 | .byte 184,208,179,89,62 // mov $0x3e59b3d0,%eax |
| 3350 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 3351 | .byte 196,98,125,88,195 // vpbroadcastd %xmm3,%ymm8 |
| 3352 | .byte 184,89,23,55,63 // mov $0x3f371759,%eax |
| 3353 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 3354 | .byte 196,226,125,88,219 // vpbroadcastd %xmm3,%ymm3 |
| 3355 | .byte 197,228,89,201 // vmulps %ymm1,%ymm3,%ymm1 |
| 3356 | .byte 196,98,125,168,193 // vfmadd213ps %ymm1,%ymm0,%ymm8 |
| 3357 | .byte 184,152,221,147,61 // mov $0x3d93dd98,%eax |
| 3358 | .byte 197,249,110,192 // vmovd %eax,%xmm0 |
| 3359 | .byte 196,226,125,88,216 // vpbroadcastd %xmm0,%ymm3 |
| 3360 | .byte 196,194,109,168,216 // vfmadd213ps %ymm8,%ymm2,%ymm3 |
| 3361 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3362 | .byte 197,253,239,192 // vpxor %ymm0,%ymm0,%ymm0 |
| 3363 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 3364 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 3365 | .byte 255,224 // jmpq *%rax |
| 3366 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3367 | HIDDEN _sk_matrix_2x3_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3368 | .globl _sk_matrix_2x3_hsw |
| 3369 | _sk_matrix_2x3_hsw: |
| 3370 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3371 | .byte 196,98,125,24,8 // vbroadcastss (%rax),%ymm9 |
| 3372 | .byte 196,98,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm10 |
| 3373 | .byte 196,98,125,24,64,16 // vbroadcastss 0x10(%rax),%ymm8 |
| 3374 | .byte 196,66,117,184,194 // vfmadd231ps %ymm10,%ymm1,%ymm8 |
| 3375 | .byte 196,66,125,184,193 // vfmadd231ps %ymm9,%ymm0,%ymm8 |
| 3376 | .byte 196,98,125,24,80,4 // vbroadcastss 0x4(%rax),%ymm10 |
| 3377 | .byte 196,98,125,24,88,12 // vbroadcastss 0xc(%rax),%ymm11 |
| 3378 | .byte 196,98,125,24,72,20 // vbroadcastss 0x14(%rax),%ymm9 |
| 3379 | .byte 196,66,117,184,203 // vfmadd231ps %ymm11,%ymm1,%ymm9 |
| 3380 | .byte 196,66,125,184,202 // vfmadd231ps %ymm10,%ymm0,%ymm9 |
| 3381 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3382 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 3383 | .byte 197,124,41,201 // vmovaps %ymm9,%ymm1 |
| 3384 | .byte 255,224 // jmpq *%rax |
| 3385 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3386 | HIDDEN _sk_matrix_3x4_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3387 | .globl _sk_matrix_3x4_hsw |
| 3388 | _sk_matrix_3x4_hsw: |
| 3389 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3390 | .byte 196,98,125,24,8 // vbroadcastss (%rax),%ymm9 |
| 3391 | .byte 196,98,125,24,80,12 // vbroadcastss 0xc(%rax),%ymm10 |
| 3392 | .byte 196,98,125,24,88,24 // vbroadcastss 0x18(%rax),%ymm11 |
| 3393 | .byte 196,98,125,24,64,36 // vbroadcastss 0x24(%rax),%ymm8 |
| 3394 | .byte 196,66,109,184,195 // vfmadd231ps %ymm11,%ymm2,%ymm8 |
| 3395 | .byte 196,66,117,184,194 // vfmadd231ps %ymm10,%ymm1,%ymm8 |
| 3396 | .byte 196,66,125,184,193 // vfmadd231ps %ymm9,%ymm0,%ymm8 |
| 3397 | .byte 196,98,125,24,80,4 // vbroadcastss 0x4(%rax),%ymm10 |
| 3398 | .byte 196,98,125,24,88,16 // vbroadcastss 0x10(%rax),%ymm11 |
| 3399 | .byte 196,98,125,24,96,28 // vbroadcastss 0x1c(%rax),%ymm12 |
| 3400 | .byte 196,98,125,24,72,40 // vbroadcastss 0x28(%rax),%ymm9 |
| 3401 | .byte 196,66,109,184,204 // vfmadd231ps %ymm12,%ymm2,%ymm9 |
| 3402 | .byte 196,66,117,184,203 // vfmadd231ps %ymm11,%ymm1,%ymm9 |
| 3403 | .byte 196,66,125,184,202 // vfmadd231ps %ymm10,%ymm0,%ymm9 |
| 3404 | .byte 196,98,125,24,88,8 // vbroadcastss 0x8(%rax),%ymm11 |
| 3405 | .byte 196,98,125,24,96,20 // vbroadcastss 0x14(%rax),%ymm12 |
| 3406 | .byte 196,98,125,24,104,32 // vbroadcastss 0x20(%rax),%ymm13 |
| 3407 | .byte 196,98,125,24,80,44 // vbroadcastss 0x2c(%rax),%ymm10 |
| 3408 | .byte 196,66,109,184,213 // vfmadd231ps %ymm13,%ymm2,%ymm10 |
| 3409 | .byte 196,66,117,184,212 // vfmadd231ps %ymm12,%ymm1,%ymm10 |
| 3410 | .byte 196,66,125,184,211 // vfmadd231ps %ymm11,%ymm0,%ymm10 |
| 3411 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3412 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 3413 | .byte 197,124,41,201 // vmovaps %ymm9,%ymm1 |
| 3414 | .byte 197,124,41,210 // vmovaps %ymm10,%ymm2 |
| 3415 | .byte 255,224 // jmpq *%rax |
| 3416 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3417 | HIDDEN _sk_matrix_4x5_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3418 | .globl _sk_matrix_4x5_hsw |
| 3419 | _sk_matrix_4x5_hsw: |
| 3420 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3421 | .byte 196,98,125,24,8 // vbroadcastss (%rax),%ymm9 |
| 3422 | .byte 196,98,125,24,80,16 // vbroadcastss 0x10(%rax),%ymm10 |
| 3423 | .byte 196,98,125,24,88,32 // vbroadcastss 0x20(%rax),%ymm11 |
| 3424 | .byte 196,98,125,24,96,48 // vbroadcastss 0x30(%rax),%ymm12 |
| 3425 | .byte 196,98,125,24,64,64 // vbroadcastss 0x40(%rax),%ymm8 |
| 3426 | .byte 196,66,101,184,196 // vfmadd231ps %ymm12,%ymm3,%ymm8 |
| 3427 | .byte 196,66,109,184,195 // vfmadd231ps %ymm11,%ymm2,%ymm8 |
| 3428 | .byte 196,66,117,184,194 // vfmadd231ps %ymm10,%ymm1,%ymm8 |
| 3429 | .byte 196,66,125,184,193 // vfmadd231ps %ymm9,%ymm0,%ymm8 |
| 3430 | .byte 196,98,125,24,80,4 // vbroadcastss 0x4(%rax),%ymm10 |
| 3431 | .byte 196,98,125,24,88,20 // vbroadcastss 0x14(%rax),%ymm11 |
| 3432 | .byte 196,98,125,24,96,36 // vbroadcastss 0x24(%rax),%ymm12 |
| 3433 | .byte 196,98,125,24,104,52 // vbroadcastss 0x34(%rax),%ymm13 |
| 3434 | .byte 196,98,125,24,72,68 // vbroadcastss 0x44(%rax),%ymm9 |
| 3435 | .byte 196,66,101,184,205 // vfmadd231ps %ymm13,%ymm3,%ymm9 |
| 3436 | .byte 196,66,109,184,204 // vfmadd231ps %ymm12,%ymm2,%ymm9 |
| 3437 | .byte 196,66,117,184,203 // vfmadd231ps %ymm11,%ymm1,%ymm9 |
| 3438 | .byte 196,66,125,184,202 // vfmadd231ps %ymm10,%ymm0,%ymm9 |
| 3439 | .byte 196,98,125,24,88,8 // vbroadcastss 0x8(%rax),%ymm11 |
| 3440 | .byte 196,98,125,24,96,24 // vbroadcastss 0x18(%rax),%ymm12 |
| 3441 | .byte 196,98,125,24,104,40 // vbroadcastss 0x28(%rax),%ymm13 |
| 3442 | .byte 196,98,125,24,112,56 // vbroadcastss 0x38(%rax),%ymm14 |
| 3443 | .byte 196,98,125,24,80,72 // vbroadcastss 0x48(%rax),%ymm10 |
| 3444 | .byte 196,66,101,184,214 // vfmadd231ps %ymm14,%ymm3,%ymm10 |
| 3445 | .byte 196,66,109,184,213 // vfmadd231ps %ymm13,%ymm2,%ymm10 |
| 3446 | .byte 196,66,117,184,212 // vfmadd231ps %ymm12,%ymm1,%ymm10 |
| 3447 | .byte 196,66,125,184,211 // vfmadd231ps %ymm11,%ymm0,%ymm10 |
| 3448 | .byte 196,98,125,24,96,12 // vbroadcastss 0xc(%rax),%ymm12 |
| 3449 | .byte 196,98,125,24,104,28 // vbroadcastss 0x1c(%rax),%ymm13 |
| 3450 | .byte 196,98,125,24,112,44 // vbroadcastss 0x2c(%rax),%ymm14 |
| 3451 | .byte 196,98,125,24,120,60 // vbroadcastss 0x3c(%rax),%ymm15 |
| 3452 | .byte 196,98,125,24,88,76 // vbroadcastss 0x4c(%rax),%ymm11 |
| 3453 | .byte 196,66,101,184,223 // vfmadd231ps %ymm15,%ymm3,%ymm11 |
| 3454 | .byte 196,66,109,184,222 // vfmadd231ps %ymm14,%ymm2,%ymm11 |
| 3455 | .byte 196,66,117,184,221 // vfmadd231ps %ymm13,%ymm1,%ymm11 |
| 3456 | .byte 196,66,125,184,220 // vfmadd231ps %ymm12,%ymm0,%ymm11 |
| 3457 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3458 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 3459 | .byte 197,124,41,201 // vmovaps %ymm9,%ymm1 |
| 3460 | .byte 197,124,41,210 // vmovaps %ymm10,%ymm2 |
| 3461 | .byte 197,124,41,219 // vmovaps %ymm11,%ymm3 |
| 3462 | .byte 255,224 // jmpq *%rax |
| 3463 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3464 | HIDDEN _sk_matrix_perspective_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3465 | .globl _sk_matrix_perspective_hsw |
| 3466 | _sk_matrix_perspective_hsw: |
| 3467 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3468 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3469 | .byte 196,98,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm9 |
| 3470 | .byte 196,98,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm10 |
| 3471 | .byte 196,66,117,184,209 // vfmadd231ps %ymm9,%ymm1,%ymm10 |
| 3472 | .byte 196,66,125,184,208 // vfmadd231ps %ymm8,%ymm0,%ymm10 |
| 3473 | .byte 196,98,125,24,64,12 // vbroadcastss 0xc(%rax),%ymm8 |
| 3474 | .byte 196,98,125,24,72,16 // vbroadcastss 0x10(%rax),%ymm9 |
| 3475 | .byte 196,98,125,24,88,20 // vbroadcastss 0x14(%rax),%ymm11 |
| 3476 | .byte 196,66,117,184,217 // vfmadd231ps %ymm9,%ymm1,%ymm11 |
| 3477 | .byte 196,66,125,184,216 // vfmadd231ps %ymm8,%ymm0,%ymm11 |
| 3478 | .byte 196,98,125,24,64,24 // vbroadcastss 0x18(%rax),%ymm8 |
| 3479 | .byte 196,98,125,24,72,28 // vbroadcastss 0x1c(%rax),%ymm9 |
| 3480 | .byte 196,98,125,24,96,32 // vbroadcastss 0x20(%rax),%ymm12 |
| 3481 | .byte 196,66,117,184,225 // vfmadd231ps %ymm9,%ymm1,%ymm12 |
| 3482 | .byte 196,66,125,184,224 // vfmadd231ps %ymm8,%ymm0,%ymm12 |
| 3483 | .byte 196,193,124,83,204 // vrcpps %ymm12,%ymm1 |
| 3484 | .byte 197,172,89,193 // vmulps %ymm1,%ymm10,%ymm0 |
| 3485 | .byte 197,164,89,201 // vmulps %ymm1,%ymm11,%ymm1 |
| 3486 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3487 | .byte 255,224 // jmpq *%rax |
| 3488 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3489 | HIDDEN _sk_linear_gradient_2stops_hsw |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3490 | .globl _sk_linear_gradient_2stops_hsw |
| 3491 | _sk_linear_gradient_2stops_hsw: |
| 3492 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3493 | .byte 196,226,125,24,72,16 // vbroadcastss 0x10(%rax),%ymm1 |
| 3494 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3495 | .byte 196,98,125,184,193 // vfmadd231ps %ymm1,%ymm0,%ymm8 |
| 3496 | .byte 196,226,125,24,80,20 // vbroadcastss 0x14(%rax),%ymm2 |
| 3497 | .byte 196,226,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm1 |
| 3498 | .byte 196,226,125,184,202 // vfmadd231ps %ymm2,%ymm0,%ymm1 |
| 3499 | .byte 196,226,125,24,88,24 // vbroadcastss 0x18(%rax),%ymm3 |
| 3500 | .byte 196,226,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm2 |
| 3501 | .byte 196,226,125,184,211 // vfmadd231ps %ymm3,%ymm0,%ymm2 |
| 3502 | .byte 196,98,125,24,72,28 // vbroadcastss 0x1c(%rax),%ymm9 |
| 3503 | .byte 196,226,125,24,88,12 // vbroadcastss 0xc(%rax),%ymm3 |
| 3504 | .byte 196,194,125,184,217 // vfmadd231ps %ymm9,%ymm0,%ymm3 |
| 3505 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3506 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 3507 | .byte 255,224 // jmpq *%rax |
| 3508 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3509 | HIDDEN _sk_start_pipeline_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3510 | .globl _sk_start_pipeline_avx |
| 3511 | _sk_start_pipeline_avx: |
| 3512 | .byte 65,87 // push %r15 |
| 3513 | .byte 65,86 // push %r14 |
| 3514 | .byte 65,85 // push %r13 |
| 3515 | .byte 65,84 // push %r12 |
| 3516 | .byte 83 // push %rbx |
| 3517 | .byte 73,137,205 // mov %rcx,%r13 |
| 3518 | .byte 73,137,214 // mov %rdx,%r14 |
| 3519 | .byte 72,137,251 // mov %rdi,%rbx |
| 3520 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3521 | .byte 73,137,199 // mov %rax,%r15 |
| 3522 | .byte 73,137,244 // mov %rsi,%r12 |
| 3523 | .byte 72,141,67,8 // lea 0x8(%rbx),%rax |
| 3524 | .byte 76,57,232 // cmp %r13,%rax |
| 3525 | .byte 118,5 // jbe 28 <_sk_start_pipeline_avx+0x28> |
| 3526 | .byte 72,137,223 // mov %rbx,%rdi |
| 3527 | .byte 235,65 // jmp 69 <_sk_start_pipeline_avx+0x69> |
| 3528 | .byte 185,0,0,0,0 // mov $0x0,%ecx |
| 3529 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 3530 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 3531 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 3532 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 3533 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 3534 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 3535 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 3536 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 3537 | .byte 72,137,223 // mov %rbx,%rdi |
| 3538 | .byte 76,137,230 // mov %r12,%rsi |
| 3539 | .byte 76,137,242 // mov %r14,%rdx |
| 3540 | .byte 65,255,215 // callq *%r15 |
| 3541 | .byte 72,141,123,8 // lea 0x8(%rbx),%rdi |
| 3542 | .byte 72,131,195,16 // add $0x10,%rbx |
| 3543 | .byte 76,57,235 // cmp %r13,%rbx |
| 3544 | .byte 72,137,251 // mov %rdi,%rbx |
| 3545 | .byte 118,191 // jbe 28 <_sk_start_pipeline_avx+0x28> |
| 3546 | .byte 76,137,233 // mov %r13,%rcx |
| 3547 | .byte 72,41,249 // sub %rdi,%rcx |
| 3548 | .byte 116,41 // je 9a <_sk_start_pipeline_avx+0x9a> |
| 3549 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 3550 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 3551 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 3552 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 3553 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 3554 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 3555 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 3556 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 3557 | .byte 76,137,230 // mov %r12,%rsi |
| 3558 | .byte 76,137,242 // mov %r14,%rdx |
| 3559 | .byte 65,255,215 // callq *%r15 |
| 3560 | .byte 76,137,232 // mov %r13,%rax |
| 3561 | .byte 91 // pop %rbx |
| 3562 | .byte 65,92 // pop %r12 |
| 3563 | .byte 65,93 // pop %r13 |
| 3564 | .byte 65,94 // pop %r14 |
| 3565 | .byte 65,95 // pop %r15 |
| 3566 | .byte 197,248,119 // vzeroupper |
| 3567 | .byte 195 // retq |
| 3568 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3569 | HIDDEN _sk_just_return_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3570 | .globl _sk_just_return_avx |
| 3571 | _sk_just_return_avx: |
| 3572 | .byte 195 // retq |
| 3573 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3574 | HIDDEN _sk_seed_shader_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3575 | .globl _sk_seed_shader_avx |
| 3576 | _sk_seed_shader_avx: |
| 3577 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3578 | .byte 197,249,110,199 // vmovd %edi,%xmm0 |
| 3579 | .byte 197,249,112,192,0 // vpshufd $0x0,%xmm0,%xmm0 |
| 3580 | .byte 196,227,125,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm0 |
| 3581 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 3582 | .byte 65,184,0,0,0,63 // mov $0x3f000000,%r8d |
| 3583 | .byte 196,193,121,110,200 // vmovd %r8d,%xmm1 |
| 3584 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 3585 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 3586 | .byte 197,252,88,193 // vaddps %ymm1,%ymm0,%ymm0 |
| 3587 | .byte 197,252,88,2 // vaddps (%rdx),%ymm0,%ymm0 |
| 3588 | .byte 196,226,125,24,16 // vbroadcastss (%rax),%ymm2 |
| 3589 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 3590 | .byte 197,236,88,201 // vaddps %ymm1,%ymm2,%ymm1 |
| 3591 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3592 | .byte 197,249,110,208 // vmovd %eax,%xmm2 |
| 3593 | .byte 196,227,121,4,210,0 // vpermilps $0x0,%xmm2,%xmm2 |
| 3594 | .byte 196,227,109,24,210,1 // vinsertf128 $0x1,%xmm2,%ymm2,%ymm2 |
| 3595 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3596 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 3597 | .byte 197,220,87,228 // vxorps %ymm4,%ymm4,%ymm4 |
| 3598 | .byte 197,212,87,237 // vxorps %ymm5,%ymm5,%ymm5 |
| 3599 | .byte 197,204,87,246 // vxorps %ymm6,%ymm6,%ymm6 |
| 3600 | .byte 197,196,87,255 // vxorps %ymm7,%ymm7,%ymm7 |
| 3601 | .byte 255,224 // jmpq *%rax |
| 3602 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3603 | HIDDEN _sk_constant_color_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3604 | .globl _sk_constant_color_avx |
| 3605 | _sk_constant_color_avx: |
| 3606 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3607 | .byte 196,226,125,24,0 // vbroadcastss (%rax),%ymm0 |
| 3608 | .byte 196,226,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm1 |
| 3609 | .byte 196,226,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm2 |
| 3610 | .byte 196,226,125,24,88,12 // vbroadcastss 0xc(%rax),%ymm3 |
| 3611 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3612 | .byte 255,224 // jmpq *%rax |
| 3613 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3614 | HIDDEN _sk_clear_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3615 | .globl _sk_clear_avx |
| 3616 | _sk_clear_avx: |
| 3617 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3618 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 3619 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 3620 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 3621 | .byte 197,228,87,219 // vxorps %ymm3,%ymm3,%ymm3 |
| 3622 | .byte 255,224 // jmpq *%rax |
| 3623 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3624 | HIDDEN _sk_plus__avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3625 | .globl _sk_plus__avx |
| 3626 | _sk_plus__avx: |
| 3627 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 3628 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 3629 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 3630 | .byte 197,228,88,223 // vaddps %ymm7,%ymm3,%ymm3 |
| 3631 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3632 | .byte 255,224 // jmpq *%rax |
| 3633 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3634 | HIDDEN _sk_srcover_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3635 | .globl _sk_srcover_avx |
| 3636 | _sk_srcover_avx: |
| 3637 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3638 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3639 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3640 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3641 | .byte 197,60,92,195 // vsubps %ymm3,%ymm8,%ymm8 |
| 3642 | .byte 197,60,89,204 // vmulps %ymm4,%ymm8,%ymm9 |
| 3643 | .byte 197,180,88,192 // vaddps %ymm0,%ymm9,%ymm0 |
| 3644 | .byte 197,60,89,205 // vmulps %ymm5,%ymm8,%ymm9 |
| 3645 | .byte 197,180,88,201 // vaddps %ymm1,%ymm9,%ymm1 |
| 3646 | .byte 197,60,89,206 // vmulps %ymm6,%ymm8,%ymm9 |
| 3647 | .byte 197,180,88,210 // vaddps %ymm2,%ymm9,%ymm2 |
| 3648 | .byte 197,60,89,199 // vmulps %ymm7,%ymm8,%ymm8 |
| 3649 | .byte 197,188,88,219 // vaddps %ymm3,%ymm8,%ymm3 |
| 3650 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3651 | .byte 255,224 // jmpq *%rax |
| 3652 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3653 | HIDDEN _sk_dstover_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3654 | .globl _sk_dstover_avx |
| 3655 | _sk_dstover_avx: |
| 3656 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3657 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3658 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3659 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3660 | .byte 197,60,92,199 // vsubps %ymm7,%ymm8,%ymm8 |
| 3661 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 3662 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 3663 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 3664 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 3665 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 3666 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 3667 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 3668 | .byte 197,228,88,223 // vaddps %ymm7,%ymm3,%ymm3 |
| 3669 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3670 | .byte 255,224 // jmpq *%rax |
| 3671 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3672 | HIDDEN _sk_clamp_0_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3673 | .globl _sk_clamp_0_avx |
| 3674 | _sk_clamp_0_avx: |
| 3675 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3676 | .byte 196,193,124,95,192 // vmaxps %ymm8,%ymm0,%ymm0 |
| 3677 | .byte 196,193,116,95,200 // vmaxps %ymm8,%ymm1,%ymm1 |
| 3678 | .byte 196,193,108,95,208 // vmaxps %ymm8,%ymm2,%ymm2 |
| 3679 | .byte 196,193,100,95,216 // vmaxps %ymm8,%ymm3,%ymm3 |
| 3680 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3681 | .byte 255,224 // jmpq *%rax |
| 3682 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3683 | HIDDEN _sk_clamp_1_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3684 | .globl _sk_clamp_1_avx |
| 3685 | _sk_clamp_1_avx: |
| 3686 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3687 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3688 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3689 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3690 | .byte 196,193,124,93,192 // vminps %ymm8,%ymm0,%ymm0 |
| 3691 | .byte 196,193,116,93,200 // vminps %ymm8,%ymm1,%ymm1 |
| 3692 | .byte 196,193,108,93,208 // vminps %ymm8,%ymm2,%ymm2 |
| 3693 | .byte 196,193,100,93,216 // vminps %ymm8,%ymm3,%ymm3 |
| 3694 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3695 | .byte 255,224 // jmpq *%rax |
| 3696 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3697 | HIDDEN _sk_clamp_a_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3698 | .globl _sk_clamp_a_avx |
| 3699 | _sk_clamp_a_avx: |
| 3700 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3701 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3702 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3703 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3704 | .byte 196,193,100,93,216 // vminps %ymm8,%ymm3,%ymm3 |
| 3705 | .byte 197,252,93,195 // vminps %ymm3,%ymm0,%ymm0 |
| 3706 | .byte 197,244,93,203 // vminps %ymm3,%ymm1,%ymm1 |
| 3707 | .byte 197,236,93,211 // vminps %ymm3,%ymm2,%ymm2 |
| 3708 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3709 | .byte 255,224 // jmpq *%rax |
| 3710 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3711 | HIDDEN _sk_set_rgb_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3712 | .globl _sk_set_rgb_avx |
| 3713 | _sk_set_rgb_avx: |
| 3714 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3715 | .byte 196,226,125,24,0 // vbroadcastss (%rax),%ymm0 |
| 3716 | .byte 196,226,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm1 |
| 3717 | .byte 196,226,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm2 |
| 3718 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3719 | .byte 255,224 // jmpq *%rax |
| 3720 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3721 | HIDDEN _sk_swap_rb_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3722 | .globl _sk_swap_rb_avx |
| 3723 | _sk_swap_rb_avx: |
| 3724 | .byte 197,124,40,192 // vmovaps %ymm0,%ymm8 |
| 3725 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3726 | .byte 197,252,40,194 // vmovaps %ymm2,%ymm0 |
| 3727 | .byte 197,124,41,194 // vmovaps %ymm8,%ymm2 |
| 3728 | .byte 255,224 // jmpq *%rax |
| 3729 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3730 | HIDDEN _sk_swap_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3731 | .globl _sk_swap_avx |
| 3732 | _sk_swap_avx: |
| 3733 | .byte 197,124,40,195 // vmovaps %ymm3,%ymm8 |
| 3734 | .byte 197,124,40,202 // vmovaps %ymm2,%ymm9 |
| 3735 | .byte 197,124,40,209 // vmovaps %ymm1,%ymm10 |
| 3736 | .byte 197,124,40,216 // vmovaps %ymm0,%ymm11 |
| 3737 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3738 | .byte 197,252,40,196 // vmovaps %ymm4,%ymm0 |
| 3739 | .byte 197,252,40,205 // vmovaps %ymm5,%ymm1 |
| 3740 | .byte 197,252,40,214 // vmovaps %ymm6,%ymm2 |
| 3741 | .byte 197,252,40,223 // vmovaps %ymm7,%ymm3 |
| 3742 | .byte 197,124,41,220 // vmovaps %ymm11,%ymm4 |
| 3743 | .byte 197,124,41,213 // vmovaps %ymm10,%ymm5 |
| 3744 | .byte 197,124,41,206 // vmovaps %ymm9,%ymm6 |
| 3745 | .byte 197,124,41,199 // vmovaps %ymm8,%ymm7 |
| 3746 | .byte 255,224 // jmpq *%rax |
| 3747 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3748 | HIDDEN _sk_move_src_dst_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3749 | .globl _sk_move_src_dst_avx |
| 3750 | _sk_move_src_dst_avx: |
| 3751 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3752 | .byte 197,252,40,224 // vmovaps %ymm0,%ymm4 |
| 3753 | .byte 197,252,40,233 // vmovaps %ymm1,%ymm5 |
| 3754 | .byte 197,252,40,242 // vmovaps %ymm2,%ymm6 |
| 3755 | .byte 197,252,40,251 // vmovaps %ymm3,%ymm7 |
| 3756 | .byte 255,224 // jmpq *%rax |
| 3757 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3758 | HIDDEN _sk_move_dst_src_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3759 | .globl _sk_move_dst_src_avx |
| 3760 | _sk_move_dst_src_avx: |
| 3761 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3762 | .byte 197,252,40,196 // vmovaps %ymm4,%ymm0 |
| 3763 | .byte 197,252,40,205 // vmovaps %ymm5,%ymm1 |
| 3764 | .byte 197,252,40,214 // vmovaps %ymm6,%ymm2 |
| 3765 | .byte 197,252,40,223 // vmovaps %ymm7,%ymm3 |
| 3766 | .byte 255,224 // jmpq *%rax |
| 3767 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3768 | HIDDEN _sk_premul_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3769 | .globl _sk_premul_avx |
| 3770 | _sk_premul_avx: |
| 3771 | .byte 197,252,89,195 // vmulps %ymm3,%ymm0,%ymm0 |
| 3772 | .byte 197,244,89,203 // vmulps %ymm3,%ymm1,%ymm1 |
| 3773 | .byte 197,236,89,211 // vmulps %ymm3,%ymm2,%ymm2 |
| 3774 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3775 | .byte 255,224 // jmpq *%rax |
| 3776 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3777 | HIDDEN _sk_unpremul_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3778 | .globl _sk_unpremul_avx |
| 3779 | _sk_unpremul_avx: |
| 3780 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 3781 | .byte 196,65,100,194,200,0 // vcmpeqps %ymm8,%ymm3,%ymm9 |
| 3782 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3783 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 3784 | .byte 196,67,121,4,210,0 // vpermilps $0x0,%xmm10,%xmm10 |
| 3785 | .byte 196,67,45,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm10,%ymm10 |
| 3786 | .byte 197,44,94,211 // vdivps %ymm3,%ymm10,%ymm10 |
| 3787 | .byte 196,67,45,74,192,144 // vblendvps %ymm9,%ymm8,%ymm10,%ymm8 |
| 3788 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 3789 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 3790 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 3791 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3792 | .byte 255,224 // jmpq *%rax |
| 3793 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3794 | HIDDEN _sk_from_srgb_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3795 | .globl _sk_from_srgb_avx |
| 3796 | _sk_from_srgb_avx: |
| 3797 | .byte 184,145,131,158,61 // mov $0x3d9e8391,%eax |
| 3798 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3799 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3800 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3801 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 3802 | .byte 197,124,89,208 // vmulps %ymm0,%ymm0,%ymm10 |
| 3803 | .byte 184,154,153,153,62 // mov $0x3e99999a,%eax |
| 3804 | .byte 197,121,110,216 // vmovd %eax,%xmm11 |
| 3805 | .byte 196,67,121,4,219,0 // vpermilps $0x0,%xmm11,%xmm11 |
| 3806 | .byte 196,67,37,24,219,1 // vinsertf128 $0x1,%xmm11,%ymm11,%ymm11 |
| 3807 | .byte 184,92,143,50,63 // mov $0x3f328f5c,%eax |
| 3808 | .byte 197,121,110,224 // vmovd %eax,%xmm12 |
| 3809 | .byte 196,67,121,4,228,0 // vpermilps $0x0,%xmm12,%xmm12 |
| 3810 | .byte 196,67,29,24,228,1 // vinsertf128 $0x1,%xmm12,%ymm12,%ymm12 |
| 3811 | .byte 197,36,89,232 // vmulps %ymm0,%ymm11,%ymm13 |
| 3812 | .byte 196,65,20,88,236 // vaddps %ymm12,%ymm13,%ymm13 |
| 3813 | .byte 184,10,215,35,59 // mov $0x3b23d70a,%eax |
| 3814 | .byte 197,121,110,240 // vmovd %eax,%xmm14 |
| 3815 | .byte 196,67,121,4,246,0 // vpermilps $0x0,%xmm14,%xmm14 |
| 3816 | .byte 196,67,13,24,246,1 // vinsertf128 $0x1,%xmm14,%ymm14,%ymm14 |
| 3817 | .byte 196,65,44,89,213 // vmulps %ymm13,%ymm10,%ymm10 |
| 3818 | .byte 196,65,12,88,210 // vaddps %ymm10,%ymm14,%ymm10 |
| 3819 | .byte 184,174,71,97,61 // mov $0x3d6147ae,%eax |
| 3820 | .byte 197,121,110,232 // vmovd %eax,%xmm13 |
| 3821 | .byte 196,67,121,4,237,0 // vpermilps $0x0,%xmm13,%xmm13 |
| 3822 | .byte 196,67,21,24,237,1 // vinsertf128 $0x1,%xmm13,%ymm13,%ymm13 |
| 3823 | .byte 196,193,124,194,197,1 // vcmpltps %ymm13,%ymm0,%ymm0 |
| 3824 | .byte 196,195,45,74,193,0 // vblendvps %ymm0,%ymm9,%ymm10,%ymm0 |
| 3825 | .byte 197,60,89,201 // vmulps %ymm1,%ymm8,%ymm9 |
| 3826 | .byte 197,116,89,209 // vmulps %ymm1,%ymm1,%ymm10 |
| 3827 | .byte 197,36,89,249 // vmulps %ymm1,%ymm11,%ymm15 |
| 3828 | .byte 196,65,28,88,255 // vaddps %ymm15,%ymm12,%ymm15 |
| 3829 | .byte 196,65,44,89,215 // vmulps %ymm15,%ymm10,%ymm10 |
| 3830 | .byte 196,65,12,88,210 // vaddps %ymm10,%ymm14,%ymm10 |
| 3831 | .byte 196,193,116,194,205,1 // vcmpltps %ymm13,%ymm1,%ymm1 |
| 3832 | .byte 196,195,45,74,201,16 // vblendvps %ymm1,%ymm9,%ymm10,%ymm1 |
| 3833 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 3834 | .byte 197,108,89,202 // vmulps %ymm2,%ymm2,%ymm9 |
| 3835 | .byte 197,36,89,210 // vmulps %ymm2,%ymm11,%ymm10 |
| 3836 | .byte 196,65,28,88,210 // vaddps %ymm10,%ymm12,%ymm10 |
| 3837 | .byte 196,65,52,89,202 // vmulps %ymm10,%ymm9,%ymm9 |
| 3838 | .byte 196,65,12,88,201 // vaddps %ymm9,%ymm14,%ymm9 |
| 3839 | .byte 196,193,108,194,213,1 // vcmpltps %ymm13,%ymm2,%ymm2 |
| 3840 | .byte 196,195,53,74,208,32 // vblendvps %ymm2,%ymm8,%ymm9,%ymm2 |
| 3841 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3842 | .byte 255,224 // jmpq *%rax |
| 3843 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3844 | HIDDEN _sk_to_srgb_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3845 | .globl _sk_to_srgb_avx |
| 3846 | _sk_to_srgb_avx: |
| 3847 | .byte 197,124,82,192 // vrsqrtps %ymm0,%ymm8 |
| 3848 | .byte 196,65,124,83,232 // vrcpps %ymm8,%ymm13 |
| 3849 | .byte 196,65,124,82,240 // vrsqrtps %ymm8,%ymm14 |
| 3850 | .byte 184,41,92,71,65 // mov $0x41475c29,%eax |
| 3851 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 3852 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 3853 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 3854 | .byte 197,60,89,224 // vmulps %ymm0,%ymm8,%ymm12 |
| 3855 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 3856 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 3857 | .byte 196,67,121,4,201,0 // vpermilps $0x0,%xmm9,%xmm9 |
| 3858 | .byte 196,67,53,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm9,%ymm9 |
| 3859 | .byte 184,194,135,210,62 // mov $0x3ed287c2,%eax |
| 3860 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 3861 | .byte 196,67,121,4,210,0 // vpermilps $0x0,%xmm10,%xmm10 |
| 3862 | .byte 196,67,45,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm10,%ymm10 |
| 3863 | .byte 184,206,111,48,63 // mov $0x3f306fce,%eax |
| 3864 | .byte 197,121,110,216 // vmovd %eax,%xmm11 |
| 3865 | .byte 196,67,121,4,219,0 // vpermilps $0x0,%xmm11,%xmm11 |
| 3866 | .byte 196,67,37,24,219,1 // vinsertf128 $0x1,%xmm11,%ymm11,%ymm11 |
| 3867 | .byte 184,168,87,202,61 // mov $0x3dca57a8,%eax |
| 3868 | .byte 53,0,0,0,128 // xor $0x80000000,%eax |
| 3869 | .byte 197,121,110,248 // vmovd %eax,%xmm15 |
| 3870 | .byte 196,67,121,4,255,0 // vpermilps $0x0,%xmm15,%xmm15 |
| 3871 | .byte 196,67,5,24,255,1 // vinsertf128 $0x1,%xmm15,%ymm15,%ymm15 |
| 3872 | .byte 196,65,20,89,235 // vmulps %ymm11,%ymm13,%ymm13 |
| 3873 | .byte 196,65,20,88,239 // vaddps %ymm15,%ymm13,%ymm13 |
| 3874 | .byte 196,65,12,89,242 // vmulps %ymm10,%ymm14,%ymm14 |
| 3875 | .byte 196,65,12,88,237 // vaddps %ymm13,%ymm14,%ymm13 |
| 3876 | .byte 196,65,52,93,237 // vminps %ymm13,%ymm9,%ymm13 |
| 3877 | .byte 184,4,231,140,59 // mov $0x3b8ce704,%eax |
| 3878 | .byte 197,121,110,240 // vmovd %eax,%xmm14 |
| 3879 | .byte 196,67,121,4,246,0 // vpermilps $0x0,%xmm14,%xmm14 |
| 3880 | .byte 196,67,13,24,246,1 // vinsertf128 $0x1,%xmm14,%ymm14,%ymm14 |
| 3881 | .byte 196,193,124,194,198,1 // vcmpltps %ymm14,%ymm0,%ymm0 |
| 3882 | .byte 196,195,21,74,196,0 // vblendvps %ymm0,%ymm12,%ymm13,%ymm0 |
| 3883 | .byte 197,124,82,225 // vrsqrtps %ymm1,%ymm12 |
| 3884 | .byte 196,65,124,83,236 // vrcpps %ymm12,%ymm13 |
| 3885 | .byte 196,65,124,82,228 // vrsqrtps %ymm12,%ymm12 |
| 3886 | .byte 196,65,36,89,237 // vmulps %ymm13,%ymm11,%ymm13 |
| 3887 | .byte 196,65,4,88,237 // vaddps %ymm13,%ymm15,%ymm13 |
| 3888 | .byte 196,65,44,89,228 // vmulps %ymm12,%ymm10,%ymm12 |
| 3889 | .byte 196,65,28,88,229 // vaddps %ymm13,%ymm12,%ymm12 |
| 3890 | .byte 197,60,89,233 // vmulps %ymm1,%ymm8,%ymm13 |
| 3891 | .byte 196,65,52,93,228 // vminps %ymm12,%ymm9,%ymm12 |
| 3892 | .byte 196,193,116,194,206,1 // vcmpltps %ymm14,%ymm1,%ymm1 |
| 3893 | .byte 196,195,29,74,205,16 // vblendvps %ymm1,%ymm13,%ymm12,%ymm1 |
| 3894 | .byte 197,124,82,226 // vrsqrtps %ymm2,%ymm12 |
| 3895 | .byte 196,65,124,83,236 // vrcpps %ymm12,%ymm13 |
| 3896 | .byte 196,65,36,89,221 // vmulps %ymm13,%ymm11,%ymm11 |
| 3897 | .byte 196,65,4,88,219 // vaddps %ymm11,%ymm15,%ymm11 |
| 3898 | .byte 196,65,124,82,228 // vrsqrtps %ymm12,%ymm12 |
| 3899 | .byte 196,65,44,89,212 // vmulps %ymm12,%ymm10,%ymm10 |
| 3900 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 3901 | .byte 196,65,52,93,202 // vminps %ymm10,%ymm9,%ymm9 |
| 3902 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 3903 | .byte 196,193,108,194,214,1 // vcmpltps %ymm14,%ymm2,%ymm2 |
| 3904 | .byte 196,195,53,74,208,32 // vblendvps %ymm2,%ymm8,%ymm9,%ymm2 |
| 3905 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3906 | .byte 255,224 // jmpq *%rax |
| 3907 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3908 | HIDDEN _sk_scale_1_float_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3909 | .globl _sk_scale_1_float_avx |
| 3910 | _sk_scale_1_float_avx: |
| 3911 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3912 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3913 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 3914 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 3915 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 3916 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 3917 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3918 | .byte 255,224 // jmpq *%rax |
| 3919 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3920 | HIDDEN _sk_scale_u8_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3921 | .globl _sk_scale_u8_avx |
| 3922 | _sk_scale_u8_avx: |
| 3923 | .byte 73,137,200 // mov %rcx,%r8 |
| 3924 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3925 | .byte 72,139,0 // mov (%rax),%rax |
| 3926 | .byte 72,1,248 // add %rdi,%rax |
| 3927 | .byte 77,133,192 // test %r8,%r8 |
| 3928 | .byte 117,80 // jne 5a2 <_sk_scale_u8_avx+0x60> |
| 3929 | .byte 197,122,126,0 // vmovq (%rax),%xmm8 |
| 3930 | .byte 196,66,121,49,200 // vpmovzxbd %xmm8,%xmm9 |
| 3931 | .byte 196,67,121,4,192,229 // vpermilps $0xe5,%xmm8,%xmm8 |
| 3932 | .byte 196,66,121,49,192 // vpmovzxbd %xmm8,%xmm8 |
| 3933 | .byte 196,67,53,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm9,%ymm8 |
| 3934 | .byte 196,65,124,91,192 // vcvtdq2ps %ymm8,%ymm8 |
| 3935 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 3936 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 3937 | .byte 196,67,121,4,201,0 // vpermilps $0x0,%xmm9,%xmm9 |
| 3938 | .byte 196,67,53,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm9,%ymm9 |
| 3939 | .byte 196,65,60,89,193 // vmulps %ymm9,%ymm8,%ymm8 |
| 3940 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 3941 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 3942 | .byte 197,188,89,210 // vmulps %ymm2,%ymm8,%ymm2 |
| 3943 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 3944 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3945 | .byte 76,137,193 // mov %r8,%rcx |
| 3946 | .byte 255,224 // jmpq *%rax |
| 3947 | .byte 49,201 // xor %ecx,%ecx |
| 3948 | .byte 77,137,194 // mov %r8,%r10 |
| 3949 | .byte 69,49,201 // xor %r9d,%r9d |
| 3950 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 3951 | .byte 72,255,192 // inc %rax |
| 3952 | .byte 73,211,227 // shl %cl,%r11 |
| 3953 | .byte 77,9,217 // or %r11,%r9 |
| 3954 | .byte 72,131,193,8 // add $0x8,%rcx |
| 3955 | .byte 73,255,202 // dec %r10 |
| 3956 | .byte 117,234 // jne 5aa <_sk_scale_u8_avx+0x68> |
| 3957 | .byte 196,65,249,110,193 // vmovq %r9,%xmm8 |
| 3958 | .byte 235,143 // jmp 556 <_sk_scale_u8_avx+0x14> |
| 3959 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3960 | HIDDEN _sk_lerp_1_float_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3961 | .globl _sk_lerp_1_float_avx |
| 3962 | _sk_lerp_1_float_avx: |
| 3963 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3964 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 3965 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 3966 | .byte 196,193,124,89,192 // vmulps %ymm8,%ymm0,%ymm0 |
| 3967 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 3968 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 3969 | .byte 196,193,116,89,200 // vmulps %ymm8,%ymm1,%ymm1 |
| 3970 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 3971 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 3972 | .byte 196,193,108,89,208 // vmulps %ymm8,%ymm2,%ymm2 |
| 3973 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 3974 | .byte 197,228,92,223 // vsubps %ymm7,%ymm3,%ymm3 |
| 3975 | .byte 196,193,100,89,216 // vmulps %ymm8,%ymm3,%ymm3 |
| 3976 | .byte 197,228,88,223 // vaddps %ymm7,%ymm3,%ymm3 |
| 3977 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3978 | .byte 255,224 // jmpq *%rax |
| 3979 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 3980 | HIDDEN _sk_lerp_u8_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 3981 | .globl _sk_lerp_u8_avx |
| 3982 | _sk_lerp_u8_avx: |
| 3983 | .byte 73,137,200 // mov %rcx,%r8 |
| 3984 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 3985 | .byte 72,139,0 // mov (%rax),%rax |
| 3986 | .byte 72,1,248 // add %rdi,%rax |
| 3987 | .byte 77,133,192 // test %r8,%r8 |
| 3988 | .byte 117,116 // jne 68a <_sk_lerp_u8_avx+0x84> |
| 3989 | .byte 197,122,126,0 // vmovq (%rax),%xmm8 |
| 3990 | .byte 196,66,121,49,200 // vpmovzxbd %xmm8,%xmm9 |
| 3991 | .byte 196,67,121,4,192,229 // vpermilps $0xe5,%xmm8,%xmm8 |
| 3992 | .byte 196,66,121,49,192 // vpmovzxbd %xmm8,%xmm8 |
| 3993 | .byte 196,67,53,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm9,%ymm8 |
| 3994 | .byte 196,65,124,91,192 // vcvtdq2ps %ymm8,%ymm8 |
| 3995 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 3996 | .byte 197,121,110,200 // vmovd %eax,%xmm9 |
| 3997 | .byte 196,67,121,4,201,0 // vpermilps $0x0,%xmm9,%xmm9 |
| 3998 | .byte 196,67,53,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm9,%ymm9 |
| 3999 | .byte 196,65,60,89,193 // vmulps %ymm9,%ymm8,%ymm8 |
| 4000 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 4001 | .byte 196,193,124,89,192 // vmulps %ymm8,%ymm0,%ymm0 |
| 4002 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 4003 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 4004 | .byte 196,193,116,89,200 // vmulps %ymm8,%ymm1,%ymm1 |
| 4005 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 4006 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 4007 | .byte 196,193,108,89,208 // vmulps %ymm8,%ymm2,%ymm2 |
| 4008 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 4009 | .byte 197,228,92,223 // vsubps %ymm7,%ymm3,%ymm3 |
| 4010 | .byte 196,193,100,89,216 // vmulps %ymm8,%ymm3,%ymm3 |
| 4011 | .byte 197,228,88,223 // vaddps %ymm7,%ymm3,%ymm3 |
| 4012 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4013 | .byte 76,137,193 // mov %r8,%rcx |
| 4014 | .byte 255,224 // jmpq *%rax |
| 4015 | .byte 49,201 // xor %ecx,%ecx |
| 4016 | .byte 77,137,194 // mov %r8,%r10 |
| 4017 | .byte 69,49,201 // xor %r9d,%r9d |
| 4018 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 4019 | .byte 72,255,192 // inc %rax |
| 4020 | .byte 73,211,227 // shl %cl,%r11 |
| 4021 | .byte 77,9,217 // or %r11,%r9 |
| 4022 | .byte 72,131,193,8 // add $0x8,%rcx |
| 4023 | .byte 73,255,202 // dec %r10 |
| 4024 | .byte 117,234 // jne 692 <_sk_lerp_u8_avx+0x8c> |
| 4025 | .byte 196,65,249,110,193 // vmovq %r9,%xmm8 |
| 4026 | .byte 233,104,255,255,255 // jmpq 61a <_sk_lerp_u8_avx+0x14> |
| 4027 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4028 | HIDDEN _sk_lerp_565_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4029 | .globl _sk_lerp_565_avx |
| 4030 | _sk_lerp_565_avx: |
| 4031 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4032 | .byte 76,139,16 // mov (%rax),%r10 |
| 4033 | .byte 72,133,201 // test %rcx,%rcx |
| 4034 | .byte 15,133,250,0,0,0 // jne 7ba <_sk_lerp_565_avx+0x108> |
| 4035 | .byte 196,65,122,111,4,122 // vmovdqu (%r10,%rdi,2),%xmm8 |
| 4036 | .byte 197,225,239,219 // vpxor %xmm3,%xmm3,%xmm3 |
| 4037 | .byte 197,185,105,219 // vpunpckhwd %xmm3,%xmm8,%xmm3 |
| 4038 | .byte 196,66,121,51,192 // vpmovzxwd %xmm8,%xmm8 |
| 4039 | .byte 196,99,61,24,195,1 // vinsertf128 $0x1,%xmm3,%ymm8,%ymm8 |
| 4040 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 4041 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4042 | .byte 197,249,112,219,0 // vpshufd $0x0,%xmm3,%xmm3 |
| 4043 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4044 | .byte 196,193,100,84,216 // vandps %ymm8,%ymm3,%ymm3 |
| 4045 | .byte 197,124,91,203 // vcvtdq2ps %ymm3,%ymm9 |
| 4046 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 4047 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4048 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4049 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4050 | .byte 197,52,89,203 // vmulps %ymm3,%ymm9,%ymm9 |
| 4051 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 4052 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4053 | .byte 197,249,112,219,0 // vpshufd $0x0,%xmm3,%xmm3 |
| 4054 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4055 | .byte 196,193,100,84,216 // vandps %ymm8,%ymm3,%ymm3 |
| 4056 | .byte 197,124,91,211 // vcvtdq2ps %ymm3,%ymm10 |
| 4057 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 4058 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4059 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4060 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4061 | .byte 197,44,89,211 // vmulps %ymm3,%ymm10,%ymm10 |
| 4062 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 4063 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4064 | .byte 197,249,112,219,0 // vpshufd $0x0,%xmm3,%xmm3 |
| 4065 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4066 | .byte 196,193,100,84,216 // vandps %ymm8,%ymm3,%ymm3 |
| 4067 | .byte 197,124,91,195 // vcvtdq2ps %ymm3,%ymm8 |
| 4068 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 4069 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4070 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4071 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4072 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 4073 | .byte 197,252,92,196 // vsubps %ymm4,%ymm0,%ymm0 |
| 4074 | .byte 196,193,124,89,193 // vmulps %ymm9,%ymm0,%ymm0 |
| 4075 | .byte 197,252,88,196 // vaddps %ymm4,%ymm0,%ymm0 |
| 4076 | .byte 197,244,92,205 // vsubps %ymm5,%ymm1,%ymm1 |
| 4077 | .byte 196,193,116,89,202 // vmulps %ymm10,%ymm1,%ymm1 |
| 4078 | .byte 197,244,88,205 // vaddps %ymm5,%ymm1,%ymm1 |
| 4079 | .byte 197,236,92,214 // vsubps %ymm6,%ymm2,%ymm2 |
| 4080 | .byte 197,236,89,211 // vmulps %ymm3,%ymm2,%ymm2 |
| 4081 | .byte 197,236,88,214 // vaddps %ymm6,%ymm2,%ymm2 |
| 4082 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 4083 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4084 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4085 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4086 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4087 | .byte 255,224 // jmpq *%rax |
| 4088 | .byte 65,137,200 // mov %ecx,%r8d |
| 4089 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4090 | .byte 196,65,57,239,192 // vpxor %xmm8,%xmm8,%xmm8 |
| 4091 | .byte 65,254,200 // dec %r8b |
| 4092 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4093 | .byte 15,135,243,254,255,255 // ja 6c6 <_sk_lerp_565_avx+0x14> |
| 4094 | .byte 69,15,182,192 // movzbl %r8b,%r8d |
| 4095 | .byte 76,141,13,74,0,0,0 // lea 0x4a(%rip),%r9 # 828 <_sk_lerp_565_avx+0x176> |
| 4096 | .byte 75,99,4,129 // movslq (%r9,%r8,4),%rax |
| 4097 | .byte 76,1,200 // add %r9,%rax |
| 4098 | .byte 255,224 // jmpq *%rax |
| 4099 | .byte 197,225,239,219 // vpxor %xmm3,%xmm3,%xmm3 |
| 4100 | .byte 196,65,97,196,68,122,12,6 // vpinsrw $0x6,0xc(%r10,%rdi,2),%xmm3,%xmm8 |
| 4101 | .byte 196,65,57,196,68,122,10,5 // vpinsrw $0x5,0xa(%r10,%rdi,2),%xmm8,%xmm8 |
| 4102 | .byte 196,65,57,196,68,122,8,4 // vpinsrw $0x4,0x8(%r10,%rdi,2),%xmm8,%xmm8 |
| 4103 | .byte 196,65,57,196,68,122,6,3 // vpinsrw $0x3,0x6(%r10,%rdi,2),%xmm8,%xmm8 |
| 4104 | .byte 196,65,57,196,68,122,4,2 // vpinsrw $0x2,0x4(%r10,%rdi,2),%xmm8,%xmm8 |
| 4105 | .byte 196,65,57,196,68,122,2,1 // vpinsrw $0x1,0x2(%r10,%rdi,2),%xmm8,%xmm8 |
| 4106 | .byte 196,65,57,196,4,122,0 // vpinsrw $0x0,(%r10,%rdi,2),%xmm8,%xmm8 |
| 4107 | .byte 233,159,254,255,255 // jmpq 6c6 <_sk_lerp_565_avx+0x14> |
| 4108 | .byte 144 // nop |
| 4109 | .byte 243,255 // repz (bad) |
| 4110 | .byte 255 // (bad) |
| 4111 | .byte 255 // (bad) |
| 4112 | .byte 235,255 // jmp 82d <_sk_lerp_565_avx+0x17b> |
| 4113 | .byte 255 // (bad) |
| 4114 | .byte 255,227 // jmpq *%rbx |
| 4115 | .byte 255 // (bad) |
| 4116 | .byte 255 // (bad) |
| 4117 | .byte 255 // (bad) |
| 4118 | .byte 219,255 // (bad) |
| 4119 | .byte 255 // (bad) |
| 4120 | .byte 255,211 // callq *%rbx |
| 4121 | .byte 255 // (bad) |
| 4122 | .byte 255 // (bad) |
| 4123 | .byte 255,203 // dec %ebx |
| 4124 | .byte 255 // (bad) |
| 4125 | .byte 255 // (bad) |
| 4126 | .byte 255 // (bad) |
| 4127 | .byte 191 // .byte 0xbf |
| 4128 | .byte 255 // (bad) |
| 4129 | .byte 255 // (bad) |
| 4130 | .byte 255 // .byte 0xff |
| 4131 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4132 | HIDDEN _sk_load_tables_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4133 | .globl _sk_load_tables_avx |
| 4134 | _sk_load_tables_avx: |
| 4135 | .byte 85 // push %rbp |
| 4136 | .byte 65,87 // push %r15 |
| 4137 | .byte 65,86 // push %r14 |
| 4138 | .byte 65,85 // push %r13 |
| 4139 | .byte 65,84 // push %r12 |
| 4140 | .byte 83 // push %rbx |
| 4141 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4142 | .byte 76,139,0 // mov (%rax),%r8 |
| 4143 | .byte 72,133,201 // test %rcx,%rcx |
| 4144 | .byte 15,133,56,2,0,0 // jne a94 <_sk_load_tables_avx+0x250> |
| 4145 | .byte 196,65,124,16,4,184 // vmovups (%r8,%rdi,4),%ymm8 |
| 4146 | .byte 187,255,0,0,0 // mov $0xff,%ebx |
| 4147 | .byte 197,249,110,195 // vmovd %ebx,%xmm0 |
| 4148 | .byte 197,249,112,192,0 // vpshufd $0x0,%xmm0,%xmm0 |
| 4149 | .byte 196,99,125,24,200,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm9 |
| 4150 | .byte 196,193,52,84,192 // vandps %ymm8,%ymm9,%ymm0 |
| 4151 | .byte 196,193,249,126,193 // vmovq %xmm0,%r9 |
| 4152 | .byte 69,137,203 // mov %r9d,%r11d |
| 4153 | .byte 196,195,249,22,194,1 // vpextrq $0x1,%xmm0,%r10 |
| 4154 | .byte 69,137,214 // mov %r10d,%r14d |
| 4155 | .byte 73,193,234,32 // shr $0x20,%r10 |
| 4156 | .byte 73,193,233,32 // shr $0x20,%r9 |
| 4157 | .byte 196,227,125,25,192,1 // vextractf128 $0x1,%ymm0,%xmm0 |
| 4158 | .byte 196,193,249,126,196 // vmovq %xmm0,%r12 |
| 4159 | .byte 69,137,231 // mov %r12d,%r15d |
| 4160 | .byte 196,227,249,22,195,1 // vpextrq $0x1,%xmm0,%rbx |
| 4161 | .byte 65,137,221 // mov %ebx,%r13d |
| 4162 | .byte 72,193,235,32 // shr $0x20,%rbx |
| 4163 | .byte 73,193,236,32 // shr $0x20,%r12 |
| 4164 | .byte 72,139,104,8 // mov 0x8(%rax),%rbp |
| 4165 | .byte 76,139,64,16 // mov 0x10(%rax),%r8 |
| 4166 | .byte 196,161,122,16,68,189,0 // vmovss 0x0(%rbp,%r15,4),%xmm0 |
| 4167 | .byte 196,163,121,33,68,165,0,16 // vinsertps $0x10,0x0(%rbp,%r12,4),%xmm0,%xmm0 |
| 4168 | .byte 196,161,122,16,76,173,0 // vmovss 0x0(%rbp,%r13,4),%xmm1 |
| 4169 | .byte 196,227,121,33,193,32 // vinsertps $0x20,%xmm1,%xmm0,%xmm0 |
| 4170 | .byte 197,250,16,76,157,0 // vmovss 0x0(%rbp,%rbx,4),%xmm1 |
| 4171 | .byte 196,227,121,33,193,48 // vinsertps $0x30,%xmm1,%xmm0,%xmm0 |
| 4172 | .byte 196,161,122,16,76,157,0 // vmovss 0x0(%rbp,%r11,4),%xmm1 |
| 4173 | .byte 196,163,113,33,76,141,0,16 // vinsertps $0x10,0x0(%rbp,%r9,4),%xmm1,%xmm1 |
| 4174 | .byte 196,161,122,16,92,181,0 // vmovss 0x0(%rbp,%r14,4),%xmm3 |
| 4175 | .byte 196,227,113,33,203,32 // vinsertps $0x20,%xmm3,%xmm1,%xmm1 |
| 4176 | .byte 196,161,122,16,92,149,0 // vmovss 0x0(%rbp,%r10,4),%xmm3 |
| 4177 | .byte 196,227,113,33,203,48 // vinsertps $0x30,%xmm3,%xmm1,%xmm1 |
| 4178 | .byte 196,227,117,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm1,%ymm0 |
| 4179 | .byte 196,193,113,114,208,8 // vpsrld $0x8,%xmm8,%xmm1 |
| 4180 | .byte 196,67,125,25,194,1 // vextractf128 $0x1,%ymm8,%xmm10 |
| 4181 | .byte 196,193,105,114,210,8 // vpsrld $0x8,%xmm10,%xmm2 |
| 4182 | .byte 196,227,117,24,202,1 // vinsertf128 $0x1,%xmm2,%ymm1,%ymm1 |
| 4183 | .byte 197,180,84,201 // vandps %ymm1,%ymm9,%ymm1 |
| 4184 | .byte 196,193,249,126,201 // vmovq %xmm1,%r9 |
| 4185 | .byte 69,137,203 // mov %r9d,%r11d |
| 4186 | .byte 196,195,249,22,202,1 // vpextrq $0x1,%xmm1,%r10 |
| 4187 | .byte 69,137,214 // mov %r10d,%r14d |
| 4188 | .byte 73,193,234,32 // shr $0x20,%r10 |
| 4189 | .byte 73,193,233,32 // shr $0x20,%r9 |
| 4190 | .byte 196,227,125,25,201,1 // vextractf128 $0x1,%ymm1,%xmm1 |
| 4191 | .byte 196,225,249,126,205 // vmovq %xmm1,%rbp |
| 4192 | .byte 65,137,239 // mov %ebp,%r15d |
| 4193 | .byte 196,227,249,22,203,1 // vpextrq $0x1,%xmm1,%rbx |
| 4194 | .byte 65,137,220 // mov %ebx,%r12d |
| 4195 | .byte 72,193,235,32 // shr $0x20,%rbx |
| 4196 | .byte 72,193,237,32 // shr $0x20,%rbp |
| 4197 | .byte 196,129,122,16,12,184 // vmovss (%r8,%r15,4),%xmm1 |
| 4198 | .byte 196,195,113,33,12,168,16 // vinsertps $0x10,(%r8,%rbp,4),%xmm1,%xmm1 |
| 4199 | .byte 196,129,122,16,20,160 // vmovss (%r8,%r12,4),%xmm2 |
| 4200 | .byte 196,227,113,33,202,32 // vinsertps $0x20,%xmm2,%xmm1,%xmm1 |
| 4201 | .byte 196,193,122,16,20,152 // vmovss (%r8,%rbx,4),%xmm2 |
| 4202 | .byte 196,227,113,33,202,48 // vinsertps $0x30,%xmm2,%xmm1,%xmm1 |
| 4203 | .byte 196,129,122,16,20,152 // vmovss (%r8,%r11,4),%xmm2 |
| 4204 | .byte 196,131,105,33,20,136,16 // vinsertps $0x10,(%r8,%r9,4),%xmm2,%xmm2 |
| 4205 | .byte 196,129,122,16,28,176 // vmovss (%r8,%r14,4),%xmm3 |
| 4206 | .byte 196,227,105,33,211,32 // vinsertps $0x20,%xmm3,%xmm2,%xmm2 |
| 4207 | .byte 196,129,122,16,28,144 // vmovss (%r8,%r10,4),%xmm3 |
| 4208 | .byte 196,227,105,33,211,48 // vinsertps $0x30,%xmm3,%xmm2,%xmm2 |
| 4209 | .byte 196,227,109,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm2,%ymm1 |
| 4210 | .byte 72,139,64,24 // mov 0x18(%rax),%rax |
| 4211 | .byte 196,193,105,114,208,16 // vpsrld $0x10,%xmm8,%xmm2 |
| 4212 | .byte 196,193,97,114,210,16 // vpsrld $0x10,%xmm10,%xmm3 |
| 4213 | .byte 196,227,109,24,211,1 // vinsertf128 $0x1,%xmm3,%ymm2,%ymm2 |
| 4214 | .byte 197,180,84,210 // vandps %ymm2,%ymm9,%ymm2 |
| 4215 | .byte 196,193,249,126,208 // vmovq %xmm2,%r8 |
| 4216 | .byte 69,137,194 // mov %r8d,%r10d |
| 4217 | .byte 196,195,249,22,209,1 // vpextrq $0x1,%xmm2,%r9 |
| 4218 | .byte 69,137,203 // mov %r9d,%r11d |
| 4219 | .byte 73,193,233,32 // shr $0x20,%r9 |
| 4220 | .byte 73,193,232,32 // shr $0x20,%r8 |
| 4221 | .byte 196,227,125,25,210,1 // vextractf128 $0x1,%ymm2,%xmm2 |
| 4222 | .byte 196,225,249,126,213 // vmovq %xmm2,%rbp |
| 4223 | .byte 65,137,238 // mov %ebp,%r14d |
| 4224 | .byte 196,227,249,22,211,1 // vpextrq $0x1,%xmm2,%rbx |
| 4225 | .byte 65,137,223 // mov %ebx,%r15d |
| 4226 | .byte 72,193,235,32 // shr $0x20,%rbx |
| 4227 | .byte 72,193,237,32 // shr $0x20,%rbp |
| 4228 | .byte 196,161,122,16,20,176 // vmovss (%rax,%r14,4),%xmm2 |
| 4229 | .byte 196,227,105,33,20,168,16 // vinsertps $0x10,(%rax,%rbp,4),%xmm2,%xmm2 |
| 4230 | .byte 196,161,122,16,28,184 // vmovss (%rax,%r15,4),%xmm3 |
| 4231 | .byte 196,227,105,33,211,32 // vinsertps $0x20,%xmm3,%xmm2,%xmm2 |
| 4232 | .byte 197,250,16,28,152 // vmovss (%rax,%rbx,4),%xmm3 |
| 4233 | .byte 196,99,105,33,203,48 // vinsertps $0x30,%xmm3,%xmm2,%xmm9 |
| 4234 | .byte 196,161,122,16,28,144 // vmovss (%rax,%r10,4),%xmm3 |
| 4235 | .byte 196,163,97,33,28,128,16 // vinsertps $0x10,(%rax,%r8,4),%xmm3,%xmm3 |
| 4236 | .byte 196,161,122,16,20,152 // vmovss (%rax,%r11,4),%xmm2 |
| 4237 | .byte 196,227,97,33,210,32 // vinsertps $0x20,%xmm2,%xmm3,%xmm2 |
| 4238 | .byte 196,161,122,16,28,136 // vmovss (%rax,%r9,4),%xmm3 |
| 4239 | .byte 196,227,105,33,211,48 // vinsertps $0x30,%xmm3,%xmm2,%xmm2 |
| 4240 | .byte 196,195,109,24,209,1 // vinsertf128 $0x1,%xmm9,%ymm2,%ymm2 |
| 4241 | .byte 196,193,57,114,208,24 // vpsrld $0x18,%xmm8,%xmm8 |
| 4242 | .byte 196,193,97,114,210,24 // vpsrld $0x18,%xmm10,%xmm3 |
| 4243 | .byte 196,227,61,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm8,%ymm3 |
| 4244 | .byte 197,124,91,195 // vcvtdq2ps %ymm3,%ymm8 |
| 4245 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 4246 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4247 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4248 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4249 | .byte 197,188,89,219 // vmulps %ymm3,%ymm8,%ymm3 |
| 4250 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4251 | .byte 91 // pop %rbx |
| 4252 | .byte 65,92 // pop %r12 |
| 4253 | .byte 65,93 // pop %r13 |
| 4254 | .byte 65,94 // pop %r14 |
| 4255 | .byte 65,95 // pop %r15 |
| 4256 | .byte 93 // pop %rbp |
| 4257 | .byte 255,224 // jmpq *%rax |
| 4258 | .byte 137,203 // mov %ecx,%ebx |
| 4259 | .byte 128,227,7 // and $0x7,%bl |
| 4260 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 4261 | .byte 254,203 // dec %bl |
| 4262 | .byte 128,251,6 // cmp $0x6,%bl |
| 4263 | .byte 15,135,185,253,255,255 // ja 862 <_sk_load_tables_avx+0x1e> |
| 4264 | .byte 15,182,219 // movzbl %bl,%ebx |
| 4265 | .byte 76,141,13,137,0,0,0 // lea 0x89(%rip),%r9 # b3c <_sk_load_tables_avx+0x2f8> |
| 4266 | .byte 73,99,28,153 // movslq (%r9,%rbx,4),%rbx |
| 4267 | .byte 76,1,203 // add %r9,%rbx |
| 4268 | .byte 255,227 // jmpq *%rbx |
| 4269 | .byte 196,193,121,110,68,184,24 // vmovd 0x18(%r8,%rdi,4),%xmm0 |
| 4270 | .byte 197,249,112,192,68 // vpshufd $0x44,%xmm0,%xmm0 |
| 4271 | .byte 196,227,125,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm0 |
| 4272 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 4273 | .byte 196,99,117,12,192,64 // vblendps $0x40,%ymm0,%ymm1,%ymm8 |
| 4274 | .byte 196,99,125,25,192,1 // vextractf128 $0x1,%ymm8,%xmm0 |
| 4275 | .byte 196,195,121,34,68,184,20,1 // vpinsrd $0x1,0x14(%r8,%rdi,4),%xmm0,%xmm0 |
| 4276 | .byte 196,99,61,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm8,%ymm8 |
| 4277 | .byte 196,99,125,25,192,1 // vextractf128 $0x1,%ymm8,%xmm0 |
| 4278 | .byte 196,195,121,34,68,184,16,0 // vpinsrd $0x0,0x10(%r8,%rdi,4),%xmm0,%xmm0 |
| 4279 | .byte 196,99,61,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm8,%ymm8 |
| 4280 | .byte 196,195,57,34,68,184,12,3 // vpinsrd $0x3,0xc(%r8,%rdi,4),%xmm8,%xmm0 |
| 4281 | .byte 196,99,61,12,192,15 // vblendps $0xf,%ymm0,%ymm8,%ymm8 |
| 4282 | .byte 196,195,57,34,68,184,8,2 // vpinsrd $0x2,0x8(%r8,%rdi,4),%xmm8,%xmm0 |
| 4283 | .byte 196,99,61,12,192,15 // vblendps $0xf,%ymm0,%ymm8,%ymm8 |
| 4284 | .byte 196,195,57,34,68,184,4,1 // vpinsrd $0x1,0x4(%r8,%rdi,4),%xmm8,%xmm0 |
| 4285 | .byte 196,99,61,12,192,15 // vblendps $0xf,%ymm0,%ymm8,%ymm8 |
| 4286 | .byte 196,195,57,34,4,184,0 // vpinsrd $0x0,(%r8,%rdi,4),%xmm8,%xmm0 |
| 4287 | .byte 196,99,61,12,192,15 // vblendps $0xf,%ymm0,%ymm8,%ymm8 |
| 4288 | .byte 233,38,253,255,255 // jmpq 862 <_sk_load_tables_avx+0x1e> |
| 4289 | .byte 238 // out %al,(%dx) |
| 4290 | .byte 255 // (bad) |
| 4291 | .byte 255 // (bad) |
| 4292 | .byte 255,224 // jmpq *%rax |
| 4293 | .byte 255 // (bad) |
| 4294 | .byte 255 // (bad) |
| 4295 | .byte 255,210 // callq *%rdx |
| 4296 | .byte 255 // (bad) |
| 4297 | .byte 255 // (bad) |
| 4298 | .byte 255,196 // inc %esp |
| 4299 | .byte 255 // (bad) |
| 4300 | .byte 255 // (bad) |
| 4301 | .byte 255,176,255,255,255,156 // pushq -0x63000001(%rax) |
| 4302 | .byte 255 // (bad) |
| 4303 | .byte 255 // (bad) |
| 4304 | .byte 255 // .byte 0xff |
| 4305 | .byte 128,255,255 // cmp $0xff,%bh |
| 4306 | .byte 255 // .byte 0xff |
| 4307 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4308 | HIDDEN _sk_load_a8_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4309 | .globl _sk_load_a8_avx |
| 4310 | _sk_load_a8_avx: |
| 4311 | .byte 73,137,200 // mov %rcx,%r8 |
| 4312 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4313 | .byte 72,139,0 // mov (%rax),%rax |
| 4314 | .byte 72,1,248 // add %rdi,%rax |
| 4315 | .byte 77,133,192 // test %r8,%r8 |
| 4316 | .byte 117,74 // jne bb2 <_sk_load_a8_avx+0x5a> |
| 4317 | .byte 197,250,126,0 // vmovq (%rax),%xmm0 |
| 4318 | .byte 196,226,121,49,200 // vpmovzxbd %xmm0,%xmm1 |
| 4319 | .byte 196,227,121,4,192,229 // vpermilps $0xe5,%xmm0,%xmm0 |
| 4320 | .byte 196,226,121,49,192 // vpmovzxbd %xmm0,%xmm0 |
| 4321 | .byte 196,227,117,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm1,%ymm0 |
| 4322 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 4323 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 4324 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 4325 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 4326 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 4327 | .byte 197,252,89,217 // vmulps %ymm1,%ymm0,%ymm3 |
| 4328 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4329 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 4330 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 4331 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 4332 | .byte 76,137,193 // mov %r8,%rcx |
| 4333 | .byte 255,224 // jmpq *%rax |
| 4334 | .byte 49,201 // xor %ecx,%ecx |
| 4335 | .byte 77,137,194 // mov %r8,%r10 |
| 4336 | .byte 69,49,201 // xor %r9d,%r9d |
| 4337 | .byte 68,15,182,24 // movzbl (%rax),%r11d |
| 4338 | .byte 72,255,192 // inc %rax |
| 4339 | .byte 73,211,227 // shl %cl,%r11 |
| 4340 | .byte 77,9,217 // or %r11,%r9 |
| 4341 | .byte 72,131,193,8 // add $0x8,%rcx |
| 4342 | .byte 73,255,202 // dec %r10 |
| 4343 | .byte 117,234 // jne bba <_sk_load_a8_avx+0x62> |
| 4344 | .byte 196,193,249,110,193 // vmovq %r9,%xmm0 |
| 4345 | .byte 235,149 // jmp b6c <_sk_load_a8_avx+0x14> |
| 4346 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4347 | HIDDEN _sk_store_a8_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4348 | .globl _sk_store_a8_avx |
| 4349 | _sk_store_a8_avx: |
| 4350 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4351 | .byte 76,139,8 // mov (%rax),%r9 |
| 4352 | .byte 184,0,0,127,67 // mov $0x437f0000,%eax |
| 4353 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 4354 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 4355 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 4356 | .byte 197,60,89,195 // vmulps %ymm3,%ymm8,%ymm8 |
| 4357 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 4358 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 4359 | .byte 196,66,57,43,193 // vpackusdw %xmm9,%xmm8,%xmm8 |
| 4360 | .byte 196,65,57,103,192 // vpackuswb %xmm8,%xmm8,%xmm8 |
| 4361 | .byte 72,133,201 // test %rcx,%rcx |
| 4362 | .byte 117,10 // jne c19 <_sk_store_a8_avx+0x42> |
| 4363 | .byte 196,65,123,17,4,57 // vmovsd %xmm8,(%r9,%rdi,1) |
| 4364 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4365 | .byte 255,224 // jmpq *%rax |
| 4366 | .byte 65,137,200 // mov %ecx,%r8d |
| 4367 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4368 | .byte 65,254,200 // dec %r8b |
| 4369 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4370 | .byte 119,236 // ja c15 <_sk_store_a8_avx+0x3e> |
| 4371 | .byte 196,66,121,48,192 // vpmovzxbw %xmm8,%xmm8 |
| 4372 | .byte 65,15,182,192 // movzbl %r8b,%eax |
| 4373 | .byte 76,141,5,67,0,0,0 // lea 0x43(%rip),%r8 # c7c <_sk_store_a8_avx+0xa5> |
| 4374 | .byte 73,99,4,128 // movslq (%r8,%rax,4),%rax |
| 4375 | .byte 76,1,192 // add %r8,%rax |
| 4376 | .byte 255,224 // jmpq *%rax |
| 4377 | .byte 196,67,121,20,68,57,6,12 // vpextrb $0xc,%xmm8,0x6(%r9,%rdi,1) |
| 4378 | .byte 196,67,121,20,68,57,5,10 // vpextrb $0xa,%xmm8,0x5(%r9,%rdi,1) |
| 4379 | .byte 196,67,121,20,68,57,4,8 // vpextrb $0x8,%xmm8,0x4(%r9,%rdi,1) |
| 4380 | .byte 196,67,121,20,68,57,3,6 // vpextrb $0x6,%xmm8,0x3(%r9,%rdi,1) |
| 4381 | .byte 196,67,121,20,68,57,2,4 // vpextrb $0x4,%xmm8,0x2(%r9,%rdi,1) |
| 4382 | .byte 196,67,121,20,68,57,1,2 // vpextrb $0x2,%xmm8,0x1(%r9,%rdi,1) |
| 4383 | .byte 196,67,121,20,4,57,0 // vpextrb $0x0,%xmm8,(%r9,%rdi,1) |
| 4384 | .byte 235,154 // jmp c15 <_sk_store_a8_avx+0x3e> |
| 4385 | .byte 144 // nop |
| 4386 | .byte 246,255 // idiv %bh |
| 4387 | .byte 255 // (bad) |
| 4388 | .byte 255 // (bad) |
| 4389 | .byte 238 // out %al,(%dx) |
| 4390 | .byte 255 // (bad) |
| 4391 | .byte 255 // (bad) |
| 4392 | .byte 255,230 // jmpq *%rsi |
| 4393 | .byte 255 // (bad) |
| 4394 | .byte 255 // (bad) |
| 4395 | .byte 255 // (bad) |
| 4396 | .byte 222,255 // fdivrp %st,%st(7) |
| 4397 | .byte 255 // (bad) |
| 4398 | .byte 255,214 // callq *%rsi |
| 4399 | .byte 255 // (bad) |
| 4400 | .byte 255 // (bad) |
| 4401 | .byte 255,206 // dec %esi |
| 4402 | .byte 255 // (bad) |
| 4403 | .byte 255 // (bad) |
| 4404 | .byte 255,198 // inc %esi |
| 4405 | .byte 255 // (bad) |
| 4406 | .byte 255 // (bad) |
| 4407 | .byte 255 // .byte 0xff |
| 4408 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4409 | HIDDEN _sk_load_565_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4410 | .globl _sk_load_565_avx |
| 4411 | _sk_load_565_avx: |
| 4412 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4413 | .byte 76,139,16 // mov (%rax),%r10 |
| 4414 | .byte 72,133,201 // test %rcx,%rcx |
| 4415 | .byte 15,133,209,0,0,0 // jne d77 <_sk_load_565_avx+0xdf> |
| 4416 | .byte 196,193,122,111,4,122 // vmovdqu (%r10,%rdi,2),%xmm0 |
| 4417 | .byte 197,241,239,201 // vpxor %xmm1,%xmm1,%xmm1 |
| 4418 | .byte 197,249,105,201 // vpunpckhwd %xmm1,%xmm0,%xmm1 |
| 4419 | .byte 196,226,121,51,192 // vpmovzxwd %xmm0,%xmm0 |
| 4420 | .byte 196,227,125,24,209,1 // vinsertf128 $0x1,%xmm1,%ymm0,%ymm2 |
| 4421 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 4422 | .byte 197,249,110,192 // vmovd %eax,%xmm0 |
| 4423 | .byte 197,249,112,192,0 // vpshufd $0x0,%xmm0,%xmm0 |
| 4424 | .byte 196,227,125,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm0 |
| 4425 | .byte 197,252,84,194 // vandps %ymm2,%ymm0,%ymm0 |
| 4426 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 4427 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 4428 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 4429 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 4430 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 4431 | .byte 197,252,89,193 // vmulps %ymm1,%ymm0,%ymm0 |
| 4432 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 4433 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 4434 | .byte 197,249,112,201,0 // vpshufd $0x0,%xmm1,%xmm1 |
| 4435 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 4436 | .byte 197,244,84,202 // vandps %ymm2,%ymm1,%ymm1 |
| 4437 | .byte 197,252,91,201 // vcvtdq2ps %ymm1,%ymm1 |
| 4438 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 4439 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4440 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4441 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4442 | .byte 197,244,89,203 // vmulps %ymm3,%ymm1,%ymm1 |
| 4443 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 4444 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4445 | .byte 197,249,112,219,0 // vpshufd $0x0,%xmm3,%xmm3 |
| 4446 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4447 | .byte 197,228,84,210 // vandps %ymm2,%ymm3,%ymm2 |
| 4448 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 4449 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 4450 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4451 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4452 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4453 | .byte 197,236,89,211 // vmulps %ymm3,%ymm2,%ymm2 |
| 4454 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 4455 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4456 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 4457 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 4458 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4459 | .byte 255,224 // jmpq *%rax |
| 4460 | .byte 65,137,200 // mov %ecx,%r8d |
| 4461 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4462 | .byte 197,249,239,192 // vpxor %xmm0,%xmm0,%xmm0 |
| 4463 | .byte 65,254,200 // dec %r8b |
| 4464 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4465 | .byte 15,135,29,255,255,255 // ja cac <_sk_load_565_avx+0x14> |
| 4466 | .byte 69,15,182,192 // movzbl %r8b,%r8d |
| 4467 | .byte 76,141,13,74,0,0,0 // lea 0x4a(%rip),%r9 # de4 <_sk_load_565_avx+0x14c> |
| 4468 | .byte 75,99,4,129 // movslq (%r9,%r8,4),%rax |
| 4469 | .byte 76,1,200 // add %r9,%rax |
| 4470 | .byte 255,224 // jmpq *%rax |
| 4471 | .byte 197,249,239,192 // vpxor %xmm0,%xmm0,%xmm0 |
| 4472 | .byte 196,193,121,196,68,122,12,6 // vpinsrw $0x6,0xc(%r10,%rdi,2),%xmm0,%xmm0 |
| 4473 | .byte 196,193,121,196,68,122,10,5 // vpinsrw $0x5,0xa(%r10,%rdi,2),%xmm0,%xmm0 |
| 4474 | .byte 196,193,121,196,68,122,8,4 // vpinsrw $0x4,0x8(%r10,%rdi,2),%xmm0,%xmm0 |
| 4475 | .byte 196,193,121,196,68,122,6,3 // vpinsrw $0x3,0x6(%r10,%rdi,2),%xmm0,%xmm0 |
| 4476 | .byte 196,193,121,196,68,122,4,2 // vpinsrw $0x2,0x4(%r10,%rdi,2),%xmm0,%xmm0 |
| 4477 | .byte 196,193,121,196,68,122,2,1 // vpinsrw $0x1,0x2(%r10,%rdi,2),%xmm0,%xmm0 |
| 4478 | .byte 196,193,121,196,4,122,0 // vpinsrw $0x0,(%r10,%rdi,2),%xmm0,%xmm0 |
| 4479 | .byte 233,201,254,255,255 // jmpq cac <_sk_load_565_avx+0x14> |
| 4480 | .byte 144 // nop |
| 4481 | .byte 243,255 // repz (bad) |
| 4482 | .byte 255 // (bad) |
| 4483 | .byte 255 // (bad) |
| 4484 | .byte 235,255 // jmp de9 <_sk_load_565_avx+0x151> |
| 4485 | .byte 255 // (bad) |
| 4486 | .byte 255,227 // jmpq *%rbx |
| 4487 | .byte 255 // (bad) |
| 4488 | .byte 255 // (bad) |
| 4489 | .byte 255 // (bad) |
| 4490 | .byte 219,255 // (bad) |
| 4491 | .byte 255 // (bad) |
| 4492 | .byte 255,211 // callq *%rbx |
| 4493 | .byte 255 // (bad) |
| 4494 | .byte 255 // (bad) |
| 4495 | .byte 255,203 // dec %ebx |
| 4496 | .byte 255 // (bad) |
| 4497 | .byte 255 // (bad) |
| 4498 | .byte 255 // (bad) |
| 4499 | .byte 191 // .byte 0xbf |
| 4500 | .byte 255 // (bad) |
| 4501 | .byte 255 // (bad) |
| 4502 | .byte 255 // .byte 0xff |
| 4503 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4504 | HIDDEN _sk_store_565_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4505 | .globl _sk_store_565_avx |
| 4506 | _sk_store_565_avx: |
| 4507 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4508 | .byte 76,139,8 // mov (%rax),%r9 |
| 4509 | .byte 184,0,0,248,65 // mov $0x41f80000,%eax |
| 4510 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 4511 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 4512 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 4513 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 4514 | .byte 196,65,125,91,201 // vcvtps2dq %ymm9,%ymm9 |
| 4515 | .byte 196,193,41,114,241,11 // vpslld $0xb,%xmm9,%xmm10 |
| 4516 | .byte 196,67,125,25,201,1 // vextractf128 $0x1,%ymm9,%xmm9 |
| 4517 | .byte 196,193,49,114,241,11 // vpslld $0xb,%xmm9,%xmm9 |
| 4518 | .byte 196,67,45,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm10,%ymm9 |
| 4519 | .byte 184,0,0,124,66 // mov $0x427c0000,%eax |
| 4520 | .byte 197,121,110,208 // vmovd %eax,%xmm10 |
| 4521 | .byte 196,67,121,4,210,0 // vpermilps $0x0,%xmm10,%xmm10 |
| 4522 | .byte 196,67,45,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm10,%ymm10 |
| 4523 | .byte 197,44,89,209 // vmulps %ymm1,%ymm10,%ymm10 |
| 4524 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 4525 | .byte 196,193,33,114,242,5 // vpslld $0x5,%xmm10,%xmm11 |
| 4526 | .byte 196,67,125,25,210,1 // vextractf128 $0x1,%ymm10,%xmm10 |
| 4527 | .byte 196,193,41,114,242,5 // vpslld $0x5,%xmm10,%xmm10 |
| 4528 | .byte 196,67,37,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm11,%ymm10 |
| 4529 | .byte 196,65,45,86,201 // vorpd %ymm9,%ymm10,%ymm9 |
| 4530 | .byte 197,60,89,194 // vmulps %ymm2,%ymm8,%ymm8 |
| 4531 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 4532 | .byte 196,65,53,86,192 // vorpd %ymm8,%ymm9,%ymm8 |
| 4533 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 4534 | .byte 196,66,57,43,193 // vpackusdw %xmm9,%xmm8,%xmm8 |
| 4535 | .byte 72,133,201 // test %rcx,%rcx |
| 4536 | .byte 117,10 // jne e9e <_sk_store_565_avx+0x9e> |
| 4537 | .byte 196,65,122,127,4,121 // vmovdqu %xmm8,(%r9,%rdi,2) |
| 4538 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4539 | .byte 255,224 // jmpq *%rax |
| 4540 | .byte 65,137,200 // mov %ecx,%r8d |
| 4541 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4542 | .byte 65,254,200 // dec %r8b |
| 4543 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4544 | .byte 119,236 // ja e9a <_sk_store_565_avx+0x9a> |
| 4545 | .byte 65,15,182,192 // movzbl %r8b,%eax |
| 4546 | .byte 76,141,5,67,0,0,0 // lea 0x43(%rip),%r8 # efc <_sk_store_565_avx+0xfc> |
| 4547 | .byte 73,99,4,128 // movslq (%r8,%rax,4),%rax |
| 4548 | .byte 76,1,192 // add %r8,%rax |
| 4549 | .byte 255,224 // jmpq *%rax |
| 4550 | .byte 196,67,121,21,68,121,12,6 // vpextrw $0x6,%xmm8,0xc(%r9,%rdi,2) |
| 4551 | .byte 196,67,121,21,68,121,10,5 // vpextrw $0x5,%xmm8,0xa(%r9,%rdi,2) |
| 4552 | .byte 196,67,121,21,68,121,8,4 // vpextrw $0x4,%xmm8,0x8(%r9,%rdi,2) |
| 4553 | .byte 196,67,121,21,68,121,6,3 // vpextrw $0x3,%xmm8,0x6(%r9,%rdi,2) |
| 4554 | .byte 196,67,121,21,68,121,4,2 // vpextrw $0x2,%xmm8,0x4(%r9,%rdi,2) |
| 4555 | .byte 196,67,121,21,68,121,2,1 // vpextrw $0x1,%xmm8,0x2(%r9,%rdi,2) |
| 4556 | .byte 196,67,121,21,4,121,0 // vpextrw $0x0,%xmm8,(%r9,%rdi,2) |
| 4557 | .byte 235,159 // jmp e9a <_sk_store_565_avx+0x9a> |
| 4558 | .byte 144 // nop |
| 4559 | .byte 246,255 // idiv %bh |
| 4560 | .byte 255 // (bad) |
| 4561 | .byte 255 // (bad) |
| 4562 | .byte 238 // out %al,(%dx) |
| 4563 | .byte 255 // (bad) |
| 4564 | .byte 255 // (bad) |
| 4565 | .byte 255,230 // jmpq *%rsi |
| 4566 | .byte 255 // (bad) |
| 4567 | .byte 255 // (bad) |
| 4568 | .byte 255 // (bad) |
| 4569 | .byte 222,255 // fdivrp %st,%st(7) |
| 4570 | .byte 255 // (bad) |
| 4571 | .byte 255,214 // callq *%rsi |
| 4572 | .byte 255 // (bad) |
| 4573 | .byte 255 // (bad) |
| 4574 | .byte 255,206 // dec %esi |
| 4575 | .byte 255 // (bad) |
| 4576 | .byte 255 // (bad) |
| 4577 | .byte 255,198 // inc %esi |
| 4578 | .byte 255 // (bad) |
| 4579 | .byte 255 // (bad) |
| 4580 | .byte 255 // .byte 0xff |
| 4581 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4582 | HIDDEN _sk_load_8888_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4583 | .globl _sk_load_8888_avx |
| 4584 | _sk_load_8888_avx: |
| 4585 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4586 | .byte 76,139,16 // mov (%rax),%r10 |
| 4587 | .byte 72,133,201 // test %rcx,%rcx |
| 4588 | .byte 15,133,157,0,0,0 // jne fc3 <_sk_load_8888_avx+0xab> |
| 4589 | .byte 196,65,124,16,12,186 // vmovups (%r10,%rdi,4),%ymm9 |
| 4590 | .byte 184,255,0,0,0 // mov $0xff,%eax |
| 4591 | .byte 197,249,110,192 // vmovd %eax,%xmm0 |
| 4592 | .byte 197,249,112,192,0 // vpshufd $0x0,%xmm0,%xmm0 |
| 4593 | .byte 196,99,125,24,216,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm11 |
| 4594 | .byte 196,193,36,84,193 // vandps %ymm9,%ymm11,%ymm0 |
| 4595 | .byte 197,252,91,192 // vcvtdq2ps %ymm0,%ymm0 |
| 4596 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 4597 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 4598 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 4599 | .byte 196,99,117,24,193,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm8 |
| 4600 | .byte 196,193,124,89,192 // vmulps %ymm8,%ymm0,%ymm0 |
| 4601 | .byte 196,193,41,114,209,8 // vpsrld $0x8,%xmm9,%xmm10 |
| 4602 | .byte 196,99,125,25,203,1 // vextractf128 $0x1,%ymm9,%xmm3 |
| 4603 | .byte 197,241,114,211,8 // vpsrld $0x8,%xmm3,%xmm1 |
| 4604 | .byte 196,227,45,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm10,%ymm1 |
| 4605 | .byte 197,164,84,201 // vandps %ymm1,%ymm11,%ymm1 |
| 4606 | .byte 197,252,91,201 // vcvtdq2ps %ymm1,%ymm1 |
| 4607 | .byte 196,193,116,89,200 // vmulps %ymm8,%ymm1,%ymm1 |
| 4608 | .byte 196,193,41,114,209,16 // vpsrld $0x10,%xmm9,%xmm10 |
| 4609 | .byte 197,233,114,211,16 // vpsrld $0x10,%xmm3,%xmm2 |
| 4610 | .byte 196,227,45,24,210,1 // vinsertf128 $0x1,%xmm2,%ymm10,%ymm2 |
| 4611 | .byte 197,164,84,210 // vandps %ymm2,%ymm11,%ymm2 |
| 4612 | .byte 197,252,91,210 // vcvtdq2ps %ymm2,%ymm2 |
| 4613 | .byte 196,193,108,89,208 // vmulps %ymm8,%ymm2,%ymm2 |
| 4614 | .byte 196,193,49,114,209,24 // vpsrld $0x18,%xmm9,%xmm9 |
| 4615 | .byte 197,225,114,211,24 // vpsrld $0x18,%xmm3,%xmm3 |
| 4616 | .byte 196,227,53,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm9,%ymm3 |
| 4617 | .byte 197,252,91,219 // vcvtdq2ps %ymm3,%ymm3 |
| 4618 | .byte 196,193,100,89,216 // vmulps %ymm8,%ymm3,%ymm3 |
| 4619 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4620 | .byte 255,224 // jmpq *%rax |
| 4621 | .byte 65,137,200 // mov %ecx,%r8d |
| 4622 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4623 | .byte 196,65,52,87,201 // vxorps %ymm9,%ymm9,%ymm9 |
| 4624 | .byte 65,254,200 // dec %r8b |
| 4625 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4626 | .byte 15,135,80,255,255,255 // ja f2c <_sk_load_8888_avx+0x14> |
| 4627 | .byte 69,15,182,192 // movzbl %r8b,%r8d |
| 4628 | .byte 76,141,13,137,0,0,0 // lea 0x89(%rip),%r9 # 1070 <_sk_load_8888_avx+0x158> |
| 4629 | .byte 75,99,4,129 // movslq (%r9,%r8,4),%rax |
| 4630 | .byte 76,1,200 // add %r9,%rax |
| 4631 | .byte 255,224 // jmpq *%rax |
| 4632 | .byte 196,193,121,110,68,186,24 // vmovd 0x18(%r10,%rdi,4),%xmm0 |
| 4633 | .byte 197,249,112,192,68 // vpshufd $0x44,%xmm0,%xmm0 |
| 4634 | .byte 196,227,125,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm0 |
| 4635 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 4636 | .byte 196,99,117,12,200,64 // vblendps $0x40,%ymm0,%ymm1,%ymm9 |
| 4637 | .byte 196,99,125,25,200,1 // vextractf128 $0x1,%ymm9,%xmm0 |
| 4638 | .byte 196,195,121,34,68,186,20,1 // vpinsrd $0x1,0x14(%r10,%rdi,4),%xmm0,%xmm0 |
| 4639 | .byte 196,99,53,24,200,1 // vinsertf128 $0x1,%xmm0,%ymm9,%ymm9 |
| 4640 | .byte 196,99,125,25,200,1 // vextractf128 $0x1,%ymm9,%xmm0 |
| 4641 | .byte 196,195,121,34,68,186,16,0 // vpinsrd $0x0,0x10(%r10,%rdi,4),%xmm0,%xmm0 |
| 4642 | .byte 196,99,53,24,200,1 // vinsertf128 $0x1,%xmm0,%ymm9,%ymm9 |
| 4643 | .byte 196,195,49,34,68,186,12,3 // vpinsrd $0x3,0xc(%r10,%rdi,4),%xmm9,%xmm0 |
| 4644 | .byte 196,99,53,12,200,15 // vblendps $0xf,%ymm0,%ymm9,%ymm9 |
| 4645 | .byte 196,195,49,34,68,186,8,2 // vpinsrd $0x2,0x8(%r10,%rdi,4),%xmm9,%xmm0 |
| 4646 | .byte 196,99,53,12,200,15 // vblendps $0xf,%ymm0,%ymm9,%ymm9 |
| 4647 | .byte 196,195,49,34,68,186,4,1 // vpinsrd $0x1,0x4(%r10,%rdi,4),%xmm9,%xmm0 |
| 4648 | .byte 196,99,53,12,200,15 // vblendps $0xf,%ymm0,%ymm9,%ymm9 |
| 4649 | .byte 196,195,49,34,4,186,0 // vpinsrd $0x0,(%r10,%rdi,4),%xmm9,%xmm0 |
| 4650 | .byte 196,99,53,12,200,15 // vblendps $0xf,%ymm0,%ymm9,%ymm9 |
| 4651 | .byte 233,188,254,255,255 // jmpq f2c <_sk_load_8888_avx+0x14> |
| 4652 | .byte 238 // out %al,(%dx) |
| 4653 | .byte 255 // (bad) |
| 4654 | .byte 255 // (bad) |
| 4655 | .byte 255,224 // jmpq *%rax |
| 4656 | .byte 255 // (bad) |
| 4657 | .byte 255 // (bad) |
| 4658 | .byte 255,210 // callq *%rdx |
| 4659 | .byte 255 // (bad) |
| 4660 | .byte 255 // (bad) |
| 4661 | .byte 255,196 // inc %esp |
| 4662 | .byte 255 // (bad) |
| 4663 | .byte 255 // (bad) |
| 4664 | .byte 255,176,255,255,255,156 // pushq -0x63000001(%rax) |
| 4665 | .byte 255 // (bad) |
| 4666 | .byte 255 // (bad) |
| 4667 | .byte 255 // .byte 0xff |
| 4668 | .byte 128,255,255 // cmp $0xff,%bh |
| 4669 | .byte 255 // .byte 0xff |
| 4670 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4671 | HIDDEN _sk_store_8888_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4672 | .globl _sk_store_8888_avx |
| 4673 | _sk_store_8888_avx: |
| 4674 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4675 | .byte 76,139,8 // mov (%rax),%r9 |
| 4676 | .byte 184,0,0,127,67 // mov $0x437f0000,%eax |
| 4677 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 4678 | .byte 196,67,121,4,192,0 // vpermilps $0x0,%xmm8,%xmm8 |
| 4679 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 4680 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 4681 | .byte 196,65,125,91,201 // vcvtps2dq %ymm9,%ymm9 |
| 4682 | .byte 197,60,89,209 // vmulps %ymm1,%ymm8,%ymm10 |
| 4683 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 4684 | .byte 196,193,33,114,242,8 // vpslld $0x8,%xmm10,%xmm11 |
| 4685 | .byte 196,67,125,25,210,1 // vextractf128 $0x1,%ymm10,%xmm10 |
| 4686 | .byte 196,193,41,114,242,8 // vpslld $0x8,%xmm10,%xmm10 |
| 4687 | .byte 196,67,37,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm11,%ymm10 |
| 4688 | .byte 196,65,45,86,201 // vorpd %ymm9,%ymm10,%ymm9 |
| 4689 | .byte 197,60,89,210 // vmulps %ymm2,%ymm8,%ymm10 |
| 4690 | .byte 196,65,125,91,210 // vcvtps2dq %ymm10,%ymm10 |
| 4691 | .byte 196,193,33,114,242,16 // vpslld $0x10,%xmm10,%xmm11 |
| 4692 | .byte 196,67,125,25,210,1 // vextractf128 $0x1,%ymm10,%xmm10 |
| 4693 | .byte 196,193,41,114,242,16 // vpslld $0x10,%xmm10,%xmm10 |
| 4694 | .byte 196,67,37,24,210,1 // vinsertf128 $0x1,%xmm10,%ymm11,%ymm10 |
| 4695 | .byte 197,60,89,195 // vmulps %ymm3,%ymm8,%ymm8 |
| 4696 | .byte 196,65,125,91,192 // vcvtps2dq %ymm8,%ymm8 |
| 4697 | .byte 196,193,33,114,240,24 // vpslld $0x18,%xmm8,%xmm11 |
| 4698 | .byte 196,67,125,25,192,1 // vextractf128 $0x1,%ymm8,%xmm8 |
| 4699 | .byte 196,193,57,114,240,24 // vpslld $0x18,%xmm8,%xmm8 |
| 4700 | .byte 196,67,37,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm11,%ymm8 |
| 4701 | .byte 196,65,45,86,192 // vorpd %ymm8,%ymm10,%ymm8 |
| 4702 | .byte 196,65,53,86,192 // vorpd %ymm8,%ymm9,%ymm8 |
| 4703 | .byte 72,133,201 // test %rcx,%rcx |
| 4704 | .byte 117,10 // jne 1130 <_sk_store_8888_avx+0xa4> |
| 4705 | .byte 196,65,124,17,4,185 // vmovups %ymm8,(%r9,%rdi,4) |
| 4706 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4707 | .byte 255,224 // jmpq *%rax |
| 4708 | .byte 65,137,200 // mov %ecx,%r8d |
| 4709 | .byte 65,128,224,7 // and $0x7,%r8b |
| 4710 | .byte 65,254,200 // dec %r8b |
| 4711 | .byte 65,128,248,6 // cmp $0x6,%r8b |
| 4712 | .byte 119,236 // ja 112c <_sk_store_8888_avx+0xa0> |
| 4713 | .byte 65,15,182,192 // movzbl %r8b,%eax |
| 4714 | .byte 76,141,5,85,0,0,0 // lea 0x55(%rip),%r8 # 11a0 <_sk_store_8888_avx+0x114> |
| 4715 | .byte 73,99,4,128 // movslq (%r8,%rax,4),%rax |
| 4716 | .byte 76,1,192 // add %r8,%rax |
| 4717 | .byte 255,224 // jmpq *%rax |
| 4718 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 4719 | .byte 196,67,121,22,76,185,24,2 // vpextrd $0x2,%xmm9,0x18(%r9,%rdi,4) |
| 4720 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 4721 | .byte 196,67,121,22,76,185,20,1 // vpextrd $0x1,%xmm9,0x14(%r9,%rdi,4) |
| 4722 | .byte 196,67,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm9 |
| 4723 | .byte 196,65,122,17,76,185,16 // vmovss %xmm9,0x10(%r9,%rdi,4) |
| 4724 | .byte 196,67,121,22,68,185,12,3 // vpextrd $0x3,%xmm8,0xc(%r9,%rdi,4) |
| 4725 | .byte 196,67,121,22,68,185,8,2 // vpextrd $0x2,%xmm8,0x8(%r9,%rdi,4) |
| 4726 | .byte 196,67,121,22,68,185,4,1 // vpextrd $0x1,%xmm8,0x4(%r9,%rdi,4) |
| 4727 | .byte 196,65,121,126,4,185 // vmovd %xmm8,(%r9,%rdi,4) |
| 4728 | .byte 235,143 // jmp 112c <_sk_store_8888_avx+0xa0> |
| 4729 | .byte 15,31,0 // nopl (%rax) |
| 4730 | .byte 245 // cmc |
| 4731 | .byte 255 // (bad) |
| 4732 | .byte 255 // (bad) |
| 4733 | .byte 255 // (bad) |
| 4734 | .byte 237 // in (%dx),%eax |
| 4735 | .byte 255 // (bad) |
| 4736 | .byte 255 // (bad) |
| 4737 | .byte 255,229 // jmpq *%rbp |
| 4738 | .byte 255 // (bad) |
| 4739 | .byte 255 // (bad) |
| 4740 | .byte 255 // (bad) |
| 4741 | .byte 221,255 // (bad) |
| 4742 | .byte 255 // (bad) |
| 4743 | .byte 255,208 // callq *%rax |
| 4744 | .byte 255 // (bad) |
| 4745 | .byte 255 // (bad) |
| 4746 | .byte 255,194 // inc %edx |
| 4747 | .byte 255 // (bad) |
| 4748 | .byte 255 // (bad) |
| 4749 | .byte 255 // .byte 0xff |
| 4750 | .byte 180,255 // mov $0xff,%ah |
| 4751 | .byte 255 // (bad) |
| 4752 | .byte 255 // .byte 0xff |
| 4753 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4754 | HIDDEN _sk_load_f16_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4755 | .globl _sk_load_f16_avx |
| 4756 | _sk_load_f16_avx: |
| 4757 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4758 | .byte 72,139,0 // mov (%rax),%rax |
| 4759 | .byte 72,133,201 // test %rcx,%rcx |
| 4760 | .byte 15,133,2,1,0,0 // jne 12cc <_sk_load_f16_avx+0x110> |
| 4761 | .byte 197,121,16,4,248 // vmovupd (%rax,%rdi,8),%xmm8 |
| 4762 | .byte 197,249,16,84,248,16 // vmovupd 0x10(%rax,%rdi,8),%xmm2 |
| 4763 | .byte 197,249,16,92,248,32 // vmovupd 0x20(%rax,%rdi,8),%xmm3 |
| 4764 | .byte 197,122,111,76,248,48 // vmovdqu 0x30(%rax,%rdi,8),%xmm9 |
| 4765 | .byte 197,185,97,194 // vpunpcklwd %xmm2,%xmm8,%xmm0 |
| 4766 | .byte 197,185,105,210 // vpunpckhwd %xmm2,%xmm8,%xmm2 |
| 4767 | .byte 196,193,97,97,201 // vpunpcklwd %xmm9,%xmm3,%xmm1 |
| 4768 | .byte 196,193,97,105,217 // vpunpckhwd %xmm9,%xmm3,%xmm3 |
| 4769 | .byte 197,121,97,194 // vpunpcklwd %xmm2,%xmm0,%xmm8 |
| 4770 | .byte 197,249,105,194 // vpunpckhwd %xmm2,%xmm0,%xmm0 |
| 4771 | .byte 197,241,97,211 // vpunpcklwd %xmm3,%xmm1,%xmm2 |
| 4772 | .byte 197,113,105,203 // vpunpckhwd %xmm3,%xmm1,%xmm9 |
| 4773 | .byte 184,0,4,0,4 // mov $0x4000400,%eax |
| 4774 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 4775 | .byte 197,249,112,219,0 // vpshufd $0x0,%xmm3,%xmm3 |
| 4776 | .byte 196,193,97,101,200 // vpcmpgtw %xmm8,%xmm3,%xmm1 |
| 4777 | .byte 196,65,113,223,192 // vpandn %xmm8,%xmm1,%xmm8 |
| 4778 | .byte 197,225,101,200 // vpcmpgtw %xmm0,%xmm3,%xmm1 |
| 4779 | .byte 197,241,223,192 // vpandn %xmm0,%xmm1,%xmm0 |
| 4780 | .byte 197,225,101,202 // vpcmpgtw %xmm2,%xmm3,%xmm1 |
| 4781 | .byte 197,241,223,202 // vpandn %xmm2,%xmm1,%xmm1 |
| 4782 | .byte 196,193,97,101,209 // vpcmpgtw %xmm9,%xmm3,%xmm2 |
| 4783 | .byte 196,193,105,223,209 // vpandn %xmm9,%xmm2,%xmm2 |
| 4784 | .byte 196,66,121,51,208 // vpmovzxwd %xmm8,%xmm10 |
| 4785 | .byte 196,98,121,51,201 // vpmovzxwd %xmm1,%xmm9 |
| 4786 | .byte 197,225,239,219 // vpxor %xmm3,%xmm3,%xmm3 |
| 4787 | .byte 197,57,105,195 // vpunpckhwd %xmm3,%xmm8,%xmm8 |
| 4788 | .byte 197,241,105,203 // vpunpckhwd %xmm3,%xmm1,%xmm1 |
| 4789 | .byte 196,98,121,51,216 // vpmovzxwd %xmm0,%xmm11 |
| 4790 | .byte 196,98,121,51,226 // vpmovzxwd %xmm2,%xmm12 |
| 4791 | .byte 197,121,105,235 // vpunpckhwd %xmm3,%xmm0,%xmm13 |
| 4792 | .byte 197,105,105,243 // vpunpckhwd %xmm3,%xmm2,%xmm14 |
| 4793 | .byte 196,193,121,114,242,13 // vpslld $0xd,%xmm10,%xmm0 |
| 4794 | .byte 196,193,105,114,241,13 // vpslld $0xd,%xmm9,%xmm2 |
| 4795 | .byte 196,227,125,24,194,1 // vinsertf128 $0x1,%xmm2,%ymm0,%ymm0 |
| 4796 | .byte 184,0,0,128,119 // mov $0x77800000,%eax |
| 4797 | .byte 197,249,110,208 // vmovd %eax,%xmm2 |
| 4798 | .byte 197,249,112,210,0 // vpshufd $0x0,%xmm2,%xmm2 |
| 4799 | .byte 196,99,109,24,202,1 // vinsertf128 $0x1,%xmm2,%ymm2,%ymm9 |
| 4800 | .byte 197,180,89,192 // vmulps %ymm0,%ymm9,%ymm0 |
| 4801 | .byte 196,193,105,114,240,13 // vpslld $0xd,%xmm8,%xmm2 |
| 4802 | .byte 197,241,114,241,13 // vpslld $0xd,%xmm1,%xmm1 |
| 4803 | .byte 196,227,109,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm2,%ymm1 |
| 4804 | .byte 197,180,89,201 // vmulps %ymm1,%ymm9,%ymm1 |
| 4805 | .byte 196,193,105,114,243,13 // vpslld $0xd,%xmm11,%xmm2 |
| 4806 | .byte 196,193,97,114,244,13 // vpslld $0xd,%xmm12,%xmm3 |
| 4807 | .byte 196,227,109,24,211,1 // vinsertf128 $0x1,%xmm3,%ymm2,%ymm2 |
| 4808 | .byte 197,180,89,210 // vmulps %ymm2,%ymm9,%ymm2 |
| 4809 | .byte 196,193,57,114,245,13 // vpslld $0xd,%xmm13,%xmm8 |
| 4810 | .byte 196,193,97,114,246,13 // vpslld $0xd,%xmm14,%xmm3 |
| 4811 | .byte 196,227,61,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm8,%ymm3 |
| 4812 | .byte 197,180,89,219 // vmulps %ymm3,%ymm9,%ymm3 |
| 4813 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4814 | .byte 255,224 // jmpq *%rax |
| 4815 | .byte 197,123,16,4,248 // vmovsd (%rax,%rdi,8),%xmm8 |
| 4816 | .byte 196,65,49,239,201 // vpxor %xmm9,%xmm9,%xmm9 |
| 4817 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 4818 | .byte 116,79 // je 132b <_sk_load_f16_avx+0x16f> |
| 4819 | .byte 197,57,22,68,248,8 // vmovhpd 0x8(%rax,%rdi,8),%xmm8,%xmm8 |
| 4820 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 4821 | .byte 114,67 // jb 132b <_sk_load_f16_avx+0x16f> |
| 4822 | .byte 197,251,16,84,248,16 // vmovsd 0x10(%rax,%rdi,8),%xmm2 |
| 4823 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 4824 | .byte 116,68 // je 1338 <_sk_load_f16_avx+0x17c> |
| 4825 | .byte 197,233,22,84,248,24 // vmovhpd 0x18(%rax,%rdi,8),%xmm2,%xmm2 |
| 4826 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 4827 | .byte 114,56 // jb 1338 <_sk_load_f16_avx+0x17c> |
| 4828 | .byte 197,251,16,92,248,32 // vmovsd 0x20(%rax,%rdi,8),%xmm3 |
| 4829 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 4830 | .byte 15,132,209,254,255,255 // je 11e1 <_sk_load_f16_avx+0x25> |
| 4831 | .byte 197,225,22,92,248,40 // vmovhpd 0x28(%rax,%rdi,8),%xmm3,%xmm3 |
| 4832 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 4833 | .byte 15,130,193,254,255,255 // jb 11e1 <_sk_load_f16_avx+0x25> |
| 4834 | .byte 197,122,126,76,248,48 // vmovq 0x30(%rax,%rdi,8),%xmm9 |
| 4835 | .byte 233,182,254,255,255 // jmpq 11e1 <_sk_load_f16_avx+0x25> |
| 4836 | .byte 197,225,87,219 // vxorpd %xmm3,%xmm3,%xmm3 |
| 4837 | .byte 197,233,87,210 // vxorpd %xmm2,%xmm2,%xmm2 |
| 4838 | .byte 233,169,254,255,255 // jmpq 11e1 <_sk_load_f16_avx+0x25> |
| 4839 | .byte 197,225,87,219 // vxorpd %xmm3,%xmm3,%xmm3 |
| 4840 | .byte 233,160,254,255,255 // jmpq 11e1 <_sk_load_f16_avx+0x25> |
| 4841 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4842 | HIDDEN _sk_store_f16_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4843 | .globl _sk_store_f16_avx |
| 4844 | _sk_store_f16_avx: |
| 4845 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4846 | .byte 76,139,0 // mov (%rax),%r8 |
| 4847 | .byte 184,0,0,128,7 // mov $0x7800000,%eax |
| 4848 | .byte 197,121,110,192 // vmovd %eax,%xmm8 |
| 4849 | .byte 196,65,121,112,192,0 // vpshufd $0x0,%xmm8,%xmm8 |
| 4850 | .byte 196,67,61,24,192,1 // vinsertf128 $0x1,%xmm8,%ymm8,%ymm8 |
| 4851 | .byte 197,60,89,200 // vmulps %ymm0,%ymm8,%ymm9 |
| 4852 | .byte 196,67,125,25,202,1 // vextractf128 $0x1,%ymm9,%xmm10 |
| 4853 | .byte 196,193,41,114,210,13 // vpsrld $0xd,%xmm10,%xmm10 |
| 4854 | .byte 196,193,49,114,209,13 // vpsrld $0xd,%xmm9,%xmm9 |
| 4855 | .byte 197,60,89,217 // vmulps %ymm1,%ymm8,%ymm11 |
| 4856 | .byte 196,67,125,25,220,1 // vextractf128 $0x1,%ymm11,%xmm12 |
| 4857 | .byte 196,193,25,114,212,13 // vpsrld $0xd,%xmm12,%xmm12 |
| 4858 | .byte 196,193,33,114,211,13 // vpsrld $0xd,%xmm11,%xmm11 |
| 4859 | .byte 197,60,89,234 // vmulps %ymm2,%ymm8,%ymm13 |
| 4860 | .byte 196,67,125,25,238,1 // vextractf128 $0x1,%ymm13,%xmm14 |
| 4861 | .byte 196,193,9,114,214,13 // vpsrld $0xd,%xmm14,%xmm14 |
| 4862 | .byte 196,193,17,114,213,13 // vpsrld $0xd,%xmm13,%xmm13 |
| 4863 | .byte 197,60,89,195 // vmulps %ymm3,%ymm8,%ymm8 |
| 4864 | .byte 196,67,125,25,199,1 // vextractf128 $0x1,%ymm8,%xmm15 |
| 4865 | .byte 196,193,1,114,215,13 // vpsrld $0xd,%xmm15,%xmm15 |
| 4866 | .byte 196,193,57,114,208,13 // vpsrld $0xd,%xmm8,%xmm8 |
| 4867 | .byte 196,193,33,115,251,2 // vpslldq $0x2,%xmm11,%xmm11 |
| 4868 | .byte 196,65,33,235,201 // vpor %xmm9,%xmm11,%xmm9 |
| 4869 | .byte 196,193,33,115,252,2 // vpslldq $0x2,%xmm12,%xmm11 |
| 4870 | .byte 196,65,33,235,226 // vpor %xmm10,%xmm11,%xmm12 |
| 4871 | .byte 196,193,57,115,248,2 // vpslldq $0x2,%xmm8,%xmm8 |
| 4872 | .byte 196,65,57,235,197 // vpor %xmm13,%xmm8,%xmm8 |
| 4873 | .byte 196,193,41,115,255,2 // vpslldq $0x2,%xmm15,%xmm10 |
| 4874 | .byte 196,65,41,235,238 // vpor %xmm14,%xmm10,%xmm13 |
| 4875 | .byte 196,65,49,98,216 // vpunpckldq %xmm8,%xmm9,%xmm11 |
| 4876 | .byte 196,65,49,106,208 // vpunpckhdq %xmm8,%xmm9,%xmm10 |
| 4877 | .byte 196,65,25,98,205 // vpunpckldq %xmm13,%xmm12,%xmm9 |
| 4878 | .byte 196,65,25,106,197 // vpunpckhdq %xmm13,%xmm12,%xmm8 |
| 4879 | .byte 72,133,201 // test %rcx,%rcx |
| 4880 | .byte 117,31 // jne 1417 <_sk_store_f16_avx+0xd6> |
| 4881 | .byte 196,65,120,17,28,248 // vmovups %xmm11,(%r8,%rdi,8) |
| 4882 | .byte 196,65,120,17,84,248,16 // vmovups %xmm10,0x10(%r8,%rdi,8) |
| 4883 | .byte 196,65,120,17,76,248,32 // vmovups %xmm9,0x20(%r8,%rdi,8) |
| 4884 | .byte 196,65,122,127,68,248,48 // vmovdqu %xmm8,0x30(%r8,%rdi,8) |
| 4885 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4886 | .byte 255,224 // jmpq *%rax |
| 4887 | .byte 196,65,121,214,28,248 // vmovq %xmm11,(%r8,%rdi,8) |
| 4888 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 4889 | .byte 116,240 // je 1413 <_sk_store_f16_avx+0xd2> |
| 4890 | .byte 196,65,121,23,92,248,8 // vmovhpd %xmm11,0x8(%r8,%rdi,8) |
| 4891 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 4892 | .byte 114,227 // jb 1413 <_sk_store_f16_avx+0xd2> |
| 4893 | .byte 196,65,121,214,84,248,16 // vmovq %xmm10,0x10(%r8,%rdi,8) |
| 4894 | .byte 116,218 // je 1413 <_sk_store_f16_avx+0xd2> |
| 4895 | .byte 196,65,121,23,84,248,24 // vmovhpd %xmm10,0x18(%r8,%rdi,8) |
| 4896 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 4897 | .byte 114,205 // jb 1413 <_sk_store_f16_avx+0xd2> |
| 4898 | .byte 196,65,121,214,76,248,32 // vmovq %xmm9,0x20(%r8,%rdi,8) |
| 4899 | .byte 116,196 // je 1413 <_sk_store_f16_avx+0xd2> |
| 4900 | .byte 196,65,121,23,76,248,40 // vmovhpd %xmm9,0x28(%r8,%rdi,8) |
| 4901 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 4902 | .byte 114,183 // jb 1413 <_sk_store_f16_avx+0xd2> |
| 4903 | .byte 196,65,121,214,68,248,48 // vmovq %xmm8,0x30(%r8,%rdi,8) |
| 4904 | .byte 235,174 // jmp 1413 <_sk_store_f16_avx+0xd2> |
| 4905 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4906 | HIDDEN _sk_store_f32_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4907 | .globl _sk_store_f32_avx |
| 4908 | _sk_store_f32_avx: |
| 4909 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4910 | .byte 76,139,0 // mov (%rax),%r8 |
| 4911 | .byte 72,141,4,189,0,0,0,0 // lea 0x0(,%rdi,4),%rax |
| 4912 | .byte 197,124,20,193 // vunpcklps %ymm1,%ymm0,%ymm8 |
| 4913 | .byte 197,124,21,217 // vunpckhps %ymm1,%ymm0,%ymm11 |
| 4914 | .byte 197,108,20,203 // vunpcklps %ymm3,%ymm2,%ymm9 |
| 4915 | .byte 197,108,21,227 // vunpckhps %ymm3,%ymm2,%ymm12 |
| 4916 | .byte 196,65,61,20,209 // vunpcklpd %ymm9,%ymm8,%ymm10 |
| 4917 | .byte 196,65,61,21,201 // vunpckhpd %ymm9,%ymm8,%ymm9 |
| 4918 | .byte 196,65,37,20,196 // vunpcklpd %ymm12,%ymm11,%ymm8 |
| 4919 | .byte 196,65,37,21,220 // vunpckhpd %ymm12,%ymm11,%ymm11 |
| 4920 | .byte 72,133,201 // test %rcx,%rcx |
| 4921 | .byte 117,55 // jne 14d2 <_sk_store_f32_avx+0x6d> |
| 4922 | .byte 196,67,45,24,225,1 // vinsertf128 $0x1,%xmm9,%ymm10,%ymm12 |
| 4923 | .byte 196,67,61,24,235,1 // vinsertf128 $0x1,%xmm11,%ymm8,%ymm13 |
| 4924 | .byte 196,67,45,6,201,49 // vperm2f128 $0x31,%ymm9,%ymm10,%ymm9 |
| 4925 | .byte 196,67,61,6,195,49 // vperm2f128 $0x31,%ymm11,%ymm8,%ymm8 |
| 4926 | .byte 196,65,125,17,36,128 // vmovupd %ymm12,(%r8,%rax,4) |
| 4927 | .byte 196,65,125,17,108,128,32 // vmovupd %ymm13,0x20(%r8,%rax,4) |
| 4928 | .byte 196,65,125,17,76,128,64 // vmovupd %ymm9,0x40(%r8,%rax,4) |
| 4929 | .byte 196,65,125,17,68,128,96 // vmovupd %ymm8,0x60(%r8,%rax,4) |
| 4930 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4931 | .byte 255,224 // jmpq *%rax |
| 4932 | .byte 196,65,121,17,20,128 // vmovupd %xmm10,(%r8,%rax,4) |
| 4933 | .byte 72,131,249,1 // cmp $0x1,%rcx |
| 4934 | .byte 116,240 // je 14ce <_sk_store_f32_avx+0x69> |
| 4935 | .byte 196,65,121,17,76,128,16 // vmovupd %xmm9,0x10(%r8,%rax,4) |
| 4936 | .byte 72,131,249,3 // cmp $0x3,%rcx |
| 4937 | .byte 114,227 // jb 14ce <_sk_store_f32_avx+0x69> |
| 4938 | .byte 196,65,121,17,68,128,32 // vmovupd %xmm8,0x20(%r8,%rax,4) |
| 4939 | .byte 116,218 // je 14ce <_sk_store_f32_avx+0x69> |
| 4940 | .byte 196,65,121,17,92,128,48 // vmovupd %xmm11,0x30(%r8,%rax,4) |
| 4941 | .byte 72,131,249,5 // cmp $0x5,%rcx |
| 4942 | .byte 114,205 // jb 14ce <_sk_store_f32_avx+0x69> |
| 4943 | .byte 196,67,125,25,84,128,64,1 // vextractf128 $0x1,%ymm10,0x40(%r8,%rax,4) |
| 4944 | .byte 116,195 // je 14ce <_sk_store_f32_avx+0x69> |
| 4945 | .byte 196,67,125,25,76,128,80,1 // vextractf128 $0x1,%ymm9,0x50(%r8,%rax,4) |
| 4946 | .byte 72,131,249,7 // cmp $0x7,%rcx |
| 4947 | .byte 114,181 // jb 14ce <_sk_store_f32_avx+0x69> |
| 4948 | .byte 196,67,125,25,68,128,96,1 // vextractf128 $0x1,%ymm8,0x60(%r8,%rax,4) |
| 4949 | .byte 235,171 // jmp 14ce <_sk_store_f32_avx+0x69> |
| 4950 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4951 | HIDDEN _sk_clamp_x_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4952 | .globl _sk_clamp_x_avx |
| 4953 | _sk_clamp_x_avx: |
| 4954 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4955 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 4956 | .byte 197,60,95,200 // vmaxps %ymm0,%ymm8,%ymm9 |
| 4957 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 4958 | .byte 196,99,125,25,192,1 // vextractf128 $0x1,%ymm8,%xmm0 |
| 4959 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 4960 | .byte 196,193,121,254,194 // vpaddd %xmm10,%xmm0,%xmm0 |
| 4961 | .byte 196,65,57,254,194 // vpaddd %xmm10,%xmm8,%xmm8 |
| 4962 | .byte 196,227,61,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm8,%ymm0 |
| 4963 | .byte 197,180,93,192 // vminps %ymm0,%ymm9,%ymm0 |
| 4964 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4965 | .byte 255,224 // jmpq *%rax |
| 4966 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4967 | HIDDEN _sk_clamp_y_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4968 | .globl _sk_clamp_y_avx |
| 4969 | _sk_clamp_y_avx: |
| 4970 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4971 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 4972 | .byte 197,60,95,201 // vmaxps %ymm1,%ymm8,%ymm9 |
| 4973 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 4974 | .byte 196,99,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm1 |
| 4975 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 4976 | .byte 196,193,113,254,202 // vpaddd %xmm10,%xmm1,%xmm1 |
| 4977 | .byte 196,65,57,254,194 // vpaddd %xmm10,%xmm8,%xmm8 |
| 4978 | .byte 196,227,61,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm8,%ymm1 |
| 4979 | .byte 197,180,93,201 // vminps %ymm1,%ymm9,%ymm1 |
| 4980 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4981 | .byte 255,224 // jmpq *%rax |
| 4982 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 4983 | HIDDEN _sk_repeat_x_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 4984 | .globl _sk_repeat_x_avx |
| 4985 | _sk_repeat_x_avx: |
| 4986 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4987 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 4988 | .byte 196,65,124,94,200 // vdivps %ymm8,%ymm0,%ymm9 |
| 4989 | .byte 196,67,125,8,201,1 // vroundps $0x1,%ymm9,%ymm9 |
| 4990 | .byte 196,65,52,89,200 // vmulps %ymm8,%ymm9,%ymm9 |
| 4991 | .byte 196,65,124,92,201 // vsubps %ymm9,%ymm0,%ymm9 |
| 4992 | .byte 196,99,125,25,192,1 // vextractf128 $0x1,%ymm8,%xmm0 |
| 4993 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 4994 | .byte 196,193,121,254,194 // vpaddd %xmm10,%xmm0,%xmm0 |
| 4995 | .byte 196,65,57,254,194 // vpaddd %xmm10,%xmm8,%xmm8 |
| 4996 | .byte 196,227,61,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm8,%ymm0 |
| 4997 | .byte 197,180,93,192 // vminps %ymm0,%ymm9,%ymm0 |
| 4998 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 4999 | .byte 255,224 // jmpq *%rax |
| 5000 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5001 | HIDDEN _sk_repeat_y_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5002 | .globl _sk_repeat_y_avx |
| 5003 | _sk_repeat_y_avx: |
| 5004 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5005 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 5006 | .byte 196,65,116,94,200 // vdivps %ymm8,%ymm1,%ymm9 |
| 5007 | .byte 196,67,125,8,201,1 // vroundps $0x1,%ymm9,%ymm9 |
| 5008 | .byte 196,65,52,89,200 // vmulps %ymm8,%ymm9,%ymm9 |
| 5009 | .byte 196,65,116,92,201 // vsubps %ymm9,%ymm1,%ymm9 |
| 5010 | .byte 196,99,125,25,193,1 // vextractf128 $0x1,%ymm8,%xmm1 |
| 5011 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 5012 | .byte 196,193,113,254,202 // vpaddd %xmm10,%xmm1,%xmm1 |
| 5013 | .byte 196,65,57,254,194 // vpaddd %xmm10,%xmm8,%xmm8 |
| 5014 | .byte 196,227,61,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm8,%ymm1 |
| 5015 | .byte 197,180,93,201 // vminps %ymm1,%ymm9,%ymm1 |
| 5016 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5017 | .byte 255,224 // jmpq *%rax |
| 5018 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5019 | HIDDEN _sk_mirror_x_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5020 | .globl _sk_mirror_x_avx |
| 5021 | _sk_mirror_x_avx: |
| 5022 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5023 | .byte 197,121,110,0 // vmovd (%rax),%xmm8 |
| 5024 | .byte 196,65,121,112,200,0 // vpshufd $0x0,%xmm8,%xmm9 |
| 5025 | .byte 196,67,53,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm9,%ymm9 |
| 5026 | .byte 196,65,124,92,209 // vsubps %ymm9,%ymm0,%ymm10 |
| 5027 | .byte 196,193,58,88,192 // vaddss %xmm8,%xmm8,%xmm0 |
| 5028 | .byte 196,227,121,4,192,0 // vpermilps $0x0,%xmm0,%xmm0 |
| 5029 | .byte 196,227,125,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm0,%ymm0 |
| 5030 | .byte 197,44,94,192 // vdivps %ymm0,%ymm10,%ymm8 |
| 5031 | .byte 196,67,125,8,192,1 // vroundps $0x1,%ymm8,%ymm8 |
| 5032 | .byte 197,188,89,192 // vmulps %ymm0,%ymm8,%ymm0 |
| 5033 | .byte 197,172,92,192 // vsubps %ymm0,%ymm10,%ymm0 |
| 5034 | .byte 196,193,124,92,193 // vsubps %ymm9,%ymm0,%ymm0 |
| 5035 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 5036 | .byte 197,60,92,192 // vsubps %ymm0,%ymm8,%ymm8 |
| 5037 | .byte 197,60,84,192 // vandps %ymm0,%ymm8,%ymm8 |
| 5038 | .byte 196,99,125,25,200,1 // vextractf128 $0x1,%ymm9,%xmm0 |
| 5039 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 5040 | .byte 196,193,121,254,194 // vpaddd %xmm10,%xmm0,%xmm0 |
| 5041 | .byte 196,65,49,254,202 // vpaddd %xmm10,%xmm9,%xmm9 |
| 5042 | .byte 196,227,53,24,192,1 // vinsertf128 $0x1,%xmm0,%ymm9,%ymm0 |
| 5043 | .byte 197,188,93,192 // vminps %ymm0,%ymm8,%ymm0 |
| 5044 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5045 | .byte 255,224 // jmpq *%rax |
| 5046 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5047 | HIDDEN _sk_mirror_y_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5048 | .globl _sk_mirror_y_avx |
| 5049 | _sk_mirror_y_avx: |
| 5050 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5051 | .byte 197,121,110,0 // vmovd (%rax),%xmm8 |
| 5052 | .byte 196,65,121,112,200,0 // vpshufd $0x0,%xmm8,%xmm9 |
| 5053 | .byte 196,67,53,24,201,1 // vinsertf128 $0x1,%xmm9,%ymm9,%ymm9 |
| 5054 | .byte 196,65,116,92,209 // vsubps %ymm9,%ymm1,%ymm10 |
| 5055 | .byte 196,193,58,88,200 // vaddss %xmm8,%xmm8,%xmm1 |
| 5056 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 5057 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 5058 | .byte 197,44,94,193 // vdivps %ymm1,%ymm10,%ymm8 |
| 5059 | .byte 196,67,125,8,192,1 // vroundps $0x1,%ymm8,%ymm8 |
| 5060 | .byte 197,188,89,201 // vmulps %ymm1,%ymm8,%ymm1 |
| 5061 | .byte 197,172,92,201 // vsubps %ymm1,%ymm10,%ymm1 |
| 5062 | .byte 196,193,116,92,201 // vsubps %ymm9,%ymm1,%ymm1 |
| 5063 | .byte 196,65,60,87,192 // vxorps %ymm8,%ymm8,%ymm8 |
| 5064 | .byte 197,60,92,193 // vsubps %ymm1,%ymm8,%ymm8 |
| 5065 | .byte 197,60,84,193 // vandps %ymm1,%ymm8,%ymm8 |
| 5066 | .byte 196,99,125,25,201,1 // vextractf128 $0x1,%ymm9,%xmm1 |
| 5067 | .byte 196,65,41,118,210 // vpcmpeqd %xmm10,%xmm10,%xmm10 |
| 5068 | .byte 196,193,113,254,202 // vpaddd %xmm10,%xmm1,%xmm1 |
| 5069 | .byte 196,65,49,254,202 // vpaddd %xmm10,%xmm9,%xmm9 |
| 5070 | .byte 196,227,53,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm9,%ymm1 |
| 5071 | .byte 197,188,93,201 // vminps %ymm1,%ymm8,%ymm1 |
| 5072 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5073 | .byte 255,224 // jmpq *%rax |
| 5074 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5075 | HIDDEN _sk_luminance_to_alpha_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5076 | .globl _sk_luminance_to_alpha_avx |
| 5077 | _sk_luminance_to_alpha_avx: |
| 5078 | .byte 184,208,179,89,62 // mov $0x3e59b3d0,%eax |
| 5079 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 5080 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 5081 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 5082 | .byte 197,228,89,192 // vmulps %ymm0,%ymm3,%ymm0 |
| 5083 | .byte 184,89,23,55,63 // mov $0x3f371759,%eax |
| 5084 | .byte 197,249,110,216 // vmovd %eax,%xmm3 |
| 5085 | .byte 196,227,121,4,219,0 // vpermilps $0x0,%xmm3,%xmm3 |
| 5086 | .byte 196,227,101,24,219,1 // vinsertf128 $0x1,%xmm3,%ymm3,%ymm3 |
| 5087 | .byte 197,228,89,201 // vmulps %ymm1,%ymm3,%ymm1 |
| 5088 | .byte 197,252,88,193 // vaddps %ymm1,%ymm0,%ymm0 |
| 5089 | .byte 184,152,221,147,61 // mov $0x3d93dd98,%eax |
| 5090 | .byte 197,249,110,200 // vmovd %eax,%xmm1 |
| 5091 | .byte 196,227,121,4,201,0 // vpermilps $0x0,%xmm1,%xmm1 |
| 5092 | .byte 196,227,117,24,201,1 // vinsertf128 $0x1,%xmm1,%ymm1,%ymm1 |
| 5093 | .byte 197,244,89,202 // vmulps %ymm2,%ymm1,%ymm1 |
| 5094 | .byte 197,252,88,217 // vaddps %ymm1,%ymm0,%ymm3 |
| 5095 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5096 | .byte 197,252,87,192 // vxorps %ymm0,%ymm0,%ymm0 |
| 5097 | .byte 197,244,87,201 // vxorps %ymm1,%ymm1,%ymm1 |
| 5098 | .byte 197,236,87,210 // vxorps %ymm2,%ymm2,%ymm2 |
| 5099 | .byte 255,224 // jmpq *%rax |
| 5100 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5101 | HIDDEN _sk_matrix_2x3_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5102 | .globl _sk_matrix_2x3_avx |
| 5103 | _sk_matrix_2x3_avx: |
| 5104 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5105 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 5106 | .byte 196,98,125,24,72,8 // vbroadcastss 0x8(%rax),%ymm9 |
| 5107 | .byte 196,98,125,24,80,16 // vbroadcastss 0x10(%rax),%ymm10 |
| 5108 | .byte 197,52,89,201 // vmulps %ymm1,%ymm9,%ymm9 |
| 5109 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5110 | .byte 197,60,89,192 // vmulps %ymm0,%ymm8,%ymm8 |
| 5111 | .byte 196,65,60,88,193 // vaddps %ymm9,%ymm8,%ymm8 |
| 5112 | .byte 196,98,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm9 |
| 5113 | .byte 196,98,125,24,80,12 // vbroadcastss 0xc(%rax),%ymm10 |
| 5114 | .byte 196,98,125,24,88,20 // vbroadcastss 0x14(%rax),%ymm11 |
| 5115 | .byte 197,172,89,201 // vmulps %ymm1,%ymm10,%ymm1 |
| 5116 | .byte 196,193,116,88,203 // vaddps %ymm11,%ymm1,%ymm1 |
| 5117 | .byte 197,180,89,192 // vmulps %ymm0,%ymm9,%ymm0 |
| 5118 | .byte 197,252,88,201 // vaddps %ymm1,%ymm0,%ymm1 |
| 5119 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5120 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 5121 | .byte 255,224 // jmpq *%rax |
| 5122 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5123 | HIDDEN _sk_matrix_3x4_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5124 | .globl _sk_matrix_3x4_avx |
| 5125 | _sk_matrix_3x4_avx: |
| 5126 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5127 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 5128 | .byte 196,98,125,24,72,12 // vbroadcastss 0xc(%rax),%ymm9 |
| 5129 | .byte 196,98,125,24,80,24 // vbroadcastss 0x18(%rax),%ymm10 |
| 5130 | .byte 196,98,125,24,88,36 // vbroadcastss 0x24(%rax),%ymm11 |
| 5131 | .byte 197,44,89,210 // vmulps %ymm2,%ymm10,%ymm10 |
| 5132 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5133 | .byte 197,52,89,201 // vmulps %ymm1,%ymm9,%ymm9 |
| 5134 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5135 | .byte 197,60,89,192 // vmulps %ymm0,%ymm8,%ymm8 |
| 5136 | .byte 196,65,60,88,193 // vaddps %ymm9,%ymm8,%ymm8 |
| 5137 | .byte 196,98,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm9 |
| 5138 | .byte 196,98,125,24,80,16 // vbroadcastss 0x10(%rax),%ymm10 |
| 5139 | .byte 196,98,125,24,88,28 // vbroadcastss 0x1c(%rax),%ymm11 |
| 5140 | .byte 196,98,125,24,96,40 // vbroadcastss 0x28(%rax),%ymm12 |
| 5141 | .byte 197,36,89,218 // vmulps %ymm2,%ymm11,%ymm11 |
| 5142 | .byte 196,65,36,88,220 // vaddps %ymm12,%ymm11,%ymm11 |
| 5143 | .byte 197,44,89,209 // vmulps %ymm1,%ymm10,%ymm10 |
| 5144 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5145 | .byte 197,52,89,200 // vmulps %ymm0,%ymm9,%ymm9 |
| 5146 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5147 | .byte 196,98,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm10 |
| 5148 | .byte 196,98,125,24,88,20 // vbroadcastss 0x14(%rax),%ymm11 |
| 5149 | .byte 196,98,125,24,96,32 // vbroadcastss 0x20(%rax),%ymm12 |
| 5150 | .byte 196,98,125,24,104,44 // vbroadcastss 0x2c(%rax),%ymm13 |
| 5151 | .byte 197,156,89,210 // vmulps %ymm2,%ymm12,%ymm2 |
| 5152 | .byte 196,193,108,88,213 // vaddps %ymm13,%ymm2,%ymm2 |
| 5153 | .byte 197,164,89,201 // vmulps %ymm1,%ymm11,%ymm1 |
| 5154 | .byte 197,244,88,202 // vaddps %ymm2,%ymm1,%ymm1 |
| 5155 | .byte 197,172,89,192 // vmulps %ymm0,%ymm10,%ymm0 |
| 5156 | .byte 197,252,88,209 // vaddps %ymm1,%ymm0,%ymm2 |
| 5157 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5158 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 5159 | .byte 197,124,41,201 // vmovaps %ymm9,%ymm1 |
| 5160 | .byte 255,224 // jmpq *%rax |
| 5161 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5162 | HIDDEN _sk_matrix_4x5_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5163 | .globl _sk_matrix_4x5_avx |
| 5164 | _sk_matrix_4x5_avx: |
| 5165 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5166 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 5167 | .byte 196,98,125,24,72,16 // vbroadcastss 0x10(%rax),%ymm9 |
| 5168 | .byte 196,98,125,24,80,32 // vbroadcastss 0x20(%rax),%ymm10 |
| 5169 | .byte 196,98,125,24,88,48 // vbroadcastss 0x30(%rax),%ymm11 |
| 5170 | .byte 196,98,125,24,96,64 // vbroadcastss 0x40(%rax),%ymm12 |
| 5171 | .byte 197,36,89,219 // vmulps %ymm3,%ymm11,%ymm11 |
| 5172 | .byte 196,65,36,88,220 // vaddps %ymm12,%ymm11,%ymm11 |
| 5173 | .byte 197,44,89,210 // vmulps %ymm2,%ymm10,%ymm10 |
| 5174 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5175 | .byte 197,52,89,201 // vmulps %ymm1,%ymm9,%ymm9 |
| 5176 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5177 | .byte 197,60,89,192 // vmulps %ymm0,%ymm8,%ymm8 |
| 5178 | .byte 196,65,60,88,193 // vaddps %ymm9,%ymm8,%ymm8 |
| 5179 | .byte 196,98,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm9 |
| 5180 | .byte 196,98,125,24,80,20 // vbroadcastss 0x14(%rax),%ymm10 |
| 5181 | .byte 196,98,125,24,88,36 // vbroadcastss 0x24(%rax),%ymm11 |
| 5182 | .byte 196,98,125,24,96,52 // vbroadcastss 0x34(%rax),%ymm12 |
| 5183 | .byte 196,98,125,24,104,68 // vbroadcastss 0x44(%rax),%ymm13 |
| 5184 | .byte 197,28,89,227 // vmulps %ymm3,%ymm12,%ymm12 |
| 5185 | .byte 196,65,28,88,229 // vaddps %ymm13,%ymm12,%ymm12 |
| 5186 | .byte 197,36,89,218 // vmulps %ymm2,%ymm11,%ymm11 |
| 5187 | .byte 196,65,36,88,220 // vaddps %ymm12,%ymm11,%ymm11 |
| 5188 | .byte 197,44,89,209 // vmulps %ymm1,%ymm10,%ymm10 |
| 5189 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5190 | .byte 197,52,89,200 // vmulps %ymm0,%ymm9,%ymm9 |
| 5191 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5192 | .byte 196,98,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm10 |
| 5193 | .byte 196,98,125,24,88,24 // vbroadcastss 0x18(%rax),%ymm11 |
| 5194 | .byte 196,98,125,24,96,40 // vbroadcastss 0x28(%rax),%ymm12 |
| 5195 | .byte 196,98,125,24,104,56 // vbroadcastss 0x38(%rax),%ymm13 |
| 5196 | .byte 196,98,125,24,112,72 // vbroadcastss 0x48(%rax),%ymm14 |
| 5197 | .byte 197,20,89,235 // vmulps %ymm3,%ymm13,%ymm13 |
| 5198 | .byte 196,65,20,88,238 // vaddps %ymm14,%ymm13,%ymm13 |
| 5199 | .byte 197,28,89,226 // vmulps %ymm2,%ymm12,%ymm12 |
| 5200 | .byte 196,65,28,88,229 // vaddps %ymm13,%ymm12,%ymm12 |
| 5201 | .byte 197,36,89,217 // vmulps %ymm1,%ymm11,%ymm11 |
| 5202 | .byte 196,65,36,88,220 // vaddps %ymm12,%ymm11,%ymm11 |
| 5203 | .byte 197,44,89,208 // vmulps %ymm0,%ymm10,%ymm10 |
| 5204 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5205 | .byte 196,98,125,24,88,12 // vbroadcastss 0xc(%rax),%ymm11 |
| 5206 | .byte 196,98,125,24,96,28 // vbroadcastss 0x1c(%rax),%ymm12 |
| 5207 | .byte 196,98,125,24,104,44 // vbroadcastss 0x2c(%rax),%ymm13 |
| 5208 | .byte 196,98,125,24,112,60 // vbroadcastss 0x3c(%rax),%ymm14 |
| 5209 | .byte 196,98,125,24,120,76 // vbroadcastss 0x4c(%rax),%ymm15 |
| 5210 | .byte 197,140,89,219 // vmulps %ymm3,%ymm14,%ymm3 |
| 5211 | .byte 196,193,100,88,223 // vaddps %ymm15,%ymm3,%ymm3 |
| 5212 | .byte 197,148,89,210 // vmulps %ymm2,%ymm13,%ymm2 |
| 5213 | .byte 197,236,88,211 // vaddps %ymm3,%ymm2,%ymm2 |
| 5214 | .byte 197,156,89,201 // vmulps %ymm1,%ymm12,%ymm1 |
| 5215 | .byte 197,244,88,202 // vaddps %ymm2,%ymm1,%ymm1 |
| 5216 | .byte 197,164,89,192 // vmulps %ymm0,%ymm11,%ymm0 |
| 5217 | .byte 197,252,88,217 // vaddps %ymm1,%ymm0,%ymm3 |
| 5218 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5219 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 5220 | .byte 197,124,41,201 // vmovaps %ymm9,%ymm1 |
| 5221 | .byte 197,124,41,210 // vmovaps %ymm10,%ymm2 |
| 5222 | .byte 255,224 // jmpq *%rax |
| 5223 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5224 | HIDDEN _sk_matrix_perspective_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5225 | .globl _sk_matrix_perspective_avx |
| 5226 | _sk_matrix_perspective_avx: |
| 5227 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5228 | .byte 196,98,125,24,0 // vbroadcastss (%rax),%ymm8 |
| 5229 | .byte 196,98,125,24,72,4 // vbroadcastss 0x4(%rax),%ymm9 |
| 5230 | .byte 196,98,125,24,80,8 // vbroadcastss 0x8(%rax),%ymm10 |
| 5231 | .byte 197,52,89,201 // vmulps %ymm1,%ymm9,%ymm9 |
| 5232 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5233 | .byte 197,60,89,192 // vmulps %ymm0,%ymm8,%ymm8 |
| 5234 | .byte 196,65,60,88,193 // vaddps %ymm9,%ymm8,%ymm8 |
| 5235 | .byte 196,98,125,24,72,12 // vbroadcastss 0xc(%rax),%ymm9 |
| 5236 | .byte 196,98,125,24,80,16 // vbroadcastss 0x10(%rax),%ymm10 |
| 5237 | .byte 196,98,125,24,88,20 // vbroadcastss 0x14(%rax),%ymm11 |
| 5238 | .byte 197,44,89,209 // vmulps %ymm1,%ymm10,%ymm10 |
| 5239 | .byte 196,65,44,88,211 // vaddps %ymm11,%ymm10,%ymm10 |
| 5240 | .byte 197,52,89,200 // vmulps %ymm0,%ymm9,%ymm9 |
| 5241 | .byte 196,65,52,88,202 // vaddps %ymm10,%ymm9,%ymm9 |
| 5242 | .byte 196,98,125,24,80,24 // vbroadcastss 0x18(%rax),%ymm10 |
| 5243 | .byte 196,98,125,24,88,28 // vbroadcastss 0x1c(%rax),%ymm11 |
| 5244 | .byte 196,98,125,24,96,32 // vbroadcastss 0x20(%rax),%ymm12 |
| 5245 | .byte 197,164,89,201 // vmulps %ymm1,%ymm11,%ymm1 |
| 5246 | .byte 196,193,116,88,204 // vaddps %ymm12,%ymm1,%ymm1 |
| 5247 | .byte 197,172,89,192 // vmulps %ymm0,%ymm10,%ymm0 |
| 5248 | .byte 197,252,88,193 // vaddps %ymm1,%ymm0,%ymm0 |
| 5249 | .byte 197,252,83,200 // vrcpps %ymm0,%ymm1 |
| 5250 | .byte 197,188,89,193 // vmulps %ymm1,%ymm8,%ymm0 |
| 5251 | .byte 197,180,89,201 // vmulps %ymm1,%ymm9,%ymm1 |
| 5252 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5253 | .byte 255,224 // jmpq *%rax |
| 5254 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5255 | HIDDEN _sk_linear_gradient_2stops_avx |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5256 | .globl _sk_linear_gradient_2stops_avx |
| 5257 | _sk_linear_gradient_2stops_avx: |
| 5258 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5259 | .byte 196,226,125,24,72,16 // vbroadcastss 0x10(%rax),%ymm1 |
| 5260 | .byte 196,226,125,24,16 // vbroadcastss (%rax),%ymm2 |
| 5261 | .byte 197,244,89,200 // vmulps %ymm0,%ymm1,%ymm1 |
| 5262 | .byte 197,108,88,193 // vaddps %ymm1,%ymm2,%ymm8 |
| 5263 | .byte 196,226,125,24,72,20 // vbroadcastss 0x14(%rax),%ymm1 |
| 5264 | .byte 196,226,125,24,80,4 // vbroadcastss 0x4(%rax),%ymm2 |
| 5265 | .byte 197,244,89,200 // vmulps %ymm0,%ymm1,%ymm1 |
| 5266 | .byte 197,236,88,201 // vaddps %ymm1,%ymm2,%ymm1 |
| 5267 | .byte 196,226,125,24,80,24 // vbroadcastss 0x18(%rax),%ymm2 |
| 5268 | .byte 196,226,125,24,88,8 // vbroadcastss 0x8(%rax),%ymm3 |
| 5269 | .byte 197,236,89,208 // vmulps %ymm0,%ymm2,%ymm2 |
| 5270 | .byte 197,228,88,210 // vaddps %ymm2,%ymm3,%ymm2 |
| 5271 | .byte 196,226,125,24,88,28 // vbroadcastss 0x1c(%rax),%ymm3 |
| 5272 | .byte 196,98,125,24,72,12 // vbroadcastss 0xc(%rax),%ymm9 |
| 5273 | .byte 197,228,89,192 // vmulps %ymm0,%ymm3,%ymm0 |
| 5274 | .byte 197,180,88,216 // vaddps %ymm0,%ymm9,%ymm3 |
| 5275 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5276 | .byte 197,124,41,192 // vmovaps %ymm8,%ymm0 |
| 5277 | .byte 255,224 // jmpq *%rax |
| 5278 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5279 | HIDDEN _sk_start_pipeline_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5280 | .globl _sk_start_pipeline_sse41 |
| 5281 | _sk_start_pipeline_sse41: |
| 5282 | .byte 65,87 // push %r15 |
| 5283 | .byte 65,86 // push %r14 |
| 5284 | .byte 65,85 // push %r13 |
| 5285 | .byte 65,84 // push %r12 |
| 5286 | .byte 83 // push %rbx |
| 5287 | .byte 73,137,207 // mov %rcx,%r15 |
| 5288 | .byte 73,137,214 // mov %rdx,%r14 |
| 5289 | .byte 72,137,251 // mov %rdi,%rbx |
| 5290 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5291 | .byte 73,137,196 // mov %rax,%r12 |
| 5292 | .byte 73,137,245 // mov %rsi,%r13 |
| 5293 | .byte 72,141,67,4 // lea 0x4(%rbx),%rax |
| 5294 | .byte 76,57,248 // cmp %r15,%rax |
| 5295 | .byte 118,5 // jbe 28 <_sk_start_pipeline_sse41+0x28> |
| 5296 | .byte 72,137,216 // mov %rbx,%rax |
| 5297 | .byte 235,52 // jmp 5c <_sk_start_pipeline_sse41+0x5c> |
| 5298 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 5299 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 5300 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 5301 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 5302 | .byte 15,87,228 // xorps %xmm4,%xmm4 |
| 5303 | .byte 15,87,237 // xorps %xmm5,%xmm5 |
| 5304 | .byte 15,87,246 // xorps %xmm6,%xmm6 |
| 5305 | .byte 15,87,255 // xorps %xmm7,%xmm7 |
| 5306 | .byte 72,137,223 // mov %rbx,%rdi |
| 5307 | .byte 76,137,238 // mov %r13,%rsi |
| 5308 | .byte 76,137,242 // mov %r14,%rdx |
| 5309 | .byte 65,255,212 // callq *%r12 |
| 5310 | .byte 72,141,67,4 // lea 0x4(%rbx),%rax |
| 5311 | .byte 72,131,195,8 // add $0x8,%rbx |
| 5312 | .byte 76,57,251 // cmp %r15,%rbx |
| 5313 | .byte 72,137,195 // mov %rax,%rbx |
| 5314 | .byte 118,204 // jbe 28 <_sk_start_pipeline_sse41+0x28> |
| 5315 | .byte 91 // pop %rbx |
| 5316 | .byte 65,92 // pop %r12 |
| 5317 | .byte 65,93 // pop %r13 |
| 5318 | .byte 65,94 // pop %r14 |
| 5319 | .byte 65,95 // pop %r15 |
| 5320 | .byte 195 // retq |
| 5321 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5322 | HIDDEN _sk_just_return_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5323 | .globl _sk_just_return_sse41 |
| 5324 | _sk_just_return_sse41: |
| 5325 | .byte 195 // retq |
| 5326 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5327 | HIDDEN _sk_seed_shader_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5328 | .globl _sk_seed_shader_sse41 |
| 5329 | _sk_seed_shader_sse41: |
| 5330 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5331 | .byte 102,15,110,199 // movd %edi,%xmm0 |
| 5332 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 5333 | .byte 15,91,200 // cvtdq2ps %xmm0,%xmm1 |
| 5334 | .byte 185,0,0,0,63 // mov $0x3f000000,%ecx |
| 5335 | .byte 102,15,110,209 // movd %ecx,%xmm2 |
| 5336 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 5337 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 5338 | .byte 15,16,2 // movups (%rdx),%xmm0 |
| 5339 | .byte 15,88,193 // addps %xmm1,%xmm0 |
| 5340 | .byte 102,15,110,8 // movd (%rax),%xmm1 |
| 5341 | .byte 102,15,112,201,0 // pshufd $0x0,%xmm1,%xmm1 |
| 5342 | .byte 15,91,201 // cvtdq2ps %xmm1,%xmm1 |
| 5343 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 5344 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5345 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 5346 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 5347 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5348 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 5349 | .byte 15,87,228 // xorps %xmm4,%xmm4 |
| 5350 | .byte 15,87,237 // xorps %xmm5,%xmm5 |
| 5351 | .byte 15,87,246 // xorps %xmm6,%xmm6 |
| 5352 | .byte 15,87,255 // xorps %xmm7,%xmm7 |
| 5353 | .byte 255,224 // jmpq *%rax |
| 5354 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5355 | HIDDEN _sk_constant_color_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5356 | .globl _sk_constant_color_sse41 |
| 5357 | _sk_constant_color_sse41: |
| 5358 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5359 | .byte 15,16,24 // movups (%rax),%xmm3 |
| 5360 | .byte 15,40,195 // movaps %xmm3,%xmm0 |
| 5361 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 5362 | .byte 15,40,203 // movaps %xmm3,%xmm1 |
| 5363 | .byte 15,198,201,85 // shufps $0x55,%xmm1,%xmm1 |
| 5364 | .byte 15,40,211 // movaps %xmm3,%xmm2 |
| 5365 | .byte 15,198,210,170 // shufps $0xaa,%xmm2,%xmm2 |
| 5366 | .byte 15,198,219,255 // shufps $0xff,%xmm3,%xmm3 |
| 5367 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5368 | .byte 255,224 // jmpq *%rax |
| 5369 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5370 | HIDDEN _sk_clear_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5371 | .globl _sk_clear_sse41 |
| 5372 | _sk_clear_sse41: |
| 5373 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5374 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 5375 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 5376 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 5377 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 5378 | .byte 255,224 // jmpq *%rax |
| 5379 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5380 | HIDDEN _sk_plus__sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5381 | .globl _sk_plus__sse41 |
| 5382 | _sk_plus__sse41: |
| 5383 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 5384 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 5385 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 5386 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 5387 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5388 | .byte 255,224 // jmpq *%rax |
| 5389 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5390 | HIDDEN _sk_srcover_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5391 | .globl _sk_srcover_sse41 |
| 5392 | _sk_srcover_sse41: |
| 5393 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5394 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5395 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5396 | .byte 68,15,92,195 // subps %xmm3,%xmm8 |
| 5397 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5398 | .byte 68,15,89,204 // mulps %xmm4,%xmm9 |
| 5399 | .byte 65,15,88,193 // addps %xmm9,%xmm0 |
| 5400 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5401 | .byte 68,15,89,205 // mulps %xmm5,%xmm9 |
| 5402 | .byte 65,15,88,201 // addps %xmm9,%xmm1 |
| 5403 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5404 | .byte 68,15,89,206 // mulps %xmm6,%xmm9 |
| 5405 | .byte 65,15,88,209 // addps %xmm9,%xmm2 |
| 5406 | .byte 68,15,89,199 // mulps %xmm7,%xmm8 |
| 5407 | .byte 65,15,88,216 // addps %xmm8,%xmm3 |
| 5408 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5409 | .byte 255,224 // jmpq *%rax |
| 5410 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5411 | HIDDEN _sk_dstover_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5412 | .globl _sk_dstover_sse41 |
| 5413 | _sk_dstover_sse41: |
| 5414 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5415 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5416 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5417 | .byte 68,15,92,199 // subps %xmm7,%xmm8 |
| 5418 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 5419 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 5420 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 5421 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 5422 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 5423 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 5424 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 5425 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 5426 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5427 | .byte 255,224 // jmpq *%rax |
| 5428 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5429 | HIDDEN _sk_clamp_0_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5430 | .globl _sk_clamp_0_sse41 |
| 5431 | _sk_clamp_0_sse41: |
| 5432 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 5433 | .byte 65,15,95,192 // maxps %xmm8,%xmm0 |
| 5434 | .byte 65,15,95,200 // maxps %xmm8,%xmm1 |
| 5435 | .byte 65,15,95,208 // maxps %xmm8,%xmm2 |
| 5436 | .byte 65,15,95,216 // maxps %xmm8,%xmm3 |
| 5437 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5438 | .byte 255,224 // jmpq *%rax |
| 5439 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5440 | HIDDEN _sk_clamp_1_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5441 | .globl _sk_clamp_1_sse41 |
| 5442 | _sk_clamp_1_sse41: |
| 5443 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5444 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5445 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5446 | .byte 65,15,93,192 // minps %xmm8,%xmm0 |
| 5447 | .byte 65,15,93,200 // minps %xmm8,%xmm1 |
| 5448 | .byte 65,15,93,208 // minps %xmm8,%xmm2 |
| 5449 | .byte 65,15,93,216 // minps %xmm8,%xmm3 |
| 5450 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5451 | .byte 255,224 // jmpq *%rax |
| 5452 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5453 | HIDDEN _sk_clamp_a_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5454 | .globl _sk_clamp_a_sse41 |
| 5455 | _sk_clamp_a_sse41: |
| 5456 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5457 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5458 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5459 | .byte 65,15,93,216 // minps %xmm8,%xmm3 |
| 5460 | .byte 15,93,195 // minps %xmm3,%xmm0 |
| 5461 | .byte 15,93,203 // minps %xmm3,%xmm1 |
| 5462 | .byte 15,93,211 // minps %xmm3,%xmm2 |
| 5463 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5464 | .byte 255,224 // jmpq *%rax |
| 5465 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5466 | HIDDEN _sk_set_rgb_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5467 | .globl _sk_set_rgb_sse41 |
| 5468 | _sk_set_rgb_sse41: |
| 5469 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5470 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 5471 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 5472 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 5473 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 5474 | .byte 243,15,16,80,8 // movss 0x8(%rax),%xmm2 |
| 5475 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 5476 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5477 | .byte 255,224 // jmpq *%rax |
| 5478 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5479 | HIDDEN _sk_swap_rb_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5480 | .globl _sk_swap_rb_sse41 |
| 5481 | _sk_swap_rb_sse41: |
| 5482 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 5483 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5484 | .byte 15,40,194 // movaps %xmm2,%xmm0 |
| 5485 | .byte 65,15,40,208 // movaps %xmm8,%xmm2 |
| 5486 | .byte 255,224 // jmpq *%rax |
| 5487 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5488 | HIDDEN _sk_swap_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5489 | .globl _sk_swap_sse41 |
| 5490 | _sk_swap_sse41: |
| 5491 | .byte 68,15,40,195 // movaps %xmm3,%xmm8 |
| 5492 | .byte 68,15,40,202 // movaps %xmm2,%xmm9 |
| 5493 | .byte 68,15,40,209 // movaps %xmm1,%xmm10 |
| 5494 | .byte 68,15,40,216 // movaps %xmm0,%xmm11 |
| 5495 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5496 | .byte 15,40,196 // movaps %xmm4,%xmm0 |
| 5497 | .byte 15,40,205 // movaps %xmm5,%xmm1 |
| 5498 | .byte 15,40,214 // movaps %xmm6,%xmm2 |
| 5499 | .byte 15,40,223 // movaps %xmm7,%xmm3 |
| 5500 | .byte 65,15,40,227 // movaps %xmm11,%xmm4 |
| 5501 | .byte 65,15,40,234 // movaps %xmm10,%xmm5 |
| 5502 | .byte 65,15,40,241 // movaps %xmm9,%xmm6 |
| 5503 | .byte 65,15,40,248 // movaps %xmm8,%xmm7 |
| 5504 | .byte 255,224 // jmpq *%rax |
| 5505 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5506 | HIDDEN _sk_move_src_dst_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5507 | .globl _sk_move_src_dst_sse41 |
| 5508 | _sk_move_src_dst_sse41: |
| 5509 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5510 | .byte 15,40,224 // movaps %xmm0,%xmm4 |
| 5511 | .byte 15,40,233 // movaps %xmm1,%xmm5 |
| 5512 | .byte 15,40,242 // movaps %xmm2,%xmm6 |
| 5513 | .byte 15,40,251 // movaps %xmm3,%xmm7 |
| 5514 | .byte 255,224 // jmpq *%rax |
| 5515 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5516 | HIDDEN _sk_move_dst_src_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5517 | .globl _sk_move_dst_src_sse41 |
| 5518 | _sk_move_dst_src_sse41: |
| 5519 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5520 | .byte 15,40,196 // movaps %xmm4,%xmm0 |
| 5521 | .byte 15,40,205 // movaps %xmm5,%xmm1 |
| 5522 | .byte 15,40,214 // movaps %xmm6,%xmm2 |
| 5523 | .byte 15,40,223 // movaps %xmm7,%xmm3 |
| 5524 | .byte 255,224 // jmpq *%rax |
| 5525 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5526 | HIDDEN _sk_premul_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5527 | .globl _sk_premul_sse41 |
| 5528 | _sk_premul_sse41: |
| 5529 | .byte 15,89,195 // mulps %xmm3,%xmm0 |
| 5530 | .byte 15,89,203 // mulps %xmm3,%xmm1 |
| 5531 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 5532 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5533 | .byte 255,224 // jmpq *%rax |
| 5534 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5535 | HIDDEN _sk_unpremul_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5536 | .globl _sk_unpremul_sse41 |
| 5537 | _sk_unpremul_sse41: |
| 5538 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 5539 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5540 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 5541 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 5542 | .byte 68,15,94,203 // divps %xmm3,%xmm9 |
| 5543 | .byte 68,15,194,195,4 // cmpneqps %xmm3,%xmm8 |
| 5544 | .byte 69,15,84,193 // andps %xmm9,%xmm8 |
| 5545 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 5546 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 5547 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 5548 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5549 | .byte 255,224 // jmpq *%rax |
| 5550 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5551 | HIDDEN _sk_from_srgb_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5552 | .globl _sk_from_srgb_sse41 |
| 5553 | _sk_from_srgb_sse41: |
| 5554 | .byte 184,145,131,158,61 // mov $0x3d9e8391,%eax |
| 5555 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 5556 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 5557 | .byte 69,15,40,211 // movaps %xmm11,%xmm10 |
| 5558 | .byte 68,15,89,208 // mulps %xmm0,%xmm10 |
| 5559 | .byte 68,15,40,240 // movaps %xmm0,%xmm14 |
| 5560 | .byte 69,15,89,246 // mulps %xmm14,%xmm14 |
| 5561 | .byte 184,154,153,153,62 // mov $0x3e99999a,%eax |
| 5562 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5563 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5564 | .byte 184,92,143,50,63 // mov $0x3f328f5c,%eax |
| 5565 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 5566 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 5567 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5568 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 5569 | .byte 69,15,88,204 // addps %xmm12,%xmm9 |
| 5570 | .byte 184,10,215,35,59 // mov $0x3b23d70a,%eax |
| 5571 | .byte 102,68,15,110,232 // movd %eax,%xmm13 |
| 5572 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 5573 | .byte 69,15,89,206 // mulps %xmm14,%xmm9 |
| 5574 | .byte 69,15,88,205 // addps %xmm13,%xmm9 |
| 5575 | .byte 184,174,71,97,61 // mov $0x3d6147ae,%eax |
| 5576 | .byte 102,68,15,110,240 // movd %eax,%xmm14 |
| 5577 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 5578 | .byte 65,15,194,198,1 // cmpltps %xmm14,%xmm0 |
| 5579 | .byte 102,69,15,56,20,202 // blendvps %xmm0,%xmm10,%xmm9 |
| 5580 | .byte 69,15,40,251 // movaps %xmm11,%xmm15 |
| 5581 | .byte 68,15,89,249 // mulps %xmm1,%xmm15 |
| 5582 | .byte 15,40,193 // movaps %xmm1,%xmm0 |
| 5583 | .byte 15,89,192 // mulps %xmm0,%xmm0 |
| 5584 | .byte 69,15,40,208 // movaps %xmm8,%xmm10 |
| 5585 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 5586 | .byte 69,15,88,212 // addps %xmm12,%xmm10 |
| 5587 | .byte 68,15,89,208 // mulps %xmm0,%xmm10 |
| 5588 | .byte 69,15,88,213 // addps %xmm13,%xmm10 |
| 5589 | .byte 65,15,194,206,1 // cmpltps %xmm14,%xmm1 |
| 5590 | .byte 15,40,193 // movaps %xmm1,%xmm0 |
| 5591 | .byte 102,69,15,56,20,215 // blendvps %xmm0,%xmm15,%xmm10 |
| 5592 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 5593 | .byte 15,40,194 // movaps %xmm2,%xmm0 |
| 5594 | .byte 15,89,192 // mulps %xmm0,%xmm0 |
| 5595 | .byte 68,15,89,194 // mulps %xmm2,%xmm8 |
| 5596 | .byte 69,15,88,196 // addps %xmm12,%xmm8 |
| 5597 | .byte 68,15,89,192 // mulps %xmm0,%xmm8 |
| 5598 | .byte 69,15,88,197 // addps %xmm13,%xmm8 |
| 5599 | .byte 65,15,194,214,1 // cmpltps %xmm14,%xmm2 |
| 5600 | .byte 15,40,194 // movaps %xmm2,%xmm0 |
| 5601 | .byte 102,69,15,56,20,195 // blendvps %xmm0,%xmm11,%xmm8 |
| 5602 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5603 | .byte 65,15,40,193 // movaps %xmm9,%xmm0 |
| 5604 | .byte 65,15,40,202 // movaps %xmm10,%xmm1 |
| 5605 | .byte 65,15,40,208 // movaps %xmm8,%xmm2 |
| 5606 | .byte 255,224 // jmpq *%rax |
| 5607 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5608 | HIDDEN _sk_to_srgb_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5609 | .globl _sk_to_srgb_sse41 |
| 5610 | _sk_to_srgb_sse41: |
| 5611 | .byte 72,131,236,24 // sub $0x18,%rsp |
| 5612 | .byte 15,41,60,36 // movaps %xmm7,(%rsp) |
| 5613 | .byte 15,40,254 // movaps %xmm6,%xmm7 |
| 5614 | .byte 15,40,245 // movaps %xmm5,%xmm6 |
| 5615 | .byte 15,40,236 // movaps %xmm4,%xmm5 |
| 5616 | .byte 15,40,227 // movaps %xmm3,%xmm4 |
| 5617 | .byte 15,40,218 // movaps %xmm2,%xmm3 |
| 5618 | .byte 15,40,209 // movaps %xmm1,%xmm2 |
| 5619 | .byte 68,15,82,192 // rsqrtps %xmm0,%xmm8 |
| 5620 | .byte 69,15,83,200 // rcpps %xmm8,%xmm9 |
| 5621 | .byte 69,15,82,248 // rsqrtps %xmm8,%xmm15 |
| 5622 | .byte 184,41,92,71,65 // mov $0x41475c29,%eax |
| 5623 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 5624 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 5625 | .byte 69,15,40,211 // movaps %xmm11,%xmm10 |
| 5626 | .byte 68,15,89,208 // mulps %xmm0,%xmm10 |
| 5627 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5628 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5629 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5630 | .byte 184,194,135,210,62 // mov $0x3ed287c2,%eax |
| 5631 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 5632 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 5633 | .byte 184,206,111,48,63 // mov $0x3f306fce,%eax |
| 5634 | .byte 102,68,15,110,232 // movd %eax,%xmm13 |
| 5635 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 5636 | .byte 184,168,87,202,61 // mov $0x3dca57a8,%eax |
| 5637 | .byte 53,0,0,0,128 // xor $0x80000000,%eax |
| 5638 | .byte 102,68,15,110,240 // movd %eax,%xmm14 |
| 5639 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 5640 | .byte 69,15,89,205 // mulps %xmm13,%xmm9 |
| 5641 | .byte 69,15,88,206 // addps %xmm14,%xmm9 |
| 5642 | .byte 69,15,89,252 // mulps %xmm12,%xmm15 |
| 5643 | .byte 69,15,88,249 // addps %xmm9,%xmm15 |
| 5644 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5645 | .byte 69,15,93,207 // minps %xmm15,%xmm9 |
| 5646 | .byte 184,4,231,140,59 // mov $0x3b8ce704,%eax |
| 5647 | .byte 102,68,15,110,248 // movd %eax,%xmm15 |
| 5648 | .byte 69,15,198,255,0 // shufps $0x0,%xmm15,%xmm15 |
| 5649 | .byte 65,15,194,199,1 // cmpltps %xmm15,%xmm0 |
| 5650 | .byte 102,69,15,56,20,202 // blendvps %xmm0,%xmm10,%xmm9 |
| 5651 | .byte 68,15,82,210 // rsqrtps %xmm2,%xmm10 |
| 5652 | .byte 65,15,83,194 // rcpps %xmm10,%xmm0 |
| 5653 | .byte 69,15,82,210 // rsqrtps %xmm10,%xmm10 |
| 5654 | .byte 65,15,89,197 // mulps %xmm13,%xmm0 |
| 5655 | .byte 65,15,88,198 // addps %xmm14,%xmm0 |
| 5656 | .byte 69,15,89,212 // mulps %xmm12,%xmm10 |
| 5657 | .byte 68,15,88,208 // addps %xmm0,%xmm10 |
| 5658 | .byte 65,15,40,200 // movaps %xmm8,%xmm1 |
| 5659 | .byte 65,15,93,202 // minps %xmm10,%xmm1 |
| 5660 | .byte 69,15,40,211 // movaps %xmm11,%xmm10 |
| 5661 | .byte 68,15,89,210 // mulps %xmm2,%xmm10 |
| 5662 | .byte 65,15,194,215,1 // cmpltps %xmm15,%xmm2 |
| 5663 | .byte 15,40,194 // movaps %xmm2,%xmm0 |
| 5664 | .byte 102,65,15,56,20,202 // blendvps %xmm0,%xmm10,%xmm1 |
| 5665 | .byte 15,82,195 // rsqrtps %xmm3,%xmm0 |
| 5666 | .byte 15,83,208 // rcpps %xmm0,%xmm2 |
| 5667 | .byte 65,15,89,213 // mulps %xmm13,%xmm2 |
| 5668 | .byte 65,15,88,214 // addps %xmm14,%xmm2 |
| 5669 | .byte 15,82,192 // rsqrtps %xmm0,%xmm0 |
| 5670 | .byte 65,15,89,196 // mulps %xmm12,%xmm0 |
| 5671 | .byte 15,88,194 // addps %xmm2,%xmm0 |
| 5672 | .byte 68,15,93,192 // minps %xmm0,%xmm8 |
| 5673 | .byte 68,15,89,219 // mulps %xmm3,%xmm11 |
| 5674 | .byte 65,15,194,223,1 // cmpltps %xmm15,%xmm3 |
| 5675 | .byte 15,40,195 // movaps %xmm3,%xmm0 |
| 5676 | .byte 102,69,15,56,20,195 // blendvps %xmm0,%xmm11,%xmm8 |
| 5677 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5678 | .byte 65,15,40,193 // movaps %xmm9,%xmm0 |
| 5679 | .byte 65,15,40,208 // movaps %xmm8,%xmm2 |
| 5680 | .byte 15,40,220 // movaps %xmm4,%xmm3 |
| 5681 | .byte 15,40,229 // movaps %xmm5,%xmm4 |
| 5682 | .byte 15,40,238 // movaps %xmm6,%xmm5 |
| 5683 | .byte 15,40,247 // movaps %xmm7,%xmm6 |
| 5684 | .byte 15,40,60,36 // movaps (%rsp),%xmm7 |
| 5685 | .byte 72,131,196,24 // add $0x18,%rsp |
| 5686 | .byte 255,224 // jmpq *%rax |
| 5687 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5688 | HIDDEN _sk_scale_1_float_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5689 | .globl _sk_scale_1_float_sse41 |
| 5690 | _sk_scale_1_float_sse41: |
| 5691 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5692 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 5693 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5694 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 5695 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 5696 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 5697 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 5698 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5699 | .byte 255,224 // jmpq *%rax |
| 5700 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5701 | HIDDEN _sk_scale_u8_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5702 | .globl _sk_scale_u8_sse41 |
| 5703 | _sk_scale_u8_sse41: |
| 5704 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5705 | .byte 72,139,0 // mov (%rax),%rax |
| 5706 | .byte 102,68,15,56,49,4,56 // pmovzxbd (%rax,%rdi,1),%xmm8 |
| 5707 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 5708 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 5709 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 5710 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 5711 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 5712 | .byte 65,15,89,193 // mulps %xmm9,%xmm0 |
| 5713 | .byte 65,15,89,201 // mulps %xmm9,%xmm1 |
| 5714 | .byte 65,15,89,209 // mulps %xmm9,%xmm2 |
| 5715 | .byte 65,15,89,217 // mulps %xmm9,%xmm3 |
| 5716 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5717 | .byte 255,224 // jmpq *%rax |
| 5718 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5719 | HIDDEN _sk_lerp_1_float_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5720 | .globl _sk_lerp_1_float_sse41 |
| 5721 | _sk_lerp_1_float_sse41: |
| 5722 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5723 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 5724 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5725 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 5726 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 5727 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 5728 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 5729 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 5730 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 5731 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 5732 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 5733 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 5734 | .byte 15,92,223 // subps %xmm7,%xmm3 |
| 5735 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 5736 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 5737 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5738 | .byte 255,224 // jmpq *%rax |
| 5739 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5740 | HIDDEN _sk_lerp_u8_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5741 | .globl _sk_lerp_u8_sse41 |
| 5742 | _sk_lerp_u8_sse41: |
| 5743 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5744 | .byte 72,139,0 // mov (%rax),%rax |
| 5745 | .byte 102,68,15,56,49,4,56 // pmovzxbd (%rax,%rdi,1),%xmm8 |
| 5746 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 5747 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 5748 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 5749 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 5750 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 5751 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 5752 | .byte 65,15,89,193 // mulps %xmm9,%xmm0 |
| 5753 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 5754 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 5755 | .byte 65,15,89,201 // mulps %xmm9,%xmm1 |
| 5756 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 5757 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 5758 | .byte 65,15,89,209 // mulps %xmm9,%xmm2 |
| 5759 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 5760 | .byte 15,92,223 // subps %xmm7,%xmm3 |
| 5761 | .byte 65,15,89,217 // mulps %xmm9,%xmm3 |
| 5762 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 5763 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5764 | .byte 255,224 // jmpq *%rax |
| 5765 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5766 | HIDDEN _sk_lerp_565_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5767 | .globl _sk_lerp_565_sse41 |
| 5768 | _sk_lerp_565_sse41: |
| 5769 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5770 | .byte 72,139,0 // mov (%rax),%rax |
| 5771 | .byte 102,68,15,56,51,4,120 // pmovzxwd (%rax,%rdi,2),%xmm8 |
| 5772 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 5773 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5774 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 5775 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 5776 | .byte 68,15,91,203 // cvtdq2ps %xmm3,%xmm9 |
| 5777 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 5778 | .byte 102,68,15,110,208 // movd %eax,%xmm10 |
| 5779 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 5780 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 5781 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 5782 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5783 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 5784 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 5785 | .byte 68,15,91,203 // cvtdq2ps %xmm3,%xmm9 |
| 5786 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 5787 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 5788 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 5789 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 5790 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 5791 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5792 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 5793 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 5794 | .byte 68,15,91,195 // cvtdq2ps %xmm3,%xmm8 |
| 5795 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 5796 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5797 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 5798 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 5799 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 5800 | .byte 65,15,89,194 // mulps %xmm10,%xmm0 |
| 5801 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 5802 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 5803 | .byte 65,15,89,203 // mulps %xmm11,%xmm1 |
| 5804 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 5805 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 5806 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 5807 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 5808 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5809 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5810 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 5811 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5812 | .byte 255,224 // jmpq *%rax |
| 5813 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5814 | HIDDEN _sk_load_tables_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5815 | .globl _sk_load_tables_sse41 |
| 5816 | _sk_load_tables_sse41: |
| 5817 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5818 | .byte 72,139,8 // mov (%rax),%rcx |
| 5819 | .byte 76,139,64,8 // mov 0x8(%rax),%r8 |
| 5820 | .byte 243,68,15,111,4,185 // movdqu (%rcx,%rdi,4),%xmm8 |
| 5821 | .byte 185,255,0,0,0 // mov $0xff,%ecx |
| 5822 | .byte 102,15,110,193 // movd %ecx,%xmm0 |
| 5823 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 5824 | .byte 102,65,15,111,200 // movdqa %xmm8,%xmm1 |
| 5825 | .byte 102,15,114,209,8 // psrld $0x8,%xmm1 |
| 5826 | .byte 102,15,219,200 // pand %xmm0,%xmm1 |
| 5827 | .byte 102,65,15,111,208 // movdqa %xmm8,%xmm2 |
| 5828 | .byte 102,15,114,210,16 // psrld $0x10,%xmm2 |
| 5829 | .byte 102,15,219,208 // pand %xmm0,%xmm2 |
| 5830 | .byte 102,65,15,219,192 // pand %xmm8,%xmm0 |
| 5831 | .byte 102,72,15,58,22,193,1 // pextrq $0x1,%xmm0,%rcx |
| 5832 | .byte 65,137,201 // mov %ecx,%r9d |
| 5833 | .byte 72,193,233,32 // shr $0x20,%rcx |
| 5834 | .byte 102,73,15,126,194 // movq %xmm0,%r10 |
| 5835 | .byte 69,137,211 // mov %r10d,%r11d |
| 5836 | .byte 73,193,234,32 // shr $0x20,%r10 |
| 5837 | .byte 243,67,15,16,4,152 // movss (%r8,%r11,4),%xmm0 |
| 5838 | .byte 102,67,15,58,33,4,144,16 // insertps $0x10,(%r8,%r10,4),%xmm0 |
| 5839 | .byte 102,67,15,58,33,4,136,32 // insertps $0x20,(%r8,%r9,4),%xmm0 |
| 5840 | .byte 102,65,15,58,33,4,136,48 // insertps $0x30,(%r8,%rcx,4),%xmm0 |
| 5841 | .byte 76,139,64,16 // mov 0x10(%rax),%r8 |
| 5842 | .byte 102,73,15,58,22,202,1 // pextrq $0x1,%xmm1,%r10 |
| 5843 | .byte 77,137,209 // mov %r10,%r9 |
| 5844 | .byte 73,193,233,32 // shr $0x20,%r9 |
| 5845 | .byte 102,72,15,126,201 // movq %xmm1,%rcx |
| 5846 | .byte 65,137,203 // mov %ecx,%r11d |
| 5847 | .byte 65,129,227,255,255,255,0 // and $0xffffff,%r11d |
| 5848 | .byte 72,193,233,30 // shr $0x1e,%rcx |
| 5849 | .byte 65,129,226,255,255,255,0 // and $0xffffff,%r10d |
| 5850 | .byte 243,67,15,16,12,152 // movss (%r8,%r11,4),%xmm1 |
| 5851 | .byte 102,65,15,58,33,12,8,16 // insertps $0x10,(%r8,%rcx,1),%xmm1 |
| 5852 | .byte 243,67,15,16,28,144 // movss (%r8,%r10,4),%xmm3 |
| 5853 | .byte 102,15,58,33,203,32 // insertps $0x20,%xmm3,%xmm1 |
| 5854 | .byte 243,67,15,16,28,136 // movss (%r8,%r9,4),%xmm3 |
| 5855 | .byte 102,15,58,33,203,48 // insertps $0x30,%xmm3,%xmm1 |
| 5856 | .byte 76,139,72,24 // mov 0x18(%rax),%r9 |
| 5857 | .byte 102,72,15,58,22,209,1 // pextrq $0x1,%xmm2,%rcx |
| 5858 | .byte 68,15,183,193 // movzwl %cx,%r8d |
| 5859 | .byte 72,193,233,32 // shr $0x20,%rcx |
| 5860 | .byte 102,72,15,126,208 // movq %xmm2,%rax |
| 5861 | .byte 68,15,183,208 // movzwl %ax,%r10d |
| 5862 | .byte 72,193,232,30 // shr $0x1e,%rax |
| 5863 | .byte 243,67,15,16,20,145 // movss (%r9,%r10,4),%xmm2 |
| 5864 | .byte 102,65,15,58,33,20,1,16 // insertps $0x10,(%r9,%rax,1),%xmm2 |
| 5865 | .byte 243,67,15,16,28,129 // movss (%r9,%r8,4),%xmm3 |
| 5866 | .byte 102,15,58,33,211,32 // insertps $0x20,%xmm3,%xmm2 |
| 5867 | .byte 243,65,15,16,28,137 // movss (%r9,%rcx,4),%xmm3 |
| 5868 | .byte 102,15,58,33,211,48 // insertps $0x30,%xmm3,%xmm2 |
| 5869 | .byte 102,65,15,114,208,24 // psrld $0x18,%xmm8 |
| 5870 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 5871 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 5872 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5873 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 5874 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 5875 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5876 | .byte 255,224 // jmpq *%rax |
| 5877 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5878 | HIDDEN _sk_load_a8_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5879 | .globl _sk_load_a8_sse41 |
| 5880 | _sk_load_a8_sse41: |
| 5881 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5882 | .byte 72,139,0 // mov (%rax),%rax |
| 5883 | .byte 102,15,56,49,4,56 // pmovzxbd (%rax,%rdi,1),%xmm0 |
| 5884 | .byte 15,91,192 // cvtdq2ps %xmm0,%xmm0 |
| 5885 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 5886 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5887 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 5888 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 5889 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5890 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 5891 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 5892 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 5893 | .byte 255,224 // jmpq *%rax |
| 5894 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5895 | HIDDEN _sk_store_a8_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5896 | .globl _sk_store_a8_sse41 |
| 5897 | _sk_store_a8_sse41: |
| 5898 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5899 | .byte 72,139,0 // mov (%rax),%rax |
| 5900 | .byte 185,0,0,127,67 // mov $0x437f0000,%ecx |
| 5901 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 5902 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5903 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 5904 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 5905 | .byte 102,69,15,56,43,192 // packusdw %xmm8,%xmm8 |
| 5906 | .byte 102,69,15,103,192 // packuswb %xmm8,%xmm8 |
| 5907 | .byte 102,68,15,126,4,56 // movd %xmm8,(%rax,%rdi,1) |
| 5908 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5909 | .byte 255,224 // jmpq *%rax |
| 5910 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5911 | HIDDEN _sk_load_565_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5912 | .globl _sk_load_565_sse41 |
| 5913 | _sk_load_565_sse41: |
| 5914 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5915 | .byte 72,139,0 // mov (%rax),%rax |
| 5916 | .byte 102,15,56,51,20,120 // pmovzxwd (%rax,%rdi,2),%xmm2 |
| 5917 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 5918 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 5919 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 5920 | .byte 102,15,219,194 // pand %xmm2,%xmm0 |
| 5921 | .byte 15,91,200 // cvtdq2ps %xmm0,%xmm1 |
| 5922 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 5923 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 5924 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 5925 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 5926 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 5927 | .byte 102,15,110,200 // movd %eax,%xmm1 |
| 5928 | .byte 102,15,112,201,0 // pshufd $0x0,%xmm1,%xmm1 |
| 5929 | .byte 102,15,219,202 // pand %xmm2,%xmm1 |
| 5930 | .byte 15,91,217 // cvtdq2ps %xmm1,%xmm3 |
| 5931 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 5932 | .byte 102,15,110,200 // movd %eax,%xmm1 |
| 5933 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 5934 | .byte 15,89,203 // mulps %xmm3,%xmm1 |
| 5935 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 5936 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5937 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 5938 | .byte 102,15,219,218 // pand %xmm2,%xmm3 |
| 5939 | .byte 15,91,219 // cvtdq2ps %xmm3,%xmm3 |
| 5940 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 5941 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 5942 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 5943 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 5944 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 5945 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 5946 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 5947 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5948 | .byte 255,224 // jmpq *%rax |
| 5949 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5950 | HIDDEN _sk_store_565_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5951 | .globl _sk_store_565_sse41 |
| 5952 | _sk_store_565_sse41: |
| 5953 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5954 | .byte 72,139,0 // mov (%rax),%rax |
| 5955 | .byte 185,0,0,248,65 // mov $0x41f80000,%ecx |
| 5956 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 5957 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5958 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 5959 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 5960 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 5961 | .byte 102,65,15,114,241,11 // pslld $0xb,%xmm9 |
| 5962 | .byte 185,0,0,124,66 // mov $0x427c0000,%ecx |
| 5963 | .byte 102,68,15,110,209 // movd %ecx,%xmm10 |
| 5964 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 5965 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 5966 | .byte 102,69,15,91,210 // cvtps2dq %xmm10,%xmm10 |
| 5967 | .byte 102,65,15,114,242,5 // pslld $0x5,%xmm10 |
| 5968 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 5969 | .byte 68,15,89,194 // mulps %xmm2,%xmm8 |
| 5970 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 5971 | .byte 102,69,15,86,194 // orpd %xmm10,%xmm8 |
| 5972 | .byte 102,69,15,56,43,192 // packusdw %xmm8,%xmm8 |
| 5973 | .byte 102,68,15,214,4,120 // movq %xmm8,(%rax,%rdi,2) |
| 5974 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5975 | .byte 255,224 // jmpq *%rax |
| 5976 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 5977 | HIDDEN _sk_load_8888_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 5978 | .globl _sk_load_8888_sse41 |
| 5979 | _sk_load_8888_sse41: |
| 5980 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 5981 | .byte 72,139,0 // mov (%rax),%rax |
| 5982 | .byte 243,15,111,28,184 // movdqu (%rax,%rdi,4),%xmm3 |
| 5983 | .byte 184,255,0,0,0 // mov $0xff,%eax |
| 5984 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 5985 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 5986 | .byte 102,15,111,203 // movdqa %xmm3,%xmm1 |
| 5987 | .byte 102,15,114,209,8 // psrld $0x8,%xmm1 |
| 5988 | .byte 102,15,219,200 // pand %xmm0,%xmm1 |
| 5989 | .byte 102,15,111,211 // movdqa %xmm3,%xmm2 |
| 5990 | .byte 102,15,114,210,16 // psrld $0x10,%xmm2 |
| 5991 | .byte 102,15,219,208 // pand %xmm0,%xmm2 |
| 5992 | .byte 102,15,219,195 // pand %xmm3,%xmm0 |
| 5993 | .byte 15,91,192 // cvtdq2ps %xmm0,%xmm0 |
| 5994 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 5995 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 5996 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 5997 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 5998 | .byte 15,91,201 // cvtdq2ps %xmm1,%xmm1 |
| 5999 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6000 | .byte 15,91,210 // cvtdq2ps %xmm2,%xmm2 |
| 6001 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6002 | .byte 102,15,114,211,24 // psrld $0x18,%xmm3 |
| 6003 | .byte 15,91,219 // cvtdq2ps %xmm3,%xmm3 |
| 6004 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 6005 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6006 | .byte 255,224 // jmpq *%rax |
| 6007 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6008 | HIDDEN _sk_store_8888_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6009 | .globl _sk_store_8888_sse41 |
| 6010 | _sk_store_8888_sse41: |
| 6011 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6012 | .byte 72,139,0 // mov (%rax),%rax |
| 6013 | .byte 185,0,0,127,67 // mov $0x437f0000,%ecx |
| 6014 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 6015 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6016 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6017 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 6018 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 6019 | .byte 69,15,40,208 // movaps %xmm8,%xmm10 |
| 6020 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 6021 | .byte 102,69,15,91,210 // cvtps2dq %xmm10,%xmm10 |
| 6022 | .byte 102,65,15,114,242,8 // pslld $0x8,%xmm10 |
| 6023 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 6024 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6025 | .byte 68,15,89,202 // mulps %xmm2,%xmm9 |
| 6026 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 6027 | .byte 102,65,15,114,241,16 // pslld $0x10,%xmm9 |
| 6028 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 6029 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 6030 | .byte 102,65,15,114,240,24 // pslld $0x18,%xmm8 |
| 6031 | .byte 102,69,15,235,193 // por %xmm9,%xmm8 |
| 6032 | .byte 102,69,15,235,194 // por %xmm10,%xmm8 |
| 6033 | .byte 243,68,15,127,4,184 // movdqu %xmm8,(%rax,%rdi,4) |
| 6034 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6035 | .byte 255,224 // jmpq *%rax |
| 6036 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6037 | HIDDEN _sk_load_f16_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6038 | .globl _sk_load_f16_sse41 |
| 6039 | _sk_load_f16_sse41: |
| 6040 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6041 | .byte 72,139,0 // mov (%rax),%rax |
| 6042 | .byte 243,15,111,4,248 // movdqu (%rax,%rdi,8),%xmm0 |
| 6043 | .byte 243,15,111,76,248,16 // movdqu 0x10(%rax,%rdi,8),%xmm1 |
| 6044 | .byte 102,15,111,208 // movdqa %xmm0,%xmm2 |
| 6045 | .byte 102,15,97,209 // punpcklwd %xmm1,%xmm2 |
| 6046 | .byte 102,15,105,193 // punpckhwd %xmm1,%xmm0 |
| 6047 | .byte 102,68,15,111,194 // movdqa %xmm2,%xmm8 |
| 6048 | .byte 102,68,15,97,192 // punpcklwd %xmm0,%xmm8 |
| 6049 | .byte 102,15,105,208 // punpckhwd %xmm0,%xmm2 |
| 6050 | .byte 184,0,4,0,4 // mov $0x4000400,%eax |
| 6051 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 6052 | .byte 102,15,112,216,0 // pshufd $0x0,%xmm0,%xmm3 |
| 6053 | .byte 102,15,111,203 // movdqa %xmm3,%xmm1 |
| 6054 | .byte 102,65,15,101,200 // pcmpgtw %xmm8,%xmm1 |
| 6055 | .byte 102,65,15,223,200 // pandn %xmm8,%xmm1 |
| 6056 | .byte 102,15,101,218 // pcmpgtw %xmm2,%xmm3 |
| 6057 | .byte 102,15,223,218 // pandn %xmm2,%xmm3 |
| 6058 | .byte 102,15,56,51,193 // pmovzxwd %xmm1,%xmm0 |
| 6059 | .byte 102,15,114,240,13 // pslld $0xd,%xmm0 |
| 6060 | .byte 184,0,0,128,119 // mov $0x77800000,%eax |
| 6061 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 6062 | .byte 102,68,15,112,194,0 // pshufd $0x0,%xmm2,%xmm8 |
| 6063 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6064 | .byte 102,69,15,239,201 // pxor %xmm9,%xmm9 |
| 6065 | .byte 102,65,15,105,201 // punpckhwd %xmm9,%xmm1 |
| 6066 | .byte 102,15,114,241,13 // pslld $0xd,%xmm1 |
| 6067 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6068 | .byte 102,15,56,51,211 // pmovzxwd %xmm3,%xmm2 |
| 6069 | .byte 102,15,114,242,13 // pslld $0xd,%xmm2 |
| 6070 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6071 | .byte 102,65,15,105,217 // punpckhwd %xmm9,%xmm3 |
| 6072 | .byte 102,15,114,243,13 // pslld $0xd,%xmm3 |
| 6073 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 6074 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6075 | .byte 255,224 // jmpq *%rax |
| 6076 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6077 | HIDDEN _sk_store_f16_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6078 | .globl _sk_store_f16_sse41 |
| 6079 | _sk_store_f16_sse41: |
| 6080 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6081 | .byte 72,139,0 // mov (%rax),%rax |
| 6082 | .byte 185,0,0,128,7 // mov $0x7800000,%ecx |
| 6083 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 6084 | .byte 102,69,15,112,192,0 // pshufd $0x0,%xmm8,%xmm8 |
| 6085 | .byte 102,69,15,111,200 // movdqa %xmm8,%xmm9 |
| 6086 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 6087 | .byte 102,65,15,114,209,13 // psrld $0xd,%xmm9 |
| 6088 | .byte 102,69,15,111,208 // movdqa %xmm8,%xmm10 |
| 6089 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 6090 | .byte 102,65,15,114,210,13 // psrld $0xd,%xmm10 |
| 6091 | .byte 102,69,15,111,216 // movdqa %xmm8,%xmm11 |
| 6092 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 6093 | .byte 102,65,15,114,211,13 // psrld $0xd,%xmm11 |
| 6094 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 6095 | .byte 102,65,15,114,208,13 // psrld $0xd,%xmm8 |
| 6096 | .byte 102,65,15,115,250,2 // pslldq $0x2,%xmm10 |
| 6097 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 6098 | .byte 102,65,15,115,248,2 // pslldq $0x2,%xmm8 |
| 6099 | .byte 102,69,15,235,195 // por %xmm11,%xmm8 |
| 6100 | .byte 102,69,15,111,202 // movdqa %xmm10,%xmm9 |
| 6101 | .byte 102,69,15,98,200 // punpckldq %xmm8,%xmm9 |
| 6102 | .byte 243,68,15,127,12,248 // movdqu %xmm9,(%rax,%rdi,8) |
| 6103 | .byte 102,69,15,106,208 // punpckhdq %xmm8,%xmm10 |
| 6104 | .byte 243,68,15,127,84,248,16 // movdqu %xmm10,0x10(%rax,%rdi,8) |
| 6105 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6106 | .byte 255,224 // jmpq *%rax |
| 6107 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6108 | HIDDEN _sk_store_f32_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6109 | .globl _sk_store_f32_sse41 |
| 6110 | _sk_store_f32_sse41: |
| 6111 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6112 | .byte 72,139,0 // mov (%rax),%rax |
| 6113 | .byte 72,137,249 // mov %rdi,%rcx |
| 6114 | .byte 72,193,225,4 // shl $0x4,%rcx |
| 6115 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6116 | .byte 68,15,40,200 // movaps %xmm0,%xmm9 |
| 6117 | .byte 68,15,20,201 // unpcklps %xmm1,%xmm9 |
| 6118 | .byte 68,15,40,210 // movaps %xmm2,%xmm10 |
| 6119 | .byte 68,15,40,218 // movaps %xmm2,%xmm11 |
| 6120 | .byte 68,15,20,219 // unpcklps %xmm3,%xmm11 |
| 6121 | .byte 68,15,21,193 // unpckhps %xmm1,%xmm8 |
| 6122 | .byte 68,15,21,211 // unpckhps %xmm3,%xmm10 |
| 6123 | .byte 69,15,40,225 // movaps %xmm9,%xmm12 |
| 6124 | .byte 102,69,15,20,227 // unpcklpd %xmm11,%xmm12 |
| 6125 | .byte 69,15,18,217 // movhlps %xmm9,%xmm11 |
| 6126 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6127 | .byte 102,69,15,20,202 // unpcklpd %xmm10,%xmm9 |
| 6128 | .byte 69,15,18,208 // movhlps %xmm8,%xmm10 |
| 6129 | .byte 102,68,15,17,36,8 // movupd %xmm12,(%rax,%rcx,1) |
| 6130 | .byte 68,15,17,92,8,16 // movups %xmm11,0x10(%rax,%rcx,1) |
| 6131 | .byte 102,68,15,17,76,8,32 // movupd %xmm9,0x20(%rax,%rcx,1) |
| 6132 | .byte 68,15,17,84,8,48 // movups %xmm10,0x30(%rax,%rcx,1) |
| 6133 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6134 | .byte 255,224 // jmpq *%rax |
| 6135 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6136 | HIDDEN _sk_clamp_x_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6137 | .globl _sk_clamp_x_sse41 |
| 6138 | _sk_clamp_x_sse41: |
| 6139 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6140 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6141 | .byte 68,15,95,192 // maxps %xmm0,%xmm8 |
| 6142 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 6143 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6144 | .byte 102,15,118,192 // pcmpeqd %xmm0,%xmm0 |
| 6145 | .byte 102,65,15,254,193 // paddd %xmm9,%xmm0 |
| 6146 | .byte 68,15,93,192 // minps %xmm0,%xmm8 |
| 6147 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6148 | .byte 65,15,40,192 // movaps %xmm8,%xmm0 |
| 6149 | .byte 255,224 // jmpq *%rax |
| 6150 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6151 | HIDDEN _sk_clamp_y_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6152 | .globl _sk_clamp_y_sse41 |
| 6153 | _sk_clamp_y_sse41: |
| 6154 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6155 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6156 | .byte 68,15,95,193 // maxps %xmm1,%xmm8 |
| 6157 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 6158 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6159 | .byte 102,15,118,201 // pcmpeqd %xmm1,%xmm1 |
| 6160 | .byte 102,65,15,254,201 // paddd %xmm9,%xmm1 |
| 6161 | .byte 68,15,93,193 // minps %xmm1,%xmm8 |
| 6162 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6163 | .byte 65,15,40,200 // movaps %xmm8,%xmm1 |
| 6164 | .byte 255,224 // jmpq *%rax |
| 6165 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6166 | HIDDEN _sk_repeat_x_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6167 | .globl _sk_repeat_x_sse41 |
| 6168 | _sk_repeat_x_sse41: |
| 6169 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6170 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6171 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6172 | .byte 68,15,40,200 // movaps %xmm0,%xmm9 |
| 6173 | .byte 69,15,94,200 // divps %xmm8,%xmm9 |
| 6174 | .byte 102,69,15,58,8,201,1 // roundps $0x1,%xmm9,%xmm9 |
| 6175 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 6176 | .byte 65,15,92,193 // subps %xmm9,%xmm0 |
| 6177 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 6178 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 6179 | .byte 65,15,93,193 // minps %xmm9,%xmm0 |
| 6180 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6181 | .byte 255,224 // jmpq *%rax |
| 6182 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6183 | HIDDEN _sk_repeat_y_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6184 | .globl _sk_repeat_y_sse41 |
| 6185 | _sk_repeat_y_sse41: |
| 6186 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6187 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6188 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6189 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 6190 | .byte 69,15,94,200 // divps %xmm8,%xmm9 |
| 6191 | .byte 102,69,15,58,8,201,1 // roundps $0x1,%xmm9,%xmm9 |
| 6192 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 6193 | .byte 65,15,92,201 // subps %xmm9,%xmm1 |
| 6194 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 6195 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 6196 | .byte 65,15,93,201 // minps %xmm9,%xmm1 |
| 6197 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6198 | .byte 255,224 // jmpq *%rax |
| 6199 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6200 | HIDDEN _sk_mirror_x_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6201 | .globl _sk_mirror_x_sse41 |
| 6202 | _sk_mirror_x_sse41: |
| 6203 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6204 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6205 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6206 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6207 | .byte 65,15,92,193 // subps %xmm9,%xmm0 |
| 6208 | .byte 243,69,15,88,192 // addss %xmm8,%xmm8 |
| 6209 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6210 | .byte 68,15,40,208 // movaps %xmm0,%xmm10 |
| 6211 | .byte 69,15,94,208 // divps %xmm8,%xmm10 |
| 6212 | .byte 102,69,15,58,8,210,1 // roundps $0x1,%xmm10,%xmm10 |
| 6213 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 6214 | .byte 65,15,92,194 // subps %xmm10,%xmm0 |
| 6215 | .byte 65,15,92,193 // subps %xmm9,%xmm0 |
| 6216 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6217 | .byte 68,15,92,192 // subps %xmm0,%xmm8 |
| 6218 | .byte 65,15,84,192 // andps %xmm8,%xmm0 |
| 6219 | .byte 102,69,15,118,192 // pcmpeqd %xmm8,%xmm8 |
| 6220 | .byte 102,69,15,254,193 // paddd %xmm9,%xmm8 |
| 6221 | .byte 65,15,93,192 // minps %xmm8,%xmm0 |
| 6222 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6223 | .byte 255,224 // jmpq *%rax |
| 6224 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6225 | HIDDEN _sk_mirror_y_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6226 | .globl _sk_mirror_y_sse41 |
| 6227 | _sk_mirror_y_sse41: |
| 6228 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6229 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6230 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6231 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6232 | .byte 65,15,92,201 // subps %xmm9,%xmm1 |
| 6233 | .byte 243,69,15,88,192 // addss %xmm8,%xmm8 |
| 6234 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6235 | .byte 68,15,40,209 // movaps %xmm1,%xmm10 |
| 6236 | .byte 69,15,94,208 // divps %xmm8,%xmm10 |
| 6237 | .byte 102,69,15,58,8,210,1 // roundps $0x1,%xmm10,%xmm10 |
| 6238 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 6239 | .byte 65,15,92,202 // subps %xmm10,%xmm1 |
| 6240 | .byte 65,15,92,201 // subps %xmm9,%xmm1 |
| 6241 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6242 | .byte 68,15,92,193 // subps %xmm1,%xmm8 |
| 6243 | .byte 65,15,84,200 // andps %xmm8,%xmm1 |
| 6244 | .byte 102,69,15,118,192 // pcmpeqd %xmm8,%xmm8 |
| 6245 | .byte 102,69,15,254,193 // paddd %xmm9,%xmm8 |
| 6246 | .byte 65,15,93,200 // minps %xmm8,%xmm1 |
| 6247 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6248 | .byte 255,224 // jmpq *%rax |
| 6249 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6250 | HIDDEN _sk_luminance_to_alpha_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6251 | .globl _sk_luminance_to_alpha_sse41 |
| 6252 | _sk_luminance_to_alpha_sse41: |
| 6253 | .byte 184,208,179,89,62 // mov $0x3e59b3d0,%eax |
| 6254 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 6255 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 6256 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 6257 | .byte 184,89,23,55,63 // mov $0x3f371759,%eax |
| 6258 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 6259 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6260 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 6261 | .byte 15,88,195 // addps %xmm3,%xmm0 |
| 6262 | .byte 184,152,221,147,61 // mov $0x3d93dd98,%eax |
| 6263 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 6264 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 6265 | .byte 15,89,218 // mulps %xmm2,%xmm3 |
| 6266 | .byte 15,88,216 // addps %xmm0,%xmm3 |
| 6267 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6268 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 6269 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 6270 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 6271 | .byte 255,224 // jmpq *%rax |
| 6272 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6273 | HIDDEN _sk_matrix_2x3_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6274 | .globl _sk_matrix_2x3_sse41 |
| 6275 | _sk_matrix_2x3_sse41: |
| 6276 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 6277 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6278 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6279 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 6280 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 6281 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6282 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 6283 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6284 | .byte 243,68,15,16,88,16 // movss 0x10(%rax),%xmm11 |
| 6285 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6286 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6287 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6288 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6289 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 6290 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 6291 | .byte 243,68,15,16,80,12 // movss 0xc(%rax),%xmm10 |
| 6292 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6293 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 6294 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6295 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6296 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6297 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6298 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 6299 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6300 | .byte 255,224 // jmpq *%rax |
| 6301 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6302 | HIDDEN _sk_matrix_3x4_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6303 | .globl _sk_matrix_3x4_sse41 |
| 6304 | _sk_matrix_3x4_sse41: |
| 6305 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 6306 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6307 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6308 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 6309 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 6310 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6311 | .byte 243,68,15,16,80,12 // movss 0xc(%rax),%xmm10 |
| 6312 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6313 | .byte 243,68,15,16,88,24 // movss 0x18(%rax),%xmm11 |
| 6314 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6315 | .byte 243,68,15,16,96,36 // movss 0x24(%rax),%xmm12 |
| 6316 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6317 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 6318 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6319 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6320 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6321 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6322 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 6323 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 6324 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 6325 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6326 | .byte 243,68,15,16,88,28 // movss 0x1c(%rax),%xmm11 |
| 6327 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6328 | .byte 243,68,15,16,96,40 // movss 0x28(%rax),%xmm12 |
| 6329 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6330 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 6331 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6332 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6333 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6334 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6335 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 6336 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 6337 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6338 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 6339 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6340 | .byte 243,68,15,16,96,32 // movss 0x20(%rax),%xmm12 |
| 6341 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6342 | .byte 243,68,15,16,104,44 // movss 0x2c(%rax),%xmm13 |
| 6343 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6344 | .byte 68,15,89,226 // mulps %xmm2,%xmm12 |
| 6345 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 6346 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 6347 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6348 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 6349 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6350 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6351 | .byte 65,15,40,210 // movaps %xmm10,%xmm2 |
| 6352 | .byte 255,224 // jmpq *%rax |
| 6353 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6354 | HIDDEN _sk_matrix_4x5_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6355 | .globl _sk_matrix_4x5_sse41 |
| 6356 | _sk_matrix_4x5_sse41: |
| 6357 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 6358 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6359 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6360 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 6361 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 6362 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6363 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 6364 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6365 | .byte 243,68,15,16,88,32 // movss 0x20(%rax),%xmm11 |
| 6366 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6367 | .byte 243,68,15,16,96,48 // movss 0x30(%rax),%xmm12 |
| 6368 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6369 | .byte 243,68,15,16,104,64 // movss 0x40(%rax),%xmm13 |
| 6370 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6371 | .byte 68,15,89,227 // mulps %xmm3,%xmm12 |
| 6372 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 6373 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 6374 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6375 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6376 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6377 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6378 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 6379 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 6380 | .byte 243,68,15,16,80,20 // movss 0x14(%rax),%xmm10 |
| 6381 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6382 | .byte 243,68,15,16,88,36 // movss 0x24(%rax),%xmm11 |
| 6383 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6384 | .byte 243,68,15,16,96,52 // movss 0x34(%rax),%xmm12 |
| 6385 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6386 | .byte 243,68,15,16,104,68 // movss 0x44(%rax),%xmm13 |
| 6387 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6388 | .byte 68,15,89,227 // mulps %xmm3,%xmm12 |
| 6389 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 6390 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 6391 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6392 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 6393 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6394 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6395 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 6396 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 6397 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6398 | .byte 243,68,15,16,88,24 // movss 0x18(%rax),%xmm11 |
| 6399 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6400 | .byte 243,68,15,16,96,40 // movss 0x28(%rax),%xmm12 |
| 6401 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6402 | .byte 243,68,15,16,104,56 // movss 0x38(%rax),%xmm13 |
| 6403 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6404 | .byte 243,68,15,16,112,72 // movss 0x48(%rax),%xmm14 |
| 6405 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 6406 | .byte 68,15,89,235 // mulps %xmm3,%xmm13 |
| 6407 | .byte 69,15,88,238 // addps %xmm14,%xmm13 |
| 6408 | .byte 68,15,89,226 // mulps %xmm2,%xmm12 |
| 6409 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 6410 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 6411 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6412 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 6413 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6414 | .byte 243,68,15,16,88,12 // movss 0xc(%rax),%xmm11 |
| 6415 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6416 | .byte 243,68,15,16,96,28 // movss 0x1c(%rax),%xmm12 |
| 6417 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6418 | .byte 243,68,15,16,104,44 // movss 0x2c(%rax),%xmm13 |
| 6419 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6420 | .byte 243,68,15,16,112,60 // movss 0x3c(%rax),%xmm14 |
| 6421 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 6422 | .byte 243,68,15,16,120,76 // movss 0x4c(%rax),%xmm15 |
| 6423 | .byte 69,15,198,255,0 // shufps $0x0,%xmm15,%xmm15 |
| 6424 | .byte 68,15,89,243 // mulps %xmm3,%xmm14 |
| 6425 | .byte 69,15,88,247 // addps %xmm15,%xmm14 |
| 6426 | .byte 68,15,89,234 // mulps %xmm2,%xmm13 |
| 6427 | .byte 69,15,88,238 // addps %xmm14,%xmm13 |
| 6428 | .byte 69,15,89,225 // mulps %xmm9,%xmm12 |
| 6429 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 6430 | .byte 69,15,89,216 // mulps %xmm8,%xmm11 |
| 6431 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6432 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6433 | .byte 65,15,40,210 // movaps %xmm10,%xmm2 |
| 6434 | .byte 65,15,40,219 // movaps %xmm11,%xmm3 |
| 6435 | .byte 255,224 // jmpq *%rax |
| 6436 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6437 | HIDDEN _sk_matrix_perspective_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6438 | .globl _sk_matrix_perspective_sse41 |
| 6439 | _sk_matrix_perspective_sse41: |
| 6440 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6441 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6442 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 6443 | .byte 243,68,15,16,72,4 // movss 0x4(%rax),%xmm9 |
| 6444 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6445 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6446 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 6447 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6448 | .byte 68,15,89,201 // mulps %xmm1,%xmm9 |
| 6449 | .byte 69,15,88,202 // addps %xmm10,%xmm9 |
| 6450 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6451 | .byte 65,15,88,193 // addps %xmm9,%xmm0 |
| 6452 | .byte 243,68,15,16,72,12 // movss 0xc(%rax),%xmm9 |
| 6453 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6454 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 6455 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6456 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 6457 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6458 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 6459 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6460 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 6461 | .byte 69,15,88,202 // addps %xmm10,%xmm9 |
| 6462 | .byte 243,68,15,16,80,24 // movss 0x18(%rax),%xmm10 |
| 6463 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6464 | .byte 243,68,15,16,88,28 // movss 0x1c(%rax),%xmm11 |
| 6465 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6466 | .byte 243,68,15,16,96,32 // movss 0x20(%rax),%xmm12 |
| 6467 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6468 | .byte 68,15,89,217 // mulps %xmm1,%xmm11 |
| 6469 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 6470 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 6471 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 6472 | .byte 65,15,83,202 // rcpps %xmm10,%xmm1 |
| 6473 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 6474 | .byte 68,15,89,201 // mulps %xmm1,%xmm9 |
| 6475 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6476 | .byte 65,15,40,201 // movaps %xmm9,%xmm1 |
| 6477 | .byte 255,224 // jmpq *%rax |
| 6478 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6479 | HIDDEN _sk_linear_gradient_2stops_sse41 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6480 | .globl _sk_linear_gradient_2stops_sse41 |
| 6481 | _sk_linear_gradient_2stops_sse41: |
| 6482 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6483 | .byte 68,15,16,8 // movups (%rax),%xmm9 |
| 6484 | .byte 15,16,88,16 // movups 0x10(%rax),%xmm3 |
| 6485 | .byte 68,15,40,195 // movaps %xmm3,%xmm8 |
| 6486 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6487 | .byte 65,15,40,201 // movaps %xmm9,%xmm1 |
| 6488 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 6489 | .byte 68,15,89,192 // mulps %xmm0,%xmm8 |
| 6490 | .byte 68,15,88,193 // addps %xmm1,%xmm8 |
| 6491 | .byte 15,40,203 // movaps %xmm3,%xmm1 |
| 6492 | .byte 15,198,201,85 // shufps $0x55,%xmm1,%xmm1 |
| 6493 | .byte 65,15,40,209 // movaps %xmm9,%xmm2 |
| 6494 | .byte 15,198,210,85 // shufps $0x55,%xmm2,%xmm2 |
| 6495 | .byte 15,89,200 // mulps %xmm0,%xmm1 |
| 6496 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 6497 | .byte 15,40,211 // movaps %xmm3,%xmm2 |
| 6498 | .byte 15,198,210,170 // shufps $0xaa,%xmm2,%xmm2 |
| 6499 | .byte 69,15,40,209 // movaps %xmm9,%xmm10 |
| 6500 | .byte 69,15,198,210,170 // shufps $0xaa,%xmm10,%xmm10 |
| 6501 | .byte 15,89,208 // mulps %xmm0,%xmm2 |
| 6502 | .byte 65,15,88,210 // addps %xmm10,%xmm2 |
| 6503 | .byte 15,198,219,255 // shufps $0xff,%xmm3,%xmm3 |
| 6504 | .byte 69,15,198,201,255 // shufps $0xff,%xmm9,%xmm9 |
| 6505 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 6506 | .byte 65,15,88,217 // addps %xmm9,%xmm3 |
| 6507 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6508 | .byte 65,15,40,192 // movaps %xmm8,%xmm0 |
| 6509 | .byte 255,224 // jmpq *%rax |
| 6510 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6511 | HIDDEN _sk_start_pipeline_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6512 | .globl _sk_start_pipeline_sse2 |
| 6513 | _sk_start_pipeline_sse2: |
| 6514 | .byte 65,87 // push %r15 |
| 6515 | .byte 65,86 // push %r14 |
| 6516 | .byte 65,85 // push %r13 |
| 6517 | .byte 65,84 // push %r12 |
| 6518 | .byte 83 // push %rbx |
| 6519 | .byte 73,137,207 // mov %rcx,%r15 |
| 6520 | .byte 73,137,214 // mov %rdx,%r14 |
| 6521 | .byte 72,137,251 // mov %rdi,%rbx |
| 6522 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6523 | .byte 73,137,196 // mov %rax,%r12 |
| 6524 | .byte 73,137,245 // mov %rsi,%r13 |
| 6525 | .byte 72,141,67,4 // lea 0x4(%rbx),%rax |
| 6526 | .byte 76,57,248 // cmp %r15,%rax |
| 6527 | .byte 118,5 // jbe 28 <_sk_start_pipeline_sse2+0x28> |
| 6528 | .byte 72,137,216 // mov %rbx,%rax |
| 6529 | .byte 235,52 // jmp 5c <_sk_start_pipeline_sse2+0x5c> |
| 6530 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 6531 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 6532 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 6533 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 6534 | .byte 15,87,228 // xorps %xmm4,%xmm4 |
| 6535 | .byte 15,87,237 // xorps %xmm5,%xmm5 |
| 6536 | .byte 15,87,246 // xorps %xmm6,%xmm6 |
| 6537 | .byte 15,87,255 // xorps %xmm7,%xmm7 |
| 6538 | .byte 72,137,223 // mov %rbx,%rdi |
| 6539 | .byte 76,137,238 // mov %r13,%rsi |
| 6540 | .byte 76,137,242 // mov %r14,%rdx |
| 6541 | .byte 65,255,212 // callq *%r12 |
| 6542 | .byte 72,141,67,4 // lea 0x4(%rbx),%rax |
| 6543 | .byte 72,131,195,8 // add $0x8,%rbx |
| 6544 | .byte 76,57,251 // cmp %r15,%rbx |
| 6545 | .byte 72,137,195 // mov %rax,%rbx |
| 6546 | .byte 118,204 // jbe 28 <_sk_start_pipeline_sse2+0x28> |
| 6547 | .byte 91 // pop %rbx |
| 6548 | .byte 65,92 // pop %r12 |
| 6549 | .byte 65,93 // pop %r13 |
| 6550 | .byte 65,94 // pop %r14 |
| 6551 | .byte 65,95 // pop %r15 |
| 6552 | .byte 195 // retq |
| 6553 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6554 | HIDDEN _sk_just_return_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6555 | .globl _sk_just_return_sse2 |
| 6556 | _sk_just_return_sse2: |
| 6557 | .byte 195 // retq |
| 6558 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6559 | HIDDEN _sk_seed_shader_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6560 | .globl _sk_seed_shader_sse2 |
| 6561 | _sk_seed_shader_sse2: |
| 6562 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6563 | .byte 102,15,110,199 // movd %edi,%xmm0 |
| 6564 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 6565 | .byte 15,91,200 // cvtdq2ps %xmm0,%xmm1 |
| 6566 | .byte 185,0,0,0,63 // mov $0x3f000000,%ecx |
| 6567 | .byte 102,15,110,209 // movd %ecx,%xmm2 |
| 6568 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 6569 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 6570 | .byte 15,16,2 // movups (%rdx),%xmm0 |
| 6571 | .byte 15,88,193 // addps %xmm1,%xmm0 |
| 6572 | .byte 102,15,110,8 // movd (%rax),%xmm1 |
| 6573 | .byte 102,15,112,201,0 // pshufd $0x0,%xmm1,%xmm1 |
| 6574 | .byte 15,91,201 // cvtdq2ps %xmm1,%xmm1 |
| 6575 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 6576 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6577 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 6578 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 6579 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6580 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 6581 | .byte 15,87,228 // xorps %xmm4,%xmm4 |
| 6582 | .byte 15,87,237 // xorps %xmm5,%xmm5 |
| 6583 | .byte 15,87,246 // xorps %xmm6,%xmm6 |
| 6584 | .byte 15,87,255 // xorps %xmm7,%xmm7 |
| 6585 | .byte 255,224 // jmpq *%rax |
| 6586 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6587 | HIDDEN _sk_constant_color_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6588 | .globl _sk_constant_color_sse2 |
| 6589 | _sk_constant_color_sse2: |
| 6590 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6591 | .byte 15,16,24 // movups (%rax),%xmm3 |
| 6592 | .byte 15,40,195 // movaps %xmm3,%xmm0 |
| 6593 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6594 | .byte 15,40,203 // movaps %xmm3,%xmm1 |
| 6595 | .byte 15,198,201,85 // shufps $0x55,%xmm1,%xmm1 |
| 6596 | .byte 15,40,211 // movaps %xmm3,%xmm2 |
| 6597 | .byte 15,198,210,170 // shufps $0xaa,%xmm2,%xmm2 |
| 6598 | .byte 15,198,219,255 // shufps $0xff,%xmm3,%xmm3 |
| 6599 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6600 | .byte 255,224 // jmpq *%rax |
| 6601 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6602 | HIDDEN _sk_clear_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6603 | .globl _sk_clear_sse2 |
| 6604 | _sk_clear_sse2: |
| 6605 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6606 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 6607 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 6608 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 6609 | .byte 15,87,219 // xorps %xmm3,%xmm3 |
| 6610 | .byte 255,224 // jmpq *%rax |
| 6611 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6612 | HIDDEN _sk_plus__sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6613 | .globl _sk_plus__sse2 |
| 6614 | _sk_plus__sse2: |
| 6615 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 6616 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 6617 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 6618 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 6619 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6620 | .byte 255,224 // jmpq *%rax |
| 6621 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6622 | HIDDEN _sk_srcover_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6623 | .globl _sk_srcover_sse2 |
| 6624 | _sk_srcover_sse2: |
| 6625 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6626 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6627 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6628 | .byte 68,15,92,195 // subps %xmm3,%xmm8 |
| 6629 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6630 | .byte 68,15,89,204 // mulps %xmm4,%xmm9 |
| 6631 | .byte 65,15,88,193 // addps %xmm9,%xmm0 |
| 6632 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6633 | .byte 68,15,89,205 // mulps %xmm5,%xmm9 |
| 6634 | .byte 65,15,88,201 // addps %xmm9,%xmm1 |
| 6635 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 6636 | .byte 68,15,89,206 // mulps %xmm6,%xmm9 |
| 6637 | .byte 65,15,88,209 // addps %xmm9,%xmm2 |
| 6638 | .byte 68,15,89,199 // mulps %xmm7,%xmm8 |
| 6639 | .byte 65,15,88,216 // addps %xmm8,%xmm3 |
| 6640 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6641 | .byte 255,224 // jmpq *%rax |
| 6642 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6643 | HIDDEN _sk_dstover_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6644 | .globl _sk_dstover_sse2 |
| 6645 | _sk_dstover_sse2: |
| 6646 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6647 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6648 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6649 | .byte 68,15,92,199 // subps %xmm7,%xmm8 |
| 6650 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6651 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 6652 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6653 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 6654 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6655 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 6656 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 6657 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 6658 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6659 | .byte 255,224 // jmpq *%rax |
| 6660 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6661 | HIDDEN _sk_clamp_0_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6662 | .globl _sk_clamp_0_sse2 |
| 6663 | _sk_clamp_0_sse2: |
| 6664 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6665 | .byte 65,15,95,192 // maxps %xmm8,%xmm0 |
| 6666 | .byte 65,15,95,200 // maxps %xmm8,%xmm1 |
| 6667 | .byte 65,15,95,208 // maxps %xmm8,%xmm2 |
| 6668 | .byte 65,15,95,216 // maxps %xmm8,%xmm3 |
| 6669 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6670 | .byte 255,224 // jmpq *%rax |
| 6671 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6672 | HIDDEN _sk_clamp_1_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6673 | .globl _sk_clamp_1_sse2 |
| 6674 | _sk_clamp_1_sse2: |
| 6675 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6676 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6677 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6678 | .byte 65,15,93,192 // minps %xmm8,%xmm0 |
| 6679 | .byte 65,15,93,200 // minps %xmm8,%xmm1 |
| 6680 | .byte 65,15,93,208 // minps %xmm8,%xmm2 |
| 6681 | .byte 65,15,93,216 // minps %xmm8,%xmm3 |
| 6682 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6683 | .byte 255,224 // jmpq *%rax |
| 6684 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6685 | HIDDEN _sk_clamp_a_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6686 | .globl _sk_clamp_a_sse2 |
| 6687 | _sk_clamp_a_sse2: |
| 6688 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6689 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6690 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6691 | .byte 65,15,93,216 // minps %xmm8,%xmm3 |
| 6692 | .byte 15,93,195 // minps %xmm3,%xmm0 |
| 6693 | .byte 15,93,203 // minps %xmm3,%xmm1 |
| 6694 | .byte 15,93,211 // minps %xmm3,%xmm2 |
| 6695 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6696 | .byte 255,224 // jmpq *%rax |
| 6697 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6698 | HIDDEN _sk_set_rgb_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6699 | .globl _sk_set_rgb_sse2 |
| 6700 | _sk_set_rgb_sse2: |
| 6701 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6702 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 6703 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 6704 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 6705 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 6706 | .byte 243,15,16,80,8 // movss 0x8(%rax),%xmm2 |
| 6707 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 6708 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6709 | .byte 255,224 // jmpq *%rax |
| 6710 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6711 | HIDDEN _sk_swap_rb_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6712 | .globl _sk_swap_rb_sse2 |
| 6713 | _sk_swap_rb_sse2: |
| 6714 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 6715 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6716 | .byte 15,40,194 // movaps %xmm2,%xmm0 |
| 6717 | .byte 65,15,40,208 // movaps %xmm8,%xmm2 |
| 6718 | .byte 255,224 // jmpq *%rax |
| 6719 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6720 | HIDDEN _sk_swap_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6721 | .globl _sk_swap_sse2 |
| 6722 | _sk_swap_sse2: |
| 6723 | .byte 68,15,40,195 // movaps %xmm3,%xmm8 |
| 6724 | .byte 68,15,40,202 // movaps %xmm2,%xmm9 |
| 6725 | .byte 68,15,40,209 // movaps %xmm1,%xmm10 |
| 6726 | .byte 68,15,40,216 // movaps %xmm0,%xmm11 |
| 6727 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6728 | .byte 15,40,196 // movaps %xmm4,%xmm0 |
| 6729 | .byte 15,40,205 // movaps %xmm5,%xmm1 |
| 6730 | .byte 15,40,214 // movaps %xmm6,%xmm2 |
| 6731 | .byte 15,40,223 // movaps %xmm7,%xmm3 |
| 6732 | .byte 65,15,40,227 // movaps %xmm11,%xmm4 |
| 6733 | .byte 65,15,40,234 // movaps %xmm10,%xmm5 |
| 6734 | .byte 65,15,40,241 // movaps %xmm9,%xmm6 |
| 6735 | .byte 65,15,40,248 // movaps %xmm8,%xmm7 |
| 6736 | .byte 255,224 // jmpq *%rax |
| 6737 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6738 | HIDDEN _sk_move_src_dst_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6739 | .globl _sk_move_src_dst_sse2 |
| 6740 | _sk_move_src_dst_sse2: |
| 6741 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6742 | .byte 15,40,224 // movaps %xmm0,%xmm4 |
| 6743 | .byte 15,40,233 // movaps %xmm1,%xmm5 |
| 6744 | .byte 15,40,242 // movaps %xmm2,%xmm6 |
| 6745 | .byte 15,40,251 // movaps %xmm3,%xmm7 |
| 6746 | .byte 255,224 // jmpq *%rax |
| 6747 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6748 | HIDDEN _sk_move_dst_src_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6749 | .globl _sk_move_dst_src_sse2 |
| 6750 | _sk_move_dst_src_sse2: |
| 6751 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6752 | .byte 15,40,196 // movaps %xmm4,%xmm0 |
| 6753 | .byte 15,40,205 // movaps %xmm5,%xmm1 |
| 6754 | .byte 15,40,214 // movaps %xmm6,%xmm2 |
| 6755 | .byte 15,40,223 // movaps %xmm7,%xmm3 |
| 6756 | .byte 255,224 // jmpq *%rax |
| 6757 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6758 | HIDDEN _sk_premul_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6759 | .globl _sk_premul_sse2 |
| 6760 | _sk_premul_sse2: |
| 6761 | .byte 15,89,195 // mulps %xmm3,%xmm0 |
| 6762 | .byte 15,89,203 // mulps %xmm3,%xmm1 |
| 6763 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 6764 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6765 | .byte 255,224 // jmpq *%rax |
| 6766 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6767 | HIDDEN _sk_unpremul_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6768 | .globl _sk_unpremul_sse2 |
| 6769 | _sk_unpremul_sse2: |
| 6770 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 6771 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6772 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 6773 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6774 | .byte 68,15,94,203 // divps %xmm3,%xmm9 |
| 6775 | .byte 68,15,194,195,4 // cmpneqps %xmm3,%xmm8 |
| 6776 | .byte 69,15,84,193 // andps %xmm9,%xmm8 |
| 6777 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6778 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6779 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6780 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6781 | .byte 255,224 // jmpq *%rax |
| 6782 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6783 | HIDDEN _sk_from_srgb_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6784 | .globl _sk_from_srgb_sse2 |
| 6785 | _sk_from_srgb_sse2: |
| 6786 | .byte 184,145,131,158,61 // mov $0x3d9e8391,%eax |
| 6787 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6788 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6789 | .byte 69,15,40,232 // movaps %xmm8,%xmm13 |
| 6790 | .byte 68,15,89,232 // mulps %xmm0,%xmm13 |
| 6791 | .byte 68,15,40,224 // movaps %xmm0,%xmm12 |
| 6792 | .byte 69,15,89,228 // mulps %xmm12,%xmm12 |
| 6793 | .byte 184,154,153,153,62 // mov $0x3e99999a,%eax |
| 6794 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 6795 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6796 | .byte 184,92,143,50,63 // mov $0x3f328f5c,%eax |
| 6797 | .byte 102,68,15,110,208 // movd %eax,%xmm10 |
| 6798 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6799 | .byte 69,15,40,241 // movaps %xmm9,%xmm14 |
| 6800 | .byte 68,15,89,240 // mulps %xmm0,%xmm14 |
| 6801 | .byte 69,15,88,242 // addps %xmm10,%xmm14 |
| 6802 | .byte 184,10,215,35,59 // mov $0x3b23d70a,%eax |
| 6803 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 6804 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6805 | .byte 69,15,89,244 // mulps %xmm12,%xmm14 |
| 6806 | .byte 69,15,88,243 // addps %xmm11,%xmm14 |
| 6807 | .byte 184,174,71,97,61 // mov $0x3d6147ae,%eax |
| 6808 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 6809 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6810 | .byte 65,15,194,196,1 // cmpltps %xmm12,%xmm0 |
| 6811 | .byte 68,15,84,232 // andps %xmm0,%xmm13 |
| 6812 | .byte 65,15,85,198 // andnps %xmm14,%xmm0 |
| 6813 | .byte 65,15,86,197 // orps %xmm13,%xmm0 |
| 6814 | .byte 69,15,40,232 // movaps %xmm8,%xmm13 |
| 6815 | .byte 68,15,89,233 // mulps %xmm1,%xmm13 |
| 6816 | .byte 68,15,40,241 // movaps %xmm1,%xmm14 |
| 6817 | .byte 69,15,89,246 // mulps %xmm14,%xmm14 |
| 6818 | .byte 69,15,40,249 // movaps %xmm9,%xmm15 |
| 6819 | .byte 68,15,89,249 // mulps %xmm1,%xmm15 |
| 6820 | .byte 69,15,88,250 // addps %xmm10,%xmm15 |
| 6821 | .byte 69,15,89,254 // mulps %xmm14,%xmm15 |
| 6822 | .byte 69,15,88,251 // addps %xmm11,%xmm15 |
| 6823 | .byte 65,15,194,204,1 // cmpltps %xmm12,%xmm1 |
| 6824 | .byte 68,15,84,233 // andps %xmm1,%xmm13 |
| 6825 | .byte 65,15,85,207 // andnps %xmm15,%xmm1 |
| 6826 | .byte 65,15,86,205 // orps %xmm13,%xmm1 |
| 6827 | .byte 68,15,89,194 // mulps %xmm2,%xmm8 |
| 6828 | .byte 68,15,40,234 // movaps %xmm2,%xmm13 |
| 6829 | .byte 69,15,89,237 // mulps %xmm13,%xmm13 |
| 6830 | .byte 68,15,89,202 // mulps %xmm2,%xmm9 |
| 6831 | .byte 69,15,88,202 // addps %xmm10,%xmm9 |
| 6832 | .byte 69,15,89,205 // mulps %xmm13,%xmm9 |
| 6833 | .byte 69,15,88,203 // addps %xmm11,%xmm9 |
| 6834 | .byte 65,15,194,212,1 // cmpltps %xmm12,%xmm2 |
| 6835 | .byte 68,15,84,194 // andps %xmm2,%xmm8 |
| 6836 | .byte 65,15,85,209 // andnps %xmm9,%xmm2 |
| 6837 | .byte 65,15,86,208 // orps %xmm8,%xmm2 |
| 6838 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6839 | .byte 255,224 // jmpq *%rax |
| 6840 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6841 | HIDDEN _sk_to_srgb_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6842 | .globl _sk_to_srgb_sse2 |
| 6843 | _sk_to_srgb_sse2: |
| 6844 | .byte 68,15,82,192 // rsqrtps %xmm0,%xmm8 |
| 6845 | .byte 69,15,83,248 // rcpps %xmm8,%xmm15 |
| 6846 | .byte 69,15,82,232 // rsqrtps %xmm8,%xmm13 |
| 6847 | .byte 184,41,92,71,65 // mov $0x41475c29,%eax |
| 6848 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 6849 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6850 | .byte 69,15,40,240 // movaps %xmm8,%xmm14 |
| 6851 | .byte 68,15,89,240 // mulps %xmm0,%xmm14 |
| 6852 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 6853 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 6854 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6855 | .byte 184,194,135,210,62 // mov $0x3ed287c2,%eax |
| 6856 | .byte 102,68,15,110,208 // movd %eax,%xmm10 |
| 6857 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 6858 | .byte 184,206,111,48,63 // mov $0x3f306fce,%eax |
| 6859 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 6860 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 6861 | .byte 184,168,87,202,61 // mov $0x3dca57a8,%eax |
| 6862 | .byte 53,0,0,0,128 // xor $0x80000000,%eax |
| 6863 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 6864 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 6865 | .byte 69,15,89,251 // mulps %xmm11,%xmm15 |
| 6866 | .byte 69,15,88,252 // addps %xmm12,%xmm15 |
| 6867 | .byte 69,15,89,234 // mulps %xmm10,%xmm13 |
| 6868 | .byte 69,15,88,239 // addps %xmm15,%xmm13 |
| 6869 | .byte 69,15,40,249 // movaps %xmm9,%xmm15 |
| 6870 | .byte 69,15,93,253 // minps %xmm13,%xmm15 |
| 6871 | .byte 184,4,231,140,59 // mov $0x3b8ce704,%eax |
| 6872 | .byte 102,68,15,110,232 // movd %eax,%xmm13 |
| 6873 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 6874 | .byte 65,15,194,197,1 // cmpltps %xmm13,%xmm0 |
| 6875 | .byte 68,15,84,240 // andps %xmm0,%xmm14 |
| 6876 | .byte 65,15,85,199 // andnps %xmm15,%xmm0 |
| 6877 | .byte 65,15,86,198 // orps %xmm14,%xmm0 |
| 6878 | .byte 68,15,82,241 // rsqrtps %xmm1,%xmm14 |
| 6879 | .byte 69,15,83,254 // rcpps %xmm14,%xmm15 |
| 6880 | .byte 69,15,82,246 // rsqrtps %xmm14,%xmm14 |
| 6881 | .byte 69,15,89,251 // mulps %xmm11,%xmm15 |
| 6882 | .byte 69,15,88,252 // addps %xmm12,%xmm15 |
| 6883 | .byte 69,15,89,242 // mulps %xmm10,%xmm14 |
| 6884 | .byte 69,15,88,247 // addps %xmm15,%xmm14 |
| 6885 | .byte 69,15,40,249 // movaps %xmm9,%xmm15 |
| 6886 | .byte 69,15,93,254 // minps %xmm14,%xmm15 |
| 6887 | .byte 69,15,40,240 // movaps %xmm8,%xmm14 |
| 6888 | .byte 68,15,89,241 // mulps %xmm1,%xmm14 |
| 6889 | .byte 65,15,194,205,1 // cmpltps %xmm13,%xmm1 |
| 6890 | .byte 68,15,84,241 // andps %xmm1,%xmm14 |
| 6891 | .byte 65,15,85,207 // andnps %xmm15,%xmm1 |
| 6892 | .byte 65,15,86,206 // orps %xmm14,%xmm1 |
| 6893 | .byte 68,15,82,242 // rsqrtps %xmm2,%xmm14 |
| 6894 | .byte 69,15,83,254 // rcpps %xmm14,%xmm15 |
| 6895 | .byte 69,15,89,251 // mulps %xmm11,%xmm15 |
| 6896 | .byte 69,15,88,252 // addps %xmm12,%xmm15 |
| 6897 | .byte 69,15,82,222 // rsqrtps %xmm14,%xmm11 |
| 6898 | .byte 69,15,89,218 // mulps %xmm10,%xmm11 |
| 6899 | .byte 69,15,88,223 // addps %xmm15,%xmm11 |
| 6900 | .byte 69,15,93,203 // minps %xmm11,%xmm9 |
| 6901 | .byte 68,15,89,194 // mulps %xmm2,%xmm8 |
| 6902 | .byte 65,15,194,213,1 // cmpltps %xmm13,%xmm2 |
| 6903 | .byte 68,15,84,194 // andps %xmm2,%xmm8 |
| 6904 | .byte 65,15,85,209 // andnps %xmm9,%xmm2 |
| 6905 | .byte 65,15,86,208 // orps %xmm8,%xmm2 |
| 6906 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6907 | .byte 255,224 // jmpq *%rax |
| 6908 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6909 | HIDDEN _sk_scale_1_float_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6910 | .globl _sk_scale_1_float_sse2 |
| 6911 | _sk_scale_1_float_sse2: |
| 6912 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6913 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6914 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6915 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6916 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6917 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6918 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 6919 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6920 | .byte 255,224 // jmpq *%rax |
| 6921 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6922 | HIDDEN _sk_scale_u8_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6923 | .globl _sk_scale_u8_sse2 |
| 6924 | _sk_scale_u8_sse2: |
| 6925 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6926 | .byte 72,139,0 // mov (%rax),%rax |
| 6927 | .byte 102,68,15,110,4,56 // movd (%rax,%rdi,1),%xmm8 |
| 6928 | .byte 102,69,15,239,201 // pxor %xmm9,%xmm9 |
| 6929 | .byte 102,69,15,96,193 // punpcklbw %xmm9,%xmm8 |
| 6930 | .byte 102,69,15,97,193 // punpcklwd %xmm9,%xmm8 |
| 6931 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 6932 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 6933 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 6934 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6935 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 6936 | .byte 65,15,89,193 // mulps %xmm9,%xmm0 |
| 6937 | .byte 65,15,89,201 // mulps %xmm9,%xmm1 |
| 6938 | .byte 65,15,89,209 // mulps %xmm9,%xmm2 |
| 6939 | .byte 65,15,89,217 // mulps %xmm9,%xmm3 |
| 6940 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6941 | .byte 255,224 // jmpq *%rax |
| 6942 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6943 | HIDDEN _sk_lerp_1_float_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6944 | .globl _sk_lerp_1_float_sse2 |
| 6945 | _sk_lerp_1_float_sse2: |
| 6946 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6947 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 6948 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 6949 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 6950 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 6951 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 6952 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 6953 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 6954 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 6955 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 6956 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 6957 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 6958 | .byte 15,92,223 // subps %xmm7,%xmm3 |
| 6959 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 6960 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 6961 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6962 | .byte 255,224 // jmpq *%rax |
| 6963 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6964 | HIDDEN _sk_lerp_u8_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6965 | .globl _sk_lerp_u8_sse2 |
| 6966 | _sk_lerp_u8_sse2: |
| 6967 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6968 | .byte 72,139,0 // mov (%rax),%rax |
| 6969 | .byte 102,68,15,110,4,56 // movd (%rax,%rdi,1),%xmm8 |
| 6970 | .byte 102,69,15,239,201 // pxor %xmm9,%xmm9 |
| 6971 | .byte 102,69,15,96,193 // punpcklbw %xmm9,%xmm8 |
| 6972 | .byte 102,69,15,97,193 // punpcklwd %xmm9,%xmm8 |
| 6973 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 6974 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 6975 | .byte 102,68,15,110,200 // movd %eax,%xmm9 |
| 6976 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 6977 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 6978 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 6979 | .byte 65,15,89,193 // mulps %xmm9,%xmm0 |
| 6980 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 6981 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 6982 | .byte 65,15,89,201 // mulps %xmm9,%xmm1 |
| 6983 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 6984 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 6985 | .byte 65,15,89,209 // mulps %xmm9,%xmm2 |
| 6986 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 6987 | .byte 15,92,223 // subps %xmm7,%xmm3 |
| 6988 | .byte 65,15,89,217 // mulps %xmm9,%xmm3 |
| 6989 | .byte 15,88,223 // addps %xmm7,%xmm3 |
| 6990 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6991 | .byte 255,224 // jmpq *%rax |
| 6992 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 6993 | HIDDEN _sk_lerp_565_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 6994 | .globl _sk_lerp_565_sse2 |
| 6995 | _sk_lerp_565_sse2: |
| 6996 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 6997 | .byte 72,139,0 // mov (%rax),%rax |
| 6998 | .byte 243,68,15,126,4,120 // movq (%rax,%rdi,2),%xmm8 |
| 6999 | .byte 102,15,239,219 // pxor %xmm3,%xmm3 |
| 7000 | .byte 102,68,15,97,195 // punpcklwd %xmm3,%xmm8 |
| 7001 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 7002 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7003 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 7004 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 7005 | .byte 68,15,91,203 // cvtdq2ps %xmm3,%xmm9 |
| 7006 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 7007 | .byte 102,68,15,110,208 // movd %eax,%xmm10 |
| 7008 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7009 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7010 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 7011 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7012 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 7013 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 7014 | .byte 68,15,91,203 // cvtdq2ps %xmm3,%xmm9 |
| 7015 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 7016 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 7017 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7018 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 7019 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 7020 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7021 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 7022 | .byte 102,65,15,219,216 // pand %xmm8,%xmm3 |
| 7023 | .byte 68,15,91,195 // cvtdq2ps %xmm3,%xmm8 |
| 7024 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 7025 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7026 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7027 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 7028 | .byte 15,92,196 // subps %xmm4,%xmm0 |
| 7029 | .byte 65,15,89,194 // mulps %xmm10,%xmm0 |
| 7030 | .byte 15,88,196 // addps %xmm4,%xmm0 |
| 7031 | .byte 15,92,205 // subps %xmm5,%xmm1 |
| 7032 | .byte 65,15,89,203 // mulps %xmm11,%xmm1 |
| 7033 | .byte 15,88,205 // addps %xmm5,%xmm1 |
| 7034 | .byte 15,92,214 // subps %xmm6,%xmm2 |
| 7035 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 7036 | .byte 15,88,214 // addps %xmm6,%xmm2 |
| 7037 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7038 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7039 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7040 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7041 | .byte 255,224 // jmpq *%rax |
| 7042 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7043 | HIDDEN _sk_load_tables_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7044 | .globl _sk_load_tables_sse2 |
| 7045 | _sk_load_tables_sse2: |
| 7046 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7047 | .byte 72,139,8 // mov (%rax),%rcx |
| 7048 | .byte 76,139,64,8 // mov 0x8(%rax),%r8 |
| 7049 | .byte 243,68,15,111,4,185 // movdqu (%rcx,%rdi,4),%xmm8 |
| 7050 | .byte 185,255,0,0,0 // mov $0xff,%ecx |
| 7051 | .byte 102,15,110,193 // movd %ecx,%xmm0 |
| 7052 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 7053 | .byte 102,69,15,111,200 // movdqa %xmm8,%xmm9 |
| 7054 | .byte 102,65,15,114,209,8 // psrld $0x8,%xmm9 |
| 7055 | .byte 102,68,15,219,200 // pand %xmm0,%xmm9 |
| 7056 | .byte 102,69,15,111,208 // movdqa %xmm8,%xmm10 |
| 7057 | .byte 102,65,15,114,210,16 // psrld $0x10,%xmm10 |
| 7058 | .byte 102,68,15,219,208 // pand %xmm0,%xmm10 |
| 7059 | .byte 102,65,15,219,192 // pand %xmm8,%xmm0 |
| 7060 | .byte 102,15,112,216,78 // pshufd $0x4e,%xmm0,%xmm3 |
| 7061 | .byte 102,72,15,126,217 // movq %xmm3,%rcx |
| 7062 | .byte 65,137,201 // mov %ecx,%r9d |
| 7063 | .byte 72,193,233,32 // shr $0x20,%rcx |
| 7064 | .byte 102,73,15,126,194 // movq %xmm0,%r10 |
| 7065 | .byte 69,137,211 // mov %r10d,%r11d |
| 7066 | .byte 73,193,234,32 // shr $0x20,%r10 |
| 7067 | .byte 243,67,15,16,28,144 // movss (%r8,%r10,4),%xmm3 |
| 7068 | .byte 243,65,15,16,4,136 // movss (%r8,%rcx,4),%xmm0 |
| 7069 | .byte 15,20,216 // unpcklps %xmm0,%xmm3 |
| 7070 | .byte 243,67,15,16,4,152 // movss (%r8,%r11,4),%xmm0 |
| 7071 | .byte 243,67,15,16,12,136 // movss (%r8,%r9,4),%xmm1 |
| 7072 | .byte 15,20,193 // unpcklps %xmm1,%xmm0 |
| 7073 | .byte 15,20,195 // unpcklps %xmm3,%xmm0 |
| 7074 | .byte 76,139,64,16 // mov 0x10(%rax),%r8 |
| 7075 | .byte 102,65,15,112,201,78 // pshufd $0x4e,%xmm9,%xmm1 |
| 7076 | .byte 102,73,15,126,202 // movq %xmm1,%r10 |
| 7077 | .byte 77,137,209 // mov %r10,%r9 |
| 7078 | .byte 73,193,233,32 // shr $0x20,%r9 |
| 7079 | .byte 102,76,15,126,201 // movq %xmm9,%rcx |
| 7080 | .byte 65,137,203 // mov %ecx,%r11d |
| 7081 | .byte 65,129,227,255,255,255,0 // and $0xffffff,%r11d |
| 7082 | .byte 72,193,233,30 // shr $0x1e,%rcx |
| 7083 | .byte 65,129,226,255,255,255,0 // and $0xffffff,%r10d |
| 7084 | .byte 243,65,15,16,28,8 // movss (%r8,%rcx,1),%xmm3 |
| 7085 | .byte 243,67,15,16,12,136 // movss (%r8,%r9,4),%xmm1 |
| 7086 | .byte 15,20,217 // unpcklps %xmm1,%xmm3 |
| 7087 | .byte 243,67,15,16,12,152 // movss (%r8,%r11,4),%xmm1 |
| 7088 | .byte 243,67,15,16,20,144 // movss (%r8,%r10,4),%xmm2 |
| 7089 | .byte 15,20,202 // unpcklps %xmm2,%xmm1 |
| 7090 | .byte 15,20,203 // unpcklps %xmm3,%xmm1 |
| 7091 | .byte 76,139,72,24 // mov 0x18(%rax),%r9 |
| 7092 | .byte 102,65,15,112,210,78 // pshufd $0x4e,%xmm10,%xmm2 |
| 7093 | .byte 102,72,15,126,209 // movq %xmm2,%rcx |
| 7094 | .byte 68,15,183,193 // movzwl %cx,%r8d |
| 7095 | .byte 72,193,233,32 // shr $0x20,%rcx |
| 7096 | .byte 102,76,15,126,208 // movq %xmm10,%rax |
| 7097 | .byte 68,15,183,208 // movzwl %ax,%r10d |
| 7098 | .byte 72,193,232,30 // shr $0x1e,%rax |
| 7099 | .byte 243,69,15,16,12,1 // movss (%r9,%rax,1),%xmm9 |
| 7100 | .byte 243,65,15,16,20,137 // movss (%r9,%rcx,4),%xmm2 |
| 7101 | .byte 68,15,20,202 // unpcklps %xmm2,%xmm9 |
| 7102 | .byte 243,67,15,16,20,145 // movss (%r9,%r10,4),%xmm2 |
| 7103 | .byte 243,67,15,16,28,129 // movss (%r9,%r8,4),%xmm3 |
| 7104 | .byte 15,20,211 // unpcklps %xmm3,%xmm2 |
| 7105 | .byte 65,15,20,209 // unpcklps %xmm9,%xmm2 |
| 7106 | .byte 102,65,15,114,208,24 // psrld $0x18,%xmm8 |
| 7107 | .byte 69,15,91,192 // cvtdq2ps %xmm8,%xmm8 |
| 7108 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 7109 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7110 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7111 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 7112 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7113 | .byte 255,224 // jmpq *%rax |
| 7114 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7115 | HIDDEN _sk_load_a8_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7116 | .globl _sk_load_a8_sse2 |
| 7117 | _sk_load_a8_sse2: |
| 7118 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7119 | .byte 72,139,0 // mov (%rax),%rax |
| 7120 | .byte 102,15,110,4,56 // movd (%rax,%rdi,1),%xmm0 |
| 7121 | .byte 102,15,239,201 // pxor %xmm1,%xmm1 |
| 7122 | .byte 102,15,96,193 // punpcklbw %xmm1,%xmm0 |
| 7123 | .byte 102,15,97,193 // punpcklwd %xmm1,%xmm0 |
| 7124 | .byte 15,91,192 // cvtdq2ps %xmm0,%xmm0 |
| 7125 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 7126 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7127 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7128 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 7129 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7130 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 7131 | .byte 102,15,239,201 // pxor %xmm1,%xmm1 |
| 7132 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 7133 | .byte 255,224 // jmpq *%rax |
| 7134 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7135 | HIDDEN _sk_store_a8_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7136 | .globl _sk_store_a8_sse2 |
| 7137 | _sk_store_a8_sse2: |
| 7138 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7139 | .byte 72,139,0 // mov (%rax),%rax |
| 7140 | .byte 185,0,0,127,67 // mov $0x437f0000,%ecx |
| 7141 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 7142 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7143 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 7144 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 7145 | .byte 102,65,15,114,240,16 // pslld $0x10,%xmm8 |
| 7146 | .byte 102,65,15,114,224,16 // psrad $0x10,%xmm8 |
| 7147 | .byte 102,69,15,107,192 // packssdw %xmm8,%xmm8 |
| 7148 | .byte 102,69,15,103,192 // packuswb %xmm8,%xmm8 |
| 7149 | .byte 102,68,15,126,4,56 // movd %xmm8,(%rax,%rdi,1) |
| 7150 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7151 | .byte 255,224 // jmpq *%rax |
| 7152 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7153 | HIDDEN _sk_load_565_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7154 | .globl _sk_load_565_sse2 |
| 7155 | _sk_load_565_sse2: |
| 7156 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7157 | .byte 72,139,0 // mov (%rax),%rax |
| 7158 | .byte 243,15,126,20,120 // movq (%rax,%rdi,2),%xmm2 |
| 7159 | .byte 102,15,239,192 // pxor %xmm0,%xmm0 |
| 7160 | .byte 102,15,97,208 // punpcklwd %xmm0,%xmm2 |
| 7161 | .byte 184,0,248,0,0 // mov $0xf800,%eax |
| 7162 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 7163 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 7164 | .byte 102,15,219,194 // pand %xmm2,%xmm0 |
| 7165 | .byte 15,91,200 // cvtdq2ps %xmm0,%xmm1 |
| 7166 | .byte 184,8,33,132,55 // mov $0x37842108,%eax |
| 7167 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 7168 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7169 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 7170 | .byte 184,224,7,0,0 // mov $0x7e0,%eax |
| 7171 | .byte 102,15,110,200 // movd %eax,%xmm1 |
| 7172 | .byte 102,15,112,201,0 // pshufd $0x0,%xmm1,%xmm1 |
| 7173 | .byte 102,15,219,202 // pand %xmm2,%xmm1 |
| 7174 | .byte 15,91,217 // cvtdq2ps %xmm1,%xmm3 |
| 7175 | .byte 184,33,8,2,58 // mov $0x3a020821,%eax |
| 7176 | .byte 102,15,110,200 // movd %eax,%xmm1 |
| 7177 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 7178 | .byte 15,89,203 // mulps %xmm3,%xmm1 |
| 7179 | .byte 184,31,0,0,0 // mov $0x1f,%eax |
| 7180 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7181 | .byte 102,15,112,219,0 // pshufd $0x0,%xmm3,%xmm3 |
| 7182 | .byte 102,15,219,218 // pand %xmm2,%xmm3 |
| 7183 | .byte 15,91,219 // cvtdq2ps %xmm3,%xmm3 |
| 7184 | .byte 184,8,33,4,61 // mov $0x3d042108,%eax |
| 7185 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 7186 | .byte 15,198,210,0 // shufps $0x0,%xmm2,%xmm2 |
| 7187 | .byte 15,89,211 // mulps %xmm3,%xmm2 |
| 7188 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7189 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7190 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7191 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7192 | .byte 255,224 // jmpq *%rax |
| 7193 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7194 | HIDDEN _sk_store_565_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7195 | .globl _sk_store_565_sse2 |
| 7196 | _sk_store_565_sse2: |
| 7197 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7198 | .byte 72,139,0 // mov (%rax),%rax |
| 7199 | .byte 185,0,0,248,65 // mov $0x41f80000,%ecx |
| 7200 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 7201 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7202 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 7203 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 7204 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 7205 | .byte 102,65,15,114,241,11 // pslld $0xb,%xmm9 |
| 7206 | .byte 185,0,0,124,66 // mov $0x427c0000,%ecx |
| 7207 | .byte 102,68,15,110,209 // movd %ecx,%xmm10 |
| 7208 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7209 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 7210 | .byte 102,69,15,91,210 // cvtps2dq %xmm10,%xmm10 |
| 7211 | .byte 102,65,15,114,242,5 // pslld $0x5,%xmm10 |
| 7212 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 7213 | .byte 68,15,89,194 // mulps %xmm2,%xmm8 |
| 7214 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 7215 | .byte 102,69,15,86,194 // orpd %xmm10,%xmm8 |
| 7216 | .byte 102,65,15,114,240,16 // pslld $0x10,%xmm8 |
| 7217 | .byte 102,65,15,114,224,16 // psrad $0x10,%xmm8 |
| 7218 | .byte 102,69,15,107,192 // packssdw %xmm8,%xmm8 |
| 7219 | .byte 102,68,15,214,4,120 // movq %xmm8,(%rax,%rdi,2) |
| 7220 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7221 | .byte 255,224 // jmpq *%rax |
| 7222 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7223 | HIDDEN _sk_load_8888_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7224 | .globl _sk_load_8888_sse2 |
| 7225 | _sk_load_8888_sse2: |
| 7226 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7227 | .byte 72,139,0 // mov (%rax),%rax |
| 7228 | .byte 243,15,111,28,184 // movdqu (%rax,%rdi,4),%xmm3 |
| 7229 | .byte 184,255,0,0,0 // mov $0xff,%eax |
| 7230 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 7231 | .byte 102,15,112,192,0 // pshufd $0x0,%xmm0,%xmm0 |
| 7232 | .byte 102,15,111,203 // movdqa %xmm3,%xmm1 |
| 7233 | .byte 102,15,114,209,8 // psrld $0x8,%xmm1 |
| 7234 | .byte 102,15,219,200 // pand %xmm0,%xmm1 |
| 7235 | .byte 102,15,111,211 // movdqa %xmm3,%xmm2 |
| 7236 | .byte 102,15,114,210,16 // psrld $0x10,%xmm2 |
| 7237 | .byte 102,15,219,208 // pand %xmm0,%xmm2 |
| 7238 | .byte 102,15,219,195 // pand %xmm3,%xmm0 |
| 7239 | .byte 15,91,192 // cvtdq2ps %xmm0,%xmm0 |
| 7240 | .byte 184,129,128,128,59 // mov $0x3b808081,%eax |
| 7241 | .byte 102,68,15,110,192 // movd %eax,%xmm8 |
| 7242 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7243 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 7244 | .byte 15,91,201 // cvtdq2ps %xmm1,%xmm1 |
| 7245 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 7246 | .byte 15,91,210 // cvtdq2ps %xmm2,%xmm2 |
| 7247 | .byte 65,15,89,208 // mulps %xmm8,%xmm2 |
| 7248 | .byte 102,15,114,211,24 // psrld $0x18,%xmm3 |
| 7249 | .byte 15,91,219 // cvtdq2ps %xmm3,%xmm3 |
| 7250 | .byte 65,15,89,216 // mulps %xmm8,%xmm3 |
| 7251 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7252 | .byte 255,224 // jmpq *%rax |
| 7253 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7254 | HIDDEN _sk_store_8888_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7255 | .globl _sk_store_8888_sse2 |
| 7256 | _sk_store_8888_sse2: |
| 7257 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7258 | .byte 72,139,0 // mov (%rax),%rax |
| 7259 | .byte 185,0,0,127,67 // mov $0x437f0000,%ecx |
| 7260 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 7261 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7262 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 7263 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 7264 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 7265 | .byte 69,15,40,208 // movaps %xmm8,%xmm10 |
| 7266 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 7267 | .byte 102,69,15,91,210 // cvtps2dq %xmm10,%xmm10 |
| 7268 | .byte 102,65,15,114,242,8 // pslld $0x8,%xmm10 |
| 7269 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 7270 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 7271 | .byte 68,15,89,202 // mulps %xmm2,%xmm9 |
| 7272 | .byte 102,69,15,91,201 // cvtps2dq %xmm9,%xmm9 |
| 7273 | .byte 102,65,15,114,241,16 // pslld $0x10,%xmm9 |
| 7274 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 7275 | .byte 102,69,15,91,192 // cvtps2dq %xmm8,%xmm8 |
| 7276 | .byte 102,65,15,114,240,24 // pslld $0x18,%xmm8 |
| 7277 | .byte 102,69,15,235,193 // por %xmm9,%xmm8 |
| 7278 | .byte 102,69,15,235,194 // por %xmm10,%xmm8 |
| 7279 | .byte 243,68,15,127,4,184 // movdqu %xmm8,(%rax,%rdi,4) |
| 7280 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7281 | .byte 255,224 // jmpq *%rax |
| 7282 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7283 | HIDDEN _sk_load_f16_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7284 | .globl _sk_load_f16_sse2 |
| 7285 | _sk_load_f16_sse2: |
| 7286 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7287 | .byte 72,139,0 // mov (%rax),%rax |
| 7288 | .byte 243,15,111,4,248 // movdqu (%rax,%rdi,8),%xmm0 |
| 7289 | .byte 243,15,111,76,248,16 // movdqu 0x10(%rax,%rdi,8),%xmm1 |
| 7290 | .byte 102,15,111,208 // movdqa %xmm0,%xmm2 |
| 7291 | .byte 102,15,97,209 // punpcklwd %xmm1,%xmm2 |
| 7292 | .byte 102,15,105,193 // punpckhwd %xmm1,%xmm0 |
| 7293 | .byte 102,68,15,111,194 // movdqa %xmm2,%xmm8 |
| 7294 | .byte 102,68,15,97,192 // punpcklwd %xmm0,%xmm8 |
| 7295 | .byte 102,15,105,208 // punpckhwd %xmm0,%xmm2 |
| 7296 | .byte 184,0,4,0,4 // mov $0x4000400,%eax |
| 7297 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 7298 | .byte 102,15,112,216,0 // pshufd $0x0,%xmm0,%xmm3 |
| 7299 | .byte 102,15,111,203 // movdqa %xmm3,%xmm1 |
| 7300 | .byte 102,65,15,101,200 // pcmpgtw %xmm8,%xmm1 |
| 7301 | .byte 102,65,15,223,200 // pandn %xmm8,%xmm1 |
| 7302 | .byte 102,15,101,218 // pcmpgtw %xmm2,%xmm3 |
| 7303 | .byte 102,15,223,218 // pandn %xmm2,%xmm3 |
| 7304 | .byte 102,69,15,239,192 // pxor %xmm8,%xmm8 |
| 7305 | .byte 102,15,111,193 // movdqa %xmm1,%xmm0 |
| 7306 | .byte 102,65,15,97,192 // punpcklwd %xmm8,%xmm0 |
| 7307 | .byte 102,15,114,240,13 // pslld $0xd,%xmm0 |
| 7308 | .byte 184,0,0,128,119 // mov $0x77800000,%eax |
| 7309 | .byte 102,15,110,208 // movd %eax,%xmm2 |
| 7310 | .byte 102,68,15,112,202,0 // pshufd $0x0,%xmm2,%xmm9 |
| 7311 | .byte 65,15,89,193 // mulps %xmm9,%xmm0 |
| 7312 | .byte 102,65,15,105,200 // punpckhwd %xmm8,%xmm1 |
| 7313 | .byte 102,15,114,241,13 // pslld $0xd,%xmm1 |
| 7314 | .byte 65,15,89,201 // mulps %xmm9,%xmm1 |
| 7315 | .byte 102,15,111,211 // movdqa %xmm3,%xmm2 |
| 7316 | .byte 102,65,15,97,208 // punpcklwd %xmm8,%xmm2 |
| 7317 | .byte 102,15,114,242,13 // pslld $0xd,%xmm2 |
| 7318 | .byte 65,15,89,209 // mulps %xmm9,%xmm2 |
| 7319 | .byte 102,65,15,105,216 // punpckhwd %xmm8,%xmm3 |
| 7320 | .byte 102,15,114,243,13 // pslld $0xd,%xmm3 |
| 7321 | .byte 65,15,89,217 // mulps %xmm9,%xmm3 |
| 7322 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7323 | .byte 255,224 // jmpq *%rax |
| 7324 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7325 | HIDDEN _sk_store_f16_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7326 | .globl _sk_store_f16_sse2 |
| 7327 | _sk_store_f16_sse2: |
| 7328 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7329 | .byte 72,139,0 // mov (%rax),%rax |
| 7330 | .byte 185,0,0,128,7 // mov $0x7800000,%ecx |
| 7331 | .byte 102,68,15,110,193 // movd %ecx,%xmm8 |
| 7332 | .byte 102,69,15,112,192,0 // pshufd $0x0,%xmm8,%xmm8 |
| 7333 | .byte 102,69,15,111,200 // movdqa %xmm8,%xmm9 |
| 7334 | .byte 68,15,89,200 // mulps %xmm0,%xmm9 |
| 7335 | .byte 102,65,15,114,209,13 // psrld $0xd,%xmm9 |
| 7336 | .byte 102,69,15,111,208 // movdqa %xmm8,%xmm10 |
| 7337 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 7338 | .byte 102,65,15,114,210,13 // psrld $0xd,%xmm10 |
| 7339 | .byte 102,69,15,111,216 // movdqa %xmm8,%xmm11 |
| 7340 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 7341 | .byte 102,65,15,114,211,13 // psrld $0xd,%xmm11 |
| 7342 | .byte 68,15,89,195 // mulps %xmm3,%xmm8 |
| 7343 | .byte 102,65,15,114,208,13 // psrld $0xd,%xmm8 |
| 7344 | .byte 102,65,15,115,250,2 // pslldq $0x2,%xmm10 |
| 7345 | .byte 102,69,15,235,209 // por %xmm9,%xmm10 |
| 7346 | .byte 102,65,15,115,248,2 // pslldq $0x2,%xmm8 |
| 7347 | .byte 102,69,15,235,195 // por %xmm11,%xmm8 |
| 7348 | .byte 102,69,15,111,202 // movdqa %xmm10,%xmm9 |
| 7349 | .byte 102,69,15,98,200 // punpckldq %xmm8,%xmm9 |
| 7350 | .byte 243,68,15,127,12,248 // movdqu %xmm9,(%rax,%rdi,8) |
| 7351 | .byte 102,69,15,106,208 // punpckhdq %xmm8,%xmm10 |
| 7352 | .byte 243,68,15,127,84,248,16 // movdqu %xmm10,0x10(%rax,%rdi,8) |
| 7353 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7354 | .byte 255,224 // jmpq *%rax |
| 7355 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7356 | HIDDEN _sk_store_f32_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7357 | .globl _sk_store_f32_sse2 |
| 7358 | _sk_store_f32_sse2: |
| 7359 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7360 | .byte 72,139,0 // mov (%rax),%rax |
| 7361 | .byte 72,137,249 // mov %rdi,%rcx |
| 7362 | .byte 72,193,225,4 // shl $0x4,%rcx |
| 7363 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 7364 | .byte 68,15,40,200 // movaps %xmm0,%xmm9 |
| 7365 | .byte 68,15,20,201 // unpcklps %xmm1,%xmm9 |
| 7366 | .byte 68,15,40,210 // movaps %xmm2,%xmm10 |
| 7367 | .byte 68,15,40,218 // movaps %xmm2,%xmm11 |
| 7368 | .byte 68,15,20,219 // unpcklps %xmm3,%xmm11 |
| 7369 | .byte 68,15,21,193 // unpckhps %xmm1,%xmm8 |
| 7370 | .byte 68,15,21,211 // unpckhps %xmm3,%xmm10 |
| 7371 | .byte 69,15,40,225 // movaps %xmm9,%xmm12 |
| 7372 | .byte 102,69,15,20,227 // unpcklpd %xmm11,%xmm12 |
| 7373 | .byte 69,15,18,217 // movhlps %xmm9,%xmm11 |
| 7374 | .byte 69,15,40,200 // movaps %xmm8,%xmm9 |
| 7375 | .byte 102,69,15,20,202 // unpcklpd %xmm10,%xmm9 |
| 7376 | .byte 69,15,18,208 // movhlps %xmm8,%xmm10 |
| 7377 | .byte 102,68,15,17,36,8 // movupd %xmm12,(%rax,%rcx,1) |
| 7378 | .byte 68,15,17,92,8,16 // movups %xmm11,0x10(%rax,%rcx,1) |
| 7379 | .byte 102,68,15,17,76,8,32 // movupd %xmm9,0x20(%rax,%rcx,1) |
| 7380 | .byte 68,15,17,84,8,48 // movups %xmm10,0x30(%rax,%rcx,1) |
| 7381 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7382 | .byte 255,224 // jmpq *%rax |
| 7383 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7384 | HIDDEN _sk_clamp_x_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7385 | .globl _sk_clamp_x_sse2 |
| 7386 | _sk_clamp_x_sse2: |
| 7387 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7388 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 7389 | .byte 68,15,95,192 // maxps %xmm0,%xmm8 |
| 7390 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 7391 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7392 | .byte 102,15,118,192 // pcmpeqd %xmm0,%xmm0 |
| 7393 | .byte 102,65,15,254,193 // paddd %xmm9,%xmm0 |
| 7394 | .byte 68,15,93,192 // minps %xmm0,%xmm8 |
| 7395 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7396 | .byte 65,15,40,192 // movaps %xmm8,%xmm0 |
| 7397 | .byte 255,224 // jmpq *%rax |
| 7398 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7399 | HIDDEN _sk_clamp_y_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7400 | .globl _sk_clamp_y_sse2 |
| 7401 | _sk_clamp_y_sse2: |
| 7402 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7403 | .byte 69,15,87,192 // xorps %xmm8,%xmm8 |
| 7404 | .byte 68,15,95,193 // maxps %xmm1,%xmm8 |
| 7405 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 7406 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7407 | .byte 102,15,118,201 // pcmpeqd %xmm1,%xmm1 |
| 7408 | .byte 102,65,15,254,201 // paddd %xmm9,%xmm1 |
| 7409 | .byte 68,15,93,193 // minps %xmm1,%xmm8 |
| 7410 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7411 | .byte 65,15,40,200 // movaps %xmm8,%xmm1 |
| 7412 | .byte 255,224 // jmpq *%rax |
| 7413 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7414 | HIDDEN _sk_repeat_x_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7415 | .globl _sk_repeat_x_sse2 |
| 7416 | _sk_repeat_x_sse2: |
| 7417 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7418 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 7419 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7420 | .byte 68,15,40,200 // movaps %xmm0,%xmm9 |
| 7421 | .byte 69,15,94,200 // divps %xmm8,%xmm9 |
| 7422 | .byte 243,69,15,91,209 // cvttps2dq %xmm9,%xmm10 |
| 7423 | .byte 69,15,91,210 // cvtdq2ps %xmm10,%xmm10 |
| 7424 | .byte 69,15,194,202,1 // cmpltps %xmm10,%xmm9 |
| 7425 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7426 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 7427 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7428 | .byte 69,15,84,217 // andps %xmm9,%xmm11 |
| 7429 | .byte 69,15,92,211 // subps %xmm11,%xmm10 |
| 7430 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 7431 | .byte 65,15,92,194 // subps %xmm10,%xmm0 |
| 7432 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 7433 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 7434 | .byte 65,15,93,193 // minps %xmm9,%xmm0 |
| 7435 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7436 | .byte 255,224 // jmpq *%rax |
| 7437 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7438 | HIDDEN _sk_repeat_y_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7439 | .globl _sk_repeat_y_sse2 |
| 7440 | _sk_repeat_y_sse2: |
| 7441 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7442 | .byte 243,68,15,16,0 // movss (%rax),%xmm8 |
| 7443 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7444 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 7445 | .byte 69,15,94,200 // divps %xmm8,%xmm9 |
| 7446 | .byte 243,69,15,91,209 // cvttps2dq %xmm9,%xmm10 |
| 7447 | .byte 69,15,91,210 // cvtdq2ps %xmm10,%xmm10 |
| 7448 | .byte 69,15,194,202,1 // cmpltps %xmm10,%xmm9 |
| 7449 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7450 | .byte 102,68,15,110,216 // movd %eax,%xmm11 |
| 7451 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7452 | .byte 69,15,84,217 // andps %xmm9,%xmm11 |
| 7453 | .byte 69,15,92,211 // subps %xmm11,%xmm10 |
| 7454 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 7455 | .byte 65,15,92,202 // subps %xmm10,%xmm1 |
| 7456 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 7457 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 7458 | .byte 65,15,93,201 // minps %xmm9,%xmm1 |
| 7459 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7460 | .byte 255,224 // jmpq *%rax |
| 7461 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7462 | HIDDEN _sk_mirror_x_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7463 | .globl _sk_mirror_x_sse2 |
| 7464 | _sk_mirror_x_sse2: |
| 7465 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7466 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 7467 | .byte 69,15,40,193 // movaps %xmm9,%xmm8 |
| 7468 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7469 | .byte 65,15,92,192 // subps %xmm8,%xmm0 |
| 7470 | .byte 243,69,15,88,201 // addss %xmm9,%xmm9 |
| 7471 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7472 | .byte 68,15,40,208 // movaps %xmm0,%xmm10 |
| 7473 | .byte 69,15,94,209 // divps %xmm9,%xmm10 |
| 7474 | .byte 243,69,15,91,218 // cvttps2dq %xmm10,%xmm11 |
| 7475 | .byte 69,15,91,219 // cvtdq2ps %xmm11,%xmm11 |
| 7476 | .byte 69,15,194,211,1 // cmpltps %xmm11,%xmm10 |
| 7477 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7478 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 7479 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7480 | .byte 69,15,84,226 // andps %xmm10,%xmm12 |
| 7481 | .byte 69,15,87,210 // xorps %xmm10,%xmm10 |
| 7482 | .byte 69,15,92,220 // subps %xmm12,%xmm11 |
| 7483 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 7484 | .byte 65,15,92,195 // subps %xmm11,%xmm0 |
| 7485 | .byte 65,15,92,192 // subps %xmm8,%xmm0 |
| 7486 | .byte 68,15,92,208 // subps %xmm0,%xmm10 |
| 7487 | .byte 65,15,84,194 // andps %xmm10,%xmm0 |
| 7488 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 7489 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 7490 | .byte 65,15,93,193 // minps %xmm9,%xmm0 |
| 7491 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7492 | .byte 255,224 // jmpq *%rax |
| 7493 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7494 | HIDDEN _sk_mirror_y_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7495 | .globl _sk_mirror_y_sse2 |
| 7496 | _sk_mirror_y_sse2: |
| 7497 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7498 | .byte 243,68,15,16,8 // movss (%rax),%xmm9 |
| 7499 | .byte 69,15,40,193 // movaps %xmm9,%xmm8 |
| 7500 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7501 | .byte 65,15,92,200 // subps %xmm8,%xmm1 |
| 7502 | .byte 243,69,15,88,201 // addss %xmm9,%xmm9 |
| 7503 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7504 | .byte 68,15,40,209 // movaps %xmm1,%xmm10 |
| 7505 | .byte 69,15,94,209 // divps %xmm9,%xmm10 |
| 7506 | .byte 243,69,15,91,218 // cvttps2dq %xmm10,%xmm11 |
| 7507 | .byte 69,15,91,219 // cvtdq2ps %xmm11,%xmm11 |
| 7508 | .byte 69,15,194,211,1 // cmpltps %xmm11,%xmm10 |
| 7509 | .byte 184,0,0,128,63 // mov $0x3f800000,%eax |
| 7510 | .byte 102,68,15,110,224 // movd %eax,%xmm12 |
| 7511 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7512 | .byte 69,15,84,226 // andps %xmm10,%xmm12 |
| 7513 | .byte 69,15,87,210 // xorps %xmm10,%xmm10 |
| 7514 | .byte 69,15,92,220 // subps %xmm12,%xmm11 |
| 7515 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 7516 | .byte 65,15,92,203 // subps %xmm11,%xmm1 |
| 7517 | .byte 65,15,92,200 // subps %xmm8,%xmm1 |
| 7518 | .byte 68,15,92,209 // subps %xmm1,%xmm10 |
| 7519 | .byte 65,15,84,202 // andps %xmm10,%xmm1 |
| 7520 | .byte 102,69,15,118,201 // pcmpeqd %xmm9,%xmm9 |
| 7521 | .byte 102,69,15,254,200 // paddd %xmm8,%xmm9 |
| 7522 | .byte 65,15,93,201 // minps %xmm9,%xmm1 |
| 7523 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7524 | .byte 255,224 // jmpq *%rax |
| 7525 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7526 | HIDDEN _sk_luminance_to_alpha_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7527 | .globl _sk_luminance_to_alpha_sse2 |
| 7528 | _sk_luminance_to_alpha_sse2: |
| 7529 | .byte 184,208,179,89,62 // mov $0x3e59b3d0,%eax |
| 7530 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7531 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7532 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 7533 | .byte 184,89,23,55,63 // mov $0x3f371759,%eax |
| 7534 | .byte 102,15,110,192 // movd %eax,%xmm0 |
| 7535 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7536 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 7537 | .byte 15,88,195 // addps %xmm3,%xmm0 |
| 7538 | .byte 184,152,221,147,61 // mov $0x3d93dd98,%eax |
| 7539 | .byte 102,15,110,216 // movd %eax,%xmm3 |
| 7540 | .byte 15,198,219,0 // shufps $0x0,%xmm3,%xmm3 |
| 7541 | .byte 15,89,218 // mulps %xmm2,%xmm3 |
| 7542 | .byte 15,88,216 // addps %xmm0,%xmm3 |
| 7543 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7544 | .byte 15,87,192 // xorps %xmm0,%xmm0 |
| 7545 | .byte 15,87,201 // xorps %xmm1,%xmm1 |
| 7546 | .byte 15,87,210 // xorps %xmm2,%xmm2 |
| 7547 | .byte 255,224 // jmpq *%rax |
| 7548 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7549 | HIDDEN _sk_matrix_2x3_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7550 | .globl _sk_matrix_2x3_sse2 |
| 7551 | _sk_matrix_2x3_sse2: |
| 7552 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 7553 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 7554 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7555 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 7556 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 7557 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7558 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 7559 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7560 | .byte 243,68,15,16,88,16 // movss 0x10(%rax),%xmm11 |
| 7561 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7562 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7563 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7564 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 7565 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 7566 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 7567 | .byte 243,68,15,16,80,12 // movss 0xc(%rax),%xmm10 |
| 7568 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7569 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 7570 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7571 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7572 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7573 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 7574 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 7575 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7576 | .byte 255,224 // jmpq *%rax |
| 7577 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7578 | HIDDEN _sk_matrix_3x4_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7579 | .globl _sk_matrix_3x4_sse2 |
| 7580 | _sk_matrix_3x4_sse2: |
| 7581 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 7582 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 7583 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7584 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 7585 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 7586 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7587 | .byte 243,68,15,16,80,12 // movss 0xc(%rax),%xmm10 |
| 7588 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7589 | .byte 243,68,15,16,88,24 // movss 0x18(%rax),%xmm11 |
| 7590 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7591 | .byte 243,68,15,16,96,36 // movss 0x24(%rax),%xmm12 |
| 7592 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7593 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 7594 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7595 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7596 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7597 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 7598 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 7599 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 7600 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 7601 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7602 | .byte 243,68,15,16,88,28 // movss 0x1c(%rax),%xmm11 |
| 7603 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7604 | .byte 243,68,15,16,96,40 // movss 0x28(%rax),%xmm12 |
| 7605 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7606 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 7607 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7608 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7609 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7610 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 7611 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 7612 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 7613 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7614 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 7615 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7616 | .byte 243,68,15,16,96,32 // movss 0x20(%rax),%xmm12 |
| 7617 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7618 | .byte 243,68,15,16,104,44 // movss 0x2c(%rax),%xmm13 |
| 7619 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 7620 | .byte 68,15,89,226 // mulps %xmm2,%xmm12 |
| 7621 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 7622 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 7623 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7624 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 7625 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7626 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7627 | .byte 65,15,40,210 // movaps %xmm10,%xmm2 |
| 7628 | .byte 255,224 // jmpq *%rax |
| 7629 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7630 | HIDDEN _sk_matrix_4x5_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7631 | .globl _sk_matrix_4x5_sse2 |
| 7632 | _sk_matrix_4x5_sse2: |
| 7633 | .byte 68,15,40,201 // movaps %xmm1,%xmm9 |
| 7634 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 7635 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7636 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 7637 | .byte 243,15,16,72,4 // movss 0x4(%rax),%xmm1 |
| 7638 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7639 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 7640 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7641 | .byte 243,68,15,16,88,32 // movss 0x20(%rax),%xmm11 |
| 7642 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7643 | .byte 243,68,15,16,96,48 // movss 0x30(%rax),%xmm12 |
| 7644 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7645 | .byte 243,68,15,16,104,64 // movss 0x40(%rax),%xmm13 |
| 7646 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 7647 | .byte 68,15,89,227 // mulps %xmm3,%xmm12 |
| 7648 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 7649 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 7650 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7651 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7652 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7653 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 7654 | .byte 65,15,88,194 // addps %xmm10,%xmm0 |
| 7655 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 7656 | .byte 243,68,15,16,80,20 // movss 0x14(%rax),%xmm10 |
| 7657 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7658 | .byte 243,68,15,16,88,36 // movss 0x24(%rax),%xmm11 |
| 7659 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7660 | .byte 243,68,15,16,96,52 // movss 0x34(%rax),%xmm12 |
| 7661 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7662 | .byte 243,68,15,16,104,68 // movss 0x44(%rax),%xmm13 |
| 7663 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 7664 | .byte 68,15,89,227 // mulps %xmm3,%xmm12 |
| 7665 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 7666 | .byte 68,15,89,218 // mulps %xmm2,%xmm11 |
| 7667 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7668 | .byte 69,15,89,209 // mulps %xmm9,%xmm10 |
| 7669 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7670 | .byte 65,15,89,200 // mulps %xmm8,%xmm1 |
| 7671 | .byte 65,15,88,202 // addps %xmm10,%xmm1 |
| 7672 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 7673 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7674 | .byte 243,68,15,16,88,24 // movss 0x18(%rax),%xmm11 |
| 7675 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7676 | .byte 243,68,15,16,96,40 // movss 0x28(%rax),%xmm12 |
| 7677 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7678 | .byte 243,68,15,16,104,56 // movss 0x38(%rax),%xmm13 |
| 7679 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 7680 | .byte 243,68,15,16,112,72 // movss 0x48(%rax),%xmm14 |
| 7681 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 7682 | .byte 68,15,89,235 // mulps %xmm3,%xmm13 |
| 7683 | .byte 69,15,88,238 // addps %xmm14,%xmm13 |
| 7684 | .byte 68,15,89,226 // mulps %xmm2,%xmm12 |
| 7685 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 7686 | .byte 69,15,89,217 // mulps %xmm9,%xmm11 |
| 7687 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7688 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 7689 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7690 | .byte 243,68,15,16,88,12 // movss 0xc(%rax),%xmm11 |
| 7691 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7692 | .byte 243,68,15,16,96,28 // movss 0x1c(%rax),%xmm12 |
| 7693 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7694 | .byte 243,68,15,16,104,44 // movss 0x2c(%rax),%xmm13 |
| 7695 | .byte 69,15,198,237,0 // shufps $0x0,%xmm13,%xmm13 |
| 7696 | .byte 243,68,15,16,112,60 // movss 0x3c(%rax),%xmm14 |
| 7697 | .byte 69,15,198,246,0 // shufps $0x0,%xmm14,%xmm14 |
| 7698 | .byte 243,68,15,16,120,76 // movss 0x4c(%rax),%xmm15 |
| 7699 | .byte 69,15,198,255,0 // shufps $0x0,%xmm15,%xmm15 |
| 7700 | .byte 68,15,89,243 // mulps %xmm3,%xmm14 |
| 7701 | .byte 69,15,88,247 // addps %xmm15,%xmm14 |
| 7702 | .byte 68,15,89,234 // mulps %xmm2,%xmm13 |
| 7703 | .byte 69,15,88,238 // addps %xmm14,%xmm13 |
| 7704 | .byte 69,15,89,225 // mulps %xmm9,%xmm12 |
| 7705 | .byte 69,15,88,229 // addps %xmm13,%xmm12 |
| 7706 | .byte 69,15,89,216 // mulps %xmm8,%xmm11 |
| 7707 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7708 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7709 | .byte 65,15,40,210 // movaps %xmm10,%xmm2 |
| 7710 | .byte 65,15,40,219 // movaps %xmm11,%xmm3 |
| 7711 | .byte 255,224 // jmpq *%rax |
| 7712 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7713 | HIDDEN _sk_matrix_perspective_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7714 | .globl _sk_matrix_perspective_sse2 |
| 7715 | _sk_matrix_perspective_sse2: |
| 7716 | .byte 68,15,40,192 // movaps %xmm0,%xmm8 |
| 7717 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7718 | .byte 243,15,16,0 // movss (%rax),%xmm0 |
| 7719 | .byte 243,68,15,16,72,4 // movss 0x4(%rax),%xmm9 |
| 7720 | .byte 15,198,192,0 // shufps $0x0,%xmm0,%xmm0 |
| 7721 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7722 | .byte 243,68,15,16,80,8 // movss 0x8(%rax),%xmm10 |
| 7723 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7724 | .byte 68,15,89,201 // mulps %xmm1,%xmm9 |
| 7725 | .byte 69,15,88,202 // addps %xmm10,%xmm9 |
| 7726 | .byte 65,15,89,192 // mulps %xmm8,%xmm0 |
| 7727 | .byte 65,15,88,193 // addps %xmm9,%xmm0 |
| 7728 | .byte 243,68,15,16,72,12 // movss 0xc(%rax),%xmm9 |
| 7729 | .byte 69,15,198,201,0 // shufps $0x0,%xmm9,%xmm9 |
| 7730 | .byte 243,68,15,16,80,16 // movss 0x10(%rax),%xmm10 |
| 7731 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7732 | .byte 243,68,15,16,88,20 // movss 0x14(%rax),%xmm11 |
| 7733 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7734 | .byte 68,15,89,209 // mulps %xmm1,%xmm10 |
| 7735 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7736 | .byte 69,15,89,200 // mulps %xmm8,%xmm9 |
| 7737 | .byte 69,15,88,202 // addps %xmm10,%xmm9 |
| 7738 | .byte 243,68,15,16,80,24 // movss 0x18(%rax),%xmm10 |
| 7739 | .byte 69,15,198,210,0 // shufps $0x0,%xmm10,%xmm10 |
| 7740 | .byte 243,68,15,16,88,28 // movss 0x1c(%rax),%xmm11 |
| 7741 | .byte 69,15,198,219,0 // shufps $0x0,%xmm11,%xmm11 |
| 7742 | .byte 243,68,15,16,96,32 // movss 0x20(%rax),%xmm12 |
| 7743 | .byte 69,15,198,228,0 // shufps $0x0,%xmm12,%xmm12 |
| 7744 | .byte 68,15,89,217 // mulps %xmm1,%xmm11 |
| 7745 | .byte 69,15,88,220 // addps %xmm12,%xmm11 |
| 7746 | .byte 69,15,89,208 // mulps %xmm8,%xmm10 |
| 7747 | .byte 69,15,88,211 // addps %xmm11,%xmm10 |
| 7748 | .byte 65,15,83,202 // rcpps %xmm10,%xmm1 |
| 7749 | .byte 15,89,193 // mulps %xmm1,%xmm0 |
| 7750 | .byte 68,15,89,201 // mulps %xmm1,%xmm9 |
| 7751 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7752 | .byte 65,15,40,201 // movaps %xmm9,%xmm1 |
| 7753 | .byte 255,224 // jmpq *%rax |
| 7754 | |
Mike Klein | 7c4af54 | 2017-03-29 18:21:14 -0400 | [diff] [blame] | 7755 | HIDDEN _sk_linear_gradient_2stops_sse2 |
Mike Klein | d7e06ae | 2017-03-29 16:33:06 -0400 | [diff] [blame] | 7756 | .globl _sk_linear_gradient_2stops_sse2 |
| 7757 | _sk_linear_gradient_2stops_sse2: |
| 7758 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7759 | .byte 68,15,16,8 // movups (%rax),%xmm9 |
| 7760 | .byte 15,16,88,16 // movups 0x10(%rax),%xmm3 |
| 7761 | .byte 68,15,40,195 // movaps %xmm3,%xmm8 |
| 7762 | .byte 69,15,198,192,0 // shufps $0x0,%xmm8,%xmm8 |
| 7763 | .byte 65,15,40,201 // movaps %xmm9,%xmm1 |
| 7764 | .byte 15,198,201,0 // shufps $0x0,%xmm1,%xmm1 |
| 7765 | .byte 68,15,89,192 // mulps %xmm0,%xmm8 |
| 7766 | .byte 68,15,88,193 // addps %xmm1,%xmm8 |
| 7767 | .byte 15,40,203 // movaps %xmm3,%xmm1 |
| 7768 | .byte 15,198,201,85 // shufps $0x55,%xmm1,%xmm1 |
| 7769 | .byte 65,15,40,209 // movaps %xmm9,%xmm2 |
| 7770 | .byte 15,198,210,85 // shufps $0x55,%xmm2,%xmm2 |
| 7771 | .byte 15,89,200 // mulps %xmm0,%xmm1 |
| 7772 | .byte 15,88,202 // addps %xmm2,%xmm1 |
| 7773 | .byte 15,40,211 // movaps %xmm3,%xmm2 |
| 7774 | .byte 15,198,210,170 // shufps $0xaa,%xmm2,%xmm2 |
| 7775 | .byte 69,15,40,209 // movaps %xmm9,%xmm10 |
| 7776 | .byte 69,15,198,210,170 // shufps $0xaa,%xmm10,%xmm10 |
| 7777 | .byte 15,89,208 // mulps %xmm0,%xmm2 |
| 7778 | .byte 65,15,88,210 // addps %xmm10,%xmm2 |
| 7779 | .byte 15,198,219,255 // shufps $0xff,%xmm3,%xmm3 |
| 7780 | .byte 69,15,198,201,255 // shufps $0xff,%xmm9,%xmm9 |
| 7781 | .byte 15,89,216 // mulps %xmm0,%xmm3 |
| 7782 | .byte 65,15,88,217 // addps %xmm9,%xmm3 |
| 7783 | .byte 72,173 // lods %ds:(%rsi),%rax |
| 7784 | .byte 65,15,40,192 // movaps %xmm8,%xmm0 |
| 7785 | .byte 255,224 // jmpq *%rax |
| 7786 | #endif |