| 1 |
#include "crypto_asm_hidden.h" |
| 2 |
// linker define mladder |
| 3 |
|
| 4 |
/* Assembly for Montgomery ladder */ |
| 5 |
|
| 6 |
#define IMPL1 |
| 7 |
#ifdef IMPL1 |
| 8 |
|
| 9 |
.p2align 4 |
| 10 |
ASM_HIDDEN _CRYPTO_SHARED_NAMESPACE(mladder) |
| 11 |
.globl _CRYPTO_SHARED_NAMESPACE(mladder) |
| 12 |
ASM_HIDDEN CRYPTO_SHARED_NAMESPACE(mladder) |
| 13 |
.globl CRYPTO_SHARED_NAMESPACE(mladder) |
| 14 |
|
| 15 |
_CRYPTO_SHARED_NAMESPACE(mladder): |
| 16 |
CRYPTO_SHARED_NAMESPACE(mladder): |
| 17 |
|
| 18 |
sub sp, sp, #592 |
| 19 |
add x10, sp, #408 |
| 20 |
stp x19, x20, [x10, #0] |
| 21 |
stp x21, x22, [x10, #16] |
| 22 |
stp x23, x24, [x10, #32] |
| 23 |
stp x25, x26, [x10, #48] |
| 24 |
stp x27, x28, [x10, #64] |
| 25 |
stp x29, x30, [x10, #80] |
| 26 |
stp d8, d9, [x10, #96] |
| 27 |
stp d10, d11, [x10, #112] |
| 28 |
stp d12, d13, [x10, #128] |
| 29 |
stp d14, d15, [x10, #144] |
| 30 |
|
| 31 |
// clamp scalar |
| 32 |
ldr x3, [x2, #0] |
| 33 |
and x3, x3, #0xfffffffffffffff8 |
| 34 |
str x3, [sp, #104] |
| 35 |
|
| 36 |
ldr x3, [x2, #8] |
| 37 |
str x3, [sp, #112] |
| 38 |
|
| 39 |
ldr x3, [x2, #16] |
| 40 |
str x3, [sp, #120] |
| 41 |
|
| 42 |
ldr x4, [x2, #24] |
| 43 |
orr x4, x4, #0x4000000000000000 |
| 44 |
str x4, [sp, #128] |
| 45 |
|
| 46 |
str x0, [sp, #144] |
| 47 |
|
| 48 |
// load point |
| 49 |
ldp x4, x5, [x1, #0] |
| 50 |
ldp x6, x7, [x1, #16] |
| 51 |
|
| 52 |
// X1 |
| 53 |
and w8, w4, #0x1fffffff |
| 54 |
ubfx x9, x4, #29, #29 |
| 55 |
|
| 56 |
lsr x10, x4, #58 |
| 57 |
orr w10, w10, w5, lsl #6 |
| 58 |
and w10, w10, #0x1fffffff |
| 59 |
ubfx x11, x5, #23, #29 |
| 60 |
|
| 61 |
lsr x12, x5, #52 |
| 62 |
orr w12, w12, w6, lsl #12 |
| 63 |
and w12, w12, #0x1fffffff |
| 64 |
ubfx x13, x6, #17, #29 |
| 65 |
|
| 66 |
lsr x14, x6, #46 |
| 67 |
orr w14, w14, w7, lsl #18 |
| 68 |
and w14, w14, #0x1fffffff |
| 69 |
ubfx x15, x7, #11, #29 |
| 70 |
|
| 71 |
ubfx x16, x7, #40, #23 |
| 72 |
|
| 73 |
add x0, sp, #360 |
| 74 |
stp w8, w9, [x0, #0] |
| 75 |
stp w10, w11, [x0, #8] |
| 76 |
stp w12, w13, [x0, #16] |
| 77 |
stp w14, w15, [x0, #24] |
| 78 |
stp w16, wzr, [x0, #32] |
| 79 |
|
| 80 |
mov x20, #1 |
| 81 |
// X2 ← 1 |
| 82 |
mov v11.d[0], x20 |
| 83 |
mov v13.d[0], xzr |
| 84 |
mov v15.d[0], xzr |
| 85 |
mov v17.d[0], xzr |
| 86 |
mov v19.d[0], xzr |
| 87 |
|
| 88 |
// Z2 ← 0 |
| 89 |
mov v10.d[0], xzr |
| 90 |
mov v12.d[0], xzr |
| 91 |
mov v14.d[0], xzr |
| 92 |
mov v16.d[0], xzr |
| 93 |
mov v18.d[0], xzr |
| 94 |
|
| 95 |
// X3 ← X1 |
| 96 |
mov v21.s[0], w8 |
| 97 |
mov v21.s[1], w9 |
| 98 |
mov v23.s[0], w10 |
| 99 |
mov v23.s[1], w11 |
| 100 |
mov v25.s[0], w12 |
| 101 |
mov v25.s[1], w13 |
| 102 |
mov v27.s[0], w14 |
| 103 |
mov v27.s[1], w15 |
| 104 |
mov v29.s[0], w16 |
| 105 |
mov v29.s[1], wzr |
| 106 |
|
| 107 |
// Z3 ← 1 |
| 108 |
mov v20.d[0], x20 |
| 109 |
mov v22.d[0], xzr |
| 110 |
mov v24.d[0], xzr |
| 111 |
mov v26.d[0], xzr |
| 112 |
mov v28.d[0], xzr |
| 113 |
|
| 114 |
ldr x29,= 0x000004c0000004c0 |
| 115 |
add x28, sp, #576 |
| 116 |
str x29, [x28, #0] |
| 117 |
|
| 118 |
mov w30, #1216 |
| 119 |
dup v31.2s, w30 |
| 120 |
mov w29, #0x1fffffff |
| 121 |
dup v30.2d, x29 |
| 122 |
|
| 123 |
movz x1, #0xffda |
| 124 |
movk x1, #0x3fff, lsl 16 |
| 125 |
movk x1, #0xfffe, lsl 32 |
| 126 |
movk x1, #0x3fff, lsl 48 |
| 127 |
|
| 128 |
movz x2, #0xfffe |
| 129 |
movk x2, #0x3fff, lsl 16 |
| 130 |
movk x2, #0xfffe, lsl 32 |
| 131 |
movk x2, #0x3fff, lsl 48 |
| 132 |
|
| 133 |
movz x3, #0xfffe |
| 134 |
movk x3, #0x00ff, lsl 16 |
| 135 |
|
| 136 |
stp x2, x1, [sp, #0] |
| 137 |
str x3, [sp, #160] |
| 138 |
|
| 139 |
mov w0, #254 |
| 140 |
str w0, [sp, #96] |
| 141 |
|
| 142 |
mov w0, #0xda |
| 143 |
strb w0, [sp, #152] |
| 144 |
|
| 145 |
ldrb w1, [sp, #135] |
| 146 |
lsr w1, w1, #6 |
| 147 |
str w1, [sp, #100] |
| 148 |
|
| 149 |
// Montgomery ladder loop |
| 150 |
.L0: |
| 151 |
|
| 152 |
tst w1, #1 |
| 153 |
|
| 154 |
ldr d7, [sp, #8] |
| 155 |
ldr d8, [sp, #0] |
| 156 |
ldr d9, [sp, #160] |
| 157 |
|
| 158 |
// T1 = X2 + Z2, T2 = X2 - Z2 |
| 159 |
add v0.2s, v11.2s, v10.2s |
| 160 |
add v1.2s, v13.2s, v12.2s |
| 161 |
add v2.2s, v15.2s, v14.2s |
| 162 |
add v3.2s, v17.2s, v16.2s |
| 163 |
add v4.2s, v19.2s, v18.2s |
| 164 |
|
| 165 |
add v11.2s, v7.2s, v11.2s |
| 166 |
add v13.2s, v8.2s, v13.2s |
| 167 |
add v15.2s, v8.2s, v15.2s |
| 168 |
add v17.2s, v8.2s, v17.2s |
| 169 |
add v19.2s, v9.2s, v19.2s |
| 170 |
|
| 171 |
sub v11.2s, v11.2s, v10.2s |
| 172 |
sub v13.2s, v13.2s, v12.2s |
| 173 |
sub v15.2s, v15.2s, v14.2s |
| 174 |
sub v17.2s, v17.2s, v16.2s |
| 175 |
sub v19.2s, v19.2s, v18.2s |
| 176 |
|
| 177 |
// T4 = X3 - Z3, T3 = X3 + Z3 |
| 178 |
add v10.2s, v7.2s, v21.2s |
| 179 |
add v12.2s, v8.2s, v23.2s |
| 180 |
add v14.2s, v8.2s, v25.2s |
| 181 |
add v16.2s, v8.2s, v27.2s |
| 182 |
add v18.2s, v9.2s, v29.2s |
| 183 |
|
| 184 |
add v5.2s, v21.2s, v20.2s |
| 185 |
add v6.2s, v23.2s, v22.2s |
| 186 |
add v7.2s, v25.2s, v24.2s |
| 187 |
add v8.2s, v27.2s, v26.2s |
| 188 |
add v9.2s, v29.2s, v28.2s |
| 189 |
|
| 190 |
sub v21.2s, v10.2s, v20.2s |
| 191 |
sub v23.2s, v12.2s, v22.2s |
| 192 |
sub v25.2s, v14.2s, v24.2s |
| 193 |
sub v27.2s, v16.2s, v26.2s |
| 194 |
sub v29.2s, v18.2s, v28.2s |
| 195 |
|
| 196 |
// CSelect(T1,T3,b) |
| 197 |
fcsel d10, d0, d5, eq |
| 198 |
fcsel d12, d1, d6, eq |
| 199 |
fcsel d14, d2, d7, eq |
| 200 |
fcsel d16, d3, d8, eq |
| 201 |
fcsel d18, d4, d9, eq |
| 202 |
|
| 203 |
// save T1 resulted from CSelect |
| 204 |
mov x10, v10.d[0] |
| 205 |
mov x12, v12.d[0] |
| 206 |
mov x14, v14.d[0] |
| 207 |
mov x16, v16.d[0] |
| 208 |
mov x18, v18.d[0] |
| 209 |
|
| 210 |
// CSelect(T2,T4,b) |
| 211 |
fcsel d20, d11, d21, eq |
| 212 |
fcsel d22, d13, d23, eq |
| 213 |
fcsel d24, d15, d25, eq |
| 214 |
fcsel d26, d17, d27, eq |
| 215 |
fcsel d28, d19, d29, eq |
| 216 |
|
| 217 |
// save T2 resulted from CSelect |
| 218 |
stp d20, d22, [sp, #168] |
| 219 |
stp d24, d26, [sp, #184] |
| 220 |
str d28, [sp, #200] |
| 221 |
|
| 222 |
// <T1,T2> = <X2 + Z2,X2 - Z2> |
| 223 |
trn1 v10.2s, v0.2s, v11.2s |
| 224 |
trn2 v11.2s, v0.2s, v11.2s |
| 225 |
trn1 v12.2s, v1.2s, v13.2s |
| 226 |
trn2 v13.2s, v1.2s, v13.2s |
| 227 |
trn1 v14.2s, v2.2s, v15.2s |
| 228 |
trn2 v15.2s, v2.2s, v15.2s |
| 229 |
trn1 v16.2s, v3.2s, v17.2s |
| 230 |
trn2 v17.2s, v3.2s, v17.2s |
| 231 |
trn1 v18.2s, v4.2s, v19.2s |
| 232 |
|
| 233 |
// <T4,T3> = <X3 - Z3,X3 + Z3> |
| 234 |
trn1 v20.2s, v21.2s, v5.2s |
| 235 |
trn2 v21.2s, v21.2s, v5.2s |
| 236 |
trn1 v22.2s, v23.2s, v6.2s |
| 237 |
trn2 v23.2s, v23.2s, v6.2s |
| 238 |
trn1 v24.2s, v25.2s, v7.2s |
| 239 |
trn2 v25.2s, v25.2s, v7.2s |
| 240 |
trn1 v26.2s, v27.2s, v8.2s |
| 241 |
trn2 v27.2s, v27.2s, v8.2s |
| 242 |
trn1 v28.2s, v29.2s, v9.2s |
| 243 |
|
| 244 |
// T1 ← T1^2 |
| 245 |
lsr x11, x10, #32 |
| 246 |
lsr x13, x12, #32 |
| 247 |
lsr x15, x14, #32 |
| 248 |
lsr x17, x16, #32 |
| 249 |
|
| 250 |
add x20, x10, x10 |
| 251 |
add x21, x11, x11 |
| 252 |
add x22, x12, x12 |
| 253 |
add x23, x13, x13 |
| 254 |
add x24, x14, x14 |
| 255 |
add x25, x15, x15 |
| 256 |
add x26, x16, x16 |
| 257 |
add x27, x17, x17 |
| 258 |
|
| 259 |
umull x0, w10, w10 |
| 260 |
umull x1, w20, w11 |
| 261 |
umull x2, w20, w12 |
| 262 |
umull x3, w20, w13 |
| 263 |
umull x4, w20, w14 |
| 264 |
umull x5, w20, w15 |
| 265 |
umull x6, w20, w16 |
| 266 |
umull x7, w20, w17 |
| 267 |
umull x8, w20, w18 |
| 268 |
|
| 269 |
umaddl x2, w11, w11, x2 |
| 270 |
umaddl x3, w21, w12, x3 |
| 271 |
umaddl x4, w21, w13, x4 |
| 272 |
umaddl x5, w21, w14, x5 |
| 273 |
umaddl x6, w21, w15, x6 |
| 274 |
umaddl x7, w21, w16, x7 |
| 275 |
umaddl x8, w21, w17, x8 |
| 276 |
umull x9, w21, w18 |
| 277 |
|
| 278 |
umaddl x4, w12, w12, x4 |
| 279 |
umaddl x5, w22, w13, x5 |
| 280 |
umaddl x6, w22, w14, x6 |
| 281 |
umaddl x7, w22, w15, x7 |
| 282 |
umaddl x8, w22, w16, x8 |
| 283 |
umaddl x9, w22, w17, x9 |
| 284 |
umull x10, w22, w18 |
| 285 |
|
| 286 |
umaddl x6, w13, w13, x6 |
| 287 |
umaddl x7, w23, w14, x7 |
| 288 |
umaddl x8, w23, w15, x8 |
| 289 |
umaddl x9, w23, w16, x9 |
| 290 |
umaddl x10, w23, w17, x10 |
| 291 |
umull x11, w23, w18 |
| 292 |
|
| 293 |
umaddl x8, w14, w14, x8 |
| 294 |
umaddl x9, w24, w15, x9 |
| 295 |
umaddl x10, w24, w16, x10 |
| 296 |
umaddl x11, w24, w17, x11 |
| 297 |
umull x12, w24, w18 |
| 298 |
|
| 299 |
umaddl x10, w15, w15, x10 |
| 300 |
umaddl x11, w25, w16, x11 |
| 301 |
umaddl x12, w25, w17, x12 |
| 302 |
umull x13, w25, w18 |
| 303 |
|
| 304 |
add x10, x10, x9, lsr #29 |
| 305 |
and x9, x9, #0x1fffffff |
| 306 |
umull x9, w9, w30 |
| 307 |
add x0, x0, x9 |
| 308 |
|
| 309 |
add x11, x11, x10, lsr #29 |
| 310 |
and x10, x10, #0x1fffffff |
| 311 |
umull x10, w10, w30 |
| 312 |
add x1, x1, x10 |
| 313 |
|
| 314 |
umaddl x12, w16, w16, x12 |
| 315 |
umaddl x13, w26, w17, x13 |
| 316 |
umull x14, w26, w18 |
| 317 |
|
| 318 |
add x12, x12, x11, lsr #29 |
| 319 |
and x11, x11, #0x1fffffff |
| 320 |
umull x11, w11, w30 |
| 321 |
add x2, x2, x11 |
| 322 |
|
| 323 |
add x13, x13, x12, lsr #29 |
| 324 |
and x12, x12, #0x1fffffff |
| 325 |
umull x12, w12, w30 |
| 326 |
add x3, x3, x12 |
| 327 |
|
| 328 |
umaddl x14, w17, w17, x14 |
| 329 |
umull x15, w27, w18 |
| 330 |
|
| 331 |
add x14, x14, x13, lsr #29 |
| 332 |
and x13, x13, #0x1fffffff |
| 333 |
umull x13, w13, w30 |
| 334 |
add x4, x4, x13 |
| 335 |
|
| 336 |
add x15, x15, x14, lsr #29 |
| 337 |
and x14, x14, #0x1fffffff |
| 338 |
umull x14, w14, w30 |
| 339 |
add x5, x5, x14 |
| 340 |
|
| 341 |
umull x16, w18, w18 |
| 342 |
|
| 343 |
add x16, x16, x15, lsr #29 |
| 344 |
and x15, x15, #0x1fffffff |
| 345 |
umull x15, w15, w30 |
| 346 |
add x6, x6, x15 |
| 347 |
|
| 348 |
lsr x9, x16, #29 |
| 349 |
and x16, x16, #0x1fffffff |
| 350 |
umull x16, w16, w30 |
| 351 |
add x7, x7, x16 |
| 352 |
|
| 353 |
umull x9, w9, w30 |
| 354 |
add x8, x8, x9 |
| 355 |
|
| 356 |
add x1, x1, x0, lsr #29 |
| 357 |
and x0, x0, 0x1fffffff |
| 358 |
|
| 359 |
add x2, x2, x1, lsr #29 |
| 360 |
and x1, x1, 0x1fffffff |
| 361 |
|
| 362 |
add x3, x3, x2, lsr #29 |
| 363 |
and x2, x2, 0x1fffffff |
| 364 |
|
| 365 |
add x4, x4, x3, lsr #29 |
| 366 |
bfi x2, x3, #32, #29 |
| 367 |
|
| 368 |
add x5, x5, x4, lsr #29 |
| 369 |
and x4, x4, 0x1fffffff |
| 370 |
|
| 371 |
add x6, x6, x5, lsr #29 |
| 372 |
bfi x4, x5, #32, #29 |
| 373 |
|
| 374 |
add x7, x7, x6, lsr #29 |
| 375 |
and x6, x6, 0x1fffffff |
| 376 |
|
| 377 |
add x8, x8, x7, lsr #29 |
| 378 |
bfi x6, x7, #32, #29 |
| 379 |
|
| 380 |
bic x10, x8, #0x7fffff |
| 381 |
add x0, x0, x10, lsr #23 |
| 382 |
add x0, x0, x10, lsr #22 |
| 383 |
add x0, x0, x10, lsr #19 |
| 384 |
and x8, x8, #0x7fffff |
| 385 |
|
| 386 |
add x1, x1, x0, lsr #29 |
| 387 |
and x0, x0, 0x1fffffff |
| 388 |
bfi x0, x1, #32, #30 |
| 389 |
|
| 390 |
stp x0, x2, [sp, #216] |
| 391 |
stp x4, x6, [sp, #232] |
| 392 |
str x8, [sp, #248] |
| 393 |
|
| 394 |
// T2 ← T2^2 |
| 395 |
ldp x10, x12, [sp, #168] |
| 396 |
ldp x14, x16, [sp, #184] |
| 397 |
ldr x18, [sp, #200] |
| 398 |
|
| 399 |
lsr x11, x10, #32 |
| 400 |
lsr x13, x12, #32 |
| 401 |
lsr x15, x14, #32 |
| 402 |
lsr x17, x16, #32 |
| 403 |
|
| 404 |
add x20, x10, x10 |
| 405 |
add x21, x11, x11 |
| 406 |
add x22, x12, x12 |
| 407 |
add x23, x13, x13 |
| 408 |
add x24, x14, x14 |
| 409 |
add x25, x15, x15 |
| 410 |
add x26, x16, x16 |
| 411 |
add x27, x17, x17 |
| 412 |
|
| 413 |
umull x0, w10, w10 |
| 414 |
umull x1, w20, w11 |
| 415 |
umull x2, w20, w12 |
| 416 |
umull x3, w20, w13 |
| 417 |
umull x4, w20, w14 |
| 418 |
umull x5, w20, w15 |
| 419 |
umull x6, w20, w16 |
| 420 |
umull x7, w20, w17 |
| 421 |
umull x8, w20, w18 |
| 422 |
|
| 423 |
umaddl x2, w11, w11, x2 |
| 424 |
umaddl x3, w21, w12, x3 |
| 425 |
umaddl x4, w21, w13, x4 |
| 426 |
umaddl x5, w21, w14, x5 |
| 427 |
umaddl x6, w21, w15, x6 |
| 428 |
umaddl x7, w21, w16, x7 |
| 429 |
umaddl x8, w21, w17, x8 |
| 430 |
umull x9, w21, w18 |
| 431 |
|
| 432 |
umaddl x4, w12, w12, x4 |
| 433 |
umaddl x5, w22, w13, x5 |
| 434 |
umaddl x6, w22, w14, x6 |
| 435 |
umaddl x7, w22, w15, x7 |
| 436 |
umaddl x8, w22, w16, x8 |
| 437 |
umaddl x9, w22, w17, x9 |
| 438 |
umull x10, w22, w18 |
| 439 |
|
| 440 |
umaddl x6, w13, w13, x6 |
| 441 |
umaddl x8, w23, w15, x8 |
| 442 |
umaddl x9, w23, w16, x9 |
| 443 |
umaddl x10, w23, w17, x10 |
| 444 |
umull x11, w23, w18 |
| 445 |
|
| 446 |
umaddl x8, w14, w14, x8 |
| 447 |
umaddl x9, w24, w15, x9 |
| 448 |
umaddl x10, w24, w16, x10 |
| 449 |
umaddl x11, w24, w17, x11 |
| 450 |
umull x12, w24, w18 |
| 451 |
|
| 452 |
umaddl x10, w15, w15, x10 |
| 453 |
umaddl x11, w25, w16, x11 |
| 454 |
umaddl x12, w25, w17, x12 |
| 455 |
umull x13, w25, w18 |
| 456 |
|
| 457 |
add x10, x10, x9, lsr #29 |
| 458 |
and x9, x9, #0x1fffffff |
| 459 |
umull x9, w9, w30 |
| 460 |
add x0, x0, x9 |
| 461 |
|
| 462 |
add x11, x11, x10, lsr #29 |
| 463 |
and x10, x10, #0x1fffffff |
| 464 |
umull x10, w10, w30 |
| 465 |
add x1, x1, x10 |
| 466 |
|
| 467 |
umaddl x12, w16, w16, x12 |
| 468 |
umaddl x13, w26, w17, x13 |
| 469 |
umull x24, w26, w18 |
| 470 |
|
| 471 |
add x12, x12, x11, lsr #29 |
| 472 |
and x11, x11, #0x1fffffff |
| 473 |
umull x11, w11, w30 |
| 474 |
add x2, x2, x11 |
| 475 |
|
| 476 |
add x13, x13, x12, lsr #29 |
| 477 |
and x12, x12, #0x1fffffff |
| 478 |
umull x12, w12, w30 |
| 479 |
add x3, x3, x12 |
| 480 |
|
| 481 |
umaddl x24, w17, w17, x24 |
| 482 |
umull x15, w27, w18 |
| 483 |
|
| 484 |
add x24, x24, x13, lsr #29 |
| 485 |
and x13, x13, #0x1fffffff |
| 486 |
umull x13, w13, w30 |
| 487 |
add x4, x4, x13 |
| 488 |
|
| 489 |
add x15, x15, x24, lsr #29 |
| 490 |
and x24, x24, #0x1fffffff |
| 491 |
umull x24, w24, w30 |
| 492 |
add x5, x5, x24 |
| 493 |
|
| 494 |
umull x16, w18, w18 |
| 495 |
|
| 496 |
add x16, x16, x15, lsr #29 |
| 497 |
and x15, x15, #0x1fffffff |
| 498 |
umull x15, w15, w30 |
| 499 |
add x6, x6, x15 |
| 500 |
|
| 501 |
lsr x9, x16, #29 |
| 502 |
and x16, x16, #0x1fffffff |
| 503 |
umull x16, w16, w30 |
| 504 |
add x7, x7, x16 |
| 505 |
|
| 506 |
umull x9, w9, w30 |
| 507 |
add x8, x8, x9 |
| 508 |
|
| 509 |
add x1, x1, x0, lsr #29 |
| 510 |
and x0, x0, 0x1fffffff |
| 511 |
|
| 512 |
add x2, x2, x1, lsr #29 |
| 513 |
and x1, x1, 0x1fffffff |
| 514 |
|
| 515 |
add x3, x3, x2, lsr #29 |
| 516 |
and x2, x2, 0x1fffffff |
| 517 |
|
| 518 |
add x4, x4, x3, lsr #29 |
| 519 |
and x3, x3, 0x1fffffff |
| 520 |
bfi x2, x3, #32, #29 |
| 521 |
|
| 522 |
add x5, x5, x4, lsr #29 |
| 523 |
and x4, x4, 0x1fffffff |
| 524 |
|
| 525 |
add x6, x6, x5, lsr #29 |
| 526 |
and x5, x5, 0x1fffffff |
| 527 |
bfi x4, x5, #32, #29 |
| 528 |
|
| 529 |
add x7, x7, x6, lsr #29 |
| 530 |
and x6, x6, 0x1fffffff |
| 531 |
|
| 532 |
add x8, x8, x7, lsr #29 |
| 533 |
and x7, x7, 0x1fffffff |
| 534 |
|
| 535 |
umaddl x7, w23, w14, x7 |
| 536 |
add x8, x8, x7, lsr #29 |
| 537 |
and x7, x7, 0x1fffffff |
| 538 |
bfi x6, x7, #32, #29 |
| 539 |
|
| 540 |
bic x10, x8, #0x7fffff |
| 541 |
add x0, x0, x10, lsr #23 |
| 542 |
add x0, x0, x10, lsr #22 |
| 543 |
add x0, x0, x10, lsr #19 |
| 544 |
and x8, x8, #0x7fffff |
| 545 |
|
| 546 |
add x1, x1, x0, lsr #29 |
| 547 |
and x0, x0, 0x1fffffff |
| 548 |
bfi x0, x1, #32, #30 |
| 549 |
|
| 550 |
stp x0, x2, [sp, #312] |
| 551 |
stp x4, x6, [sp, #328] |
| 552 |
str x8, [sp, #344] |
| 553 |
|
| 554 |
// Z2 ← T1 - T2 |
| 555 |
ldp x11, x13, [sp, #216] |
| 556 |
ldp x15, x17, [sp, #232] |
| 557 |
ldr x19, [sp, #248] |
| 558 |
ldp x22, x21, [sp, #0] |
| 559 |
|
| 560 |
add x11, x11, x21 |
| 561 |
sub x10, x11, x0 |
| 562 |
lsr x11, x10, #32 |
| 563 |
add x13, x13, x22 |
| 564 |
sub x12, x13, x2 |
| 565 |
lsr x13, x12, #32 |
| 566 |
add x15, x15, x22 |
| 567 |
sub x14, x15, x4 |
| 568 |
lsr x15, x14, #32 |
| 569 |
add x17, x17, x22 |
| 570 |
sub x16, x17, x6 |
| 571 |
ldr x22, [sp, #160] |
| 572 |
add x19, x19, x22 |
| 573 |
sub x18, x19, x8 |
| 574 |
lsr x17, x16, #32 |
| 575 |
|
| 576 |
// T2 ← a4Z2 + T2 |
| 577 |
movz x20, #0xdb42 |
| 578 |
movk x20, #0x0001, lsl 16 |
| 579 |
mov w0, w0 |
| 580 |
umaddl x0, w10, w20, x0 |
| 581 |
umaddl x21, w11, w20, x1 |
| 582 |
mov w2, w2 |
| 583 |
umaddl x22, w12, w20, x2 |
| 584 |
umaddl x23, w13, w20, x3 |
| 585 |
mov w4, w4 |
| 586 |
umaddl x24, w14, w20, x4 |
| 587 |
umaddl x25, w15, w20, x5 |
| 588 |
mov w6, w6 |
| 589 |
umaddl x26, w16, w20, x6 |
| 590 |
umaddl x27, w17, w20, x7 |
| 591 |
umaddl x28, w18, w20, x8 |
| 592 |
|
| 593 |
add x21, x21, x0, lsr #29 |
| 594 |
and x20, x0, 0x1fffffff |
| 595 |
|
| 596 |
add x22, x22, x21, lsr #29 |
| 597 |
and x21, x21, 0x1fffffff |
| 598 |
|
| 599 |
add x23, x23, x22, lsr #29 |
| 600 |
and x22, x22, 0x1fffffff |
| 601 |
|
| 602 |
add x24, x24, x23, lsr #29 |
| 603 |
and x23, x23, 0x1fffffff |
| 604 |
|
| 605 |
add x25, x25, x24, lsr #29 |
| 606 |
and x24, x24, 0x1fffffff |
| 607 |
|
| 608 |
add x26, x26, x25, lsr #29 |
| 609 |
and x25, x25, 0x1fffffff |
| 610 |
|
| 611 |
add x27, x27, x26, lsr #29 |
| 612 |
and x26, x26, 0x1fffffff |
| 613 |
|
| 614 |
add x28, x28, x27, lsr #29 |
| 615 |
and x27, x27, 0x1fffffff |
| 616 |
|
| 617 |
bic x7, x28, #0x7fffff |
| 618 |
add x20, x20, x7, lsr #23 |
| 619 |
add x20, x20, x7, lsr #22 |
| 620 |
add x20, x20, x7, lsr #19 |
| 621 |
and x28, x28, #0x7fffff |
| 622 |
|
| 623 |
// Z2 ← Z2 · T2 |
| 624 |
umull x0, w10, w20 |
| 625 |
umull x1, w10, w21 |
| 626 |
umull x2, w10, w22 |
| 627 |
umull x3, w10, w23 |
| 628 |
umull x4, w10, w24 |
| 629 |
umull x5, w10, w25 |
| 630 |
umull x6, w10, w26 |
| 631 |
umull x7, w10, w27 |
| 632 |
umull x8, w10, w28 |
| 633 |
|
| 634 |
umaddl x1, w11, w20, x1 |
| 635 |
umaddl x2, w11, w21, x2 |
| 636 |
umaddl x3, w11, w22, x3 |
| 637 |
umaddl x4, w11, w23, x4 |
| 638 |
umaddl x5, w11, w24, x5 |
| 639 |
umaddl x6, w11, w25, x6 |
| 640 |
umaddl x7, w11, w26, x7 |
| 641 |
umaddl x8, w11, w27, x8 |
| 642 |
umull x9, w11, w28 |
| 643 |
|
| 644 |
umaddl x2, w12, w20, x2 |
| 645 |
umaddl x3, w12, w21, x3 |
| 646 |
umaddl x4, w12, w22, x4 |
| 647 |
umaddl x5, w12, w23, x5 |
| 648 |
umaddl x6, w12, w24, x6 |
| 649 |
umaddl x7, w12, w25, x7 |
| 650 |
umaddl x8, w12, w26, x8 |
| 651 |
umaddl x9, w12, w27, x9 |
| 652 |
umull x10, w12, w28 |
| 653 |
|
| 654 |
umaddl x3, w13, w20, x3 |
| 655 |
umaddl x4, w13, w21, x4 |
| 656 |
umaddl x5, w13, w22, x5 |
| 657 |
umaddl x6, w13, w23, x6 |
| 658 |
umaddl x7, w13, w24, x7 |
| 659 |
umaddl x8, w13, w25, x8 |
| 660 |
umaddl x9, w13, w26, x9 |
| 661 |
umaddl x10, w13, w27, x10 |
| 662 |
umull x11, w13, w28 |
| 663 |
|
| 664 |
umaddl x4, w14, w20, x4 |
| 665 |
umaddl x5, w14, w21, x5 |
| 666 |
umaddl x6, w14, w22, x6 |
| 667 |
umaddl x7, w14, w23, x7 |
| 668 |
umaddl x8, w14, w24, x8 |
| 669 |
umaddl x9, w14, w25, x9 |
| 670 |
umaddl x10, w14, w26, x10 |
| 671 |
umaddl x11, w14, w27, x11 |
| 672 |
umull x12, w14, w28 |
| 673 |
|
| 674 |
umaddl x5, w15, w20, x5 |
| 675 |
umaddl x6, w15, w21, x6 |
| 676 |
umaddl x7, w15, w22, x7 |
| 677 |
umaddl x8, w15, w23, x8 |
| 678 |
umaddl x9, w15, w24, x9 |
| 679 |
umaddl x10, w15, w25, x10 |
| 680 |
umaddl x11, w15, w26, x11 |
| 681 |
umaddl x12, w15, w27, x12 |
| 682 |
umull x13, w15, w28 |
| 683 |
|
| 684 |
umaddl x6, w16, w20, x6 |
| 685 |
umaddl x7, w16, w21, x7 |
| 686 |
umaddl x8, w16, w22, x8 |
| 687 |
umaddl x9, w16, w23, x9 |
| 688 |
umaddl x10, w16, w24, x10 |
| 689 |
umaddl x11, w16, w25, x11 |
| 690 |
umaddl x12, w16, w26, x12 |
| 691 |
umaddl x13, w16, w27, x13 |
| 692 |
umull x14, w16, w28 |
| 693 |
|
| 694 |
umaddl x7, w17, w20, x7 |
| 695 |
umaddl x8, w17, w21, x8 |
| 696 |
umaddl x9, w17, w22, x9 |
| 697 |
umaddl x10, w17, w23, x10 |
| 698 |
umaddl x11, w17, w24, x11 |
| 699 |
umaddl x12, w17, w25, x12 |
| 700 |
umaddl x13, w17, w26, x13 |
| 701 |
umaddl x14, w17, w27, x14 |
| 702 |
umull x15, w17, w28 |
| 703 |
|
| 704 |
umaddl x8, w18, w20, x8 |
| 705 |
umaddl x9, w18, w21, x9 |
| 706 |
umaddl x10, w18, w22, x10 |
| 707 |
umaddl x11, w18, w23, x11 |
| 708 |
umaddl x12, w18, w24, x12 |
| 709 |
umaddl x13, w18, w25, x13 |
| 710 |
umaddl x14, w18, w26, x14 |
| 711 |
umaddl x15, w18, w27, x15 |
| 712 |
umull x16, w18, w28 |
| 713 |
|
| 714 |
add x10, x10, x9, lsr #29 |
| 715 |
and x9, x9, #0x1fffffff |
| 716 |
umull x9, w9, w30 |
| 717 |
add x0, x0, x9 |
| 718 |
|
| 719 |
add x11, x11, x10, lsr #29 |
| 720 |
and x10, x10, #0x1fffffff |
| 721 |
umull x10, w10, w30 |
| 722 |
add x1, x1, x10 |
| 723 |
|
| 724 |
add x12, x12, x11, lsr #29 |
| 725 |
and x11, x11, #0x1fffffff |
| 726 |
umull x11, w11, w30 |
| 727 |
add x2, x2, x11 |
| 728 |
|
| 729 |
add x13, x13, x12, lsr #29 |
| 730 |
and x12, x12, #0x1fffffff |
| 731 |
umull x12, w12, w30 |
| 732 |
add x3, x3, x12 |
| 733 |
|
| 734 |
add x14, x14, x13, lsr #29 |
| 735 |
and x13, x13, #0x1fffffff |
| 736 |
umull x13, w13, w30 |
| 737 |
add x4, x4, x13 |
| 738 |
|
| 739 |
add x15, x15, x14, lsr #29 |
| 740 |
and x14, x14, #0x1fffffff |
| 741 |
umull x14, w14, w30 |
| 742 |
add x5, x5, x14 |
| 743 |
|
| 744 |
add x16, x16, x15, lsr #29 |
| 745 |
and x15, x15, #0x1fffffff |
| 746 |
umull x15, w15, w30 |
| 747 |
add x6, x6, x15 |
| 748 |
|
| 749 |
lsr x9, x16, #29 |
| 750 |
and x16, x16, #0x1fffffff |
| 751 |
umull x16, w16, w30 |
| 752 |
add x7, x7, x16 |
| 753 |
|
| 754 |
umull x9, w9, w30 |
| 755 |
add x8, x8, x9 |
| 756 |
|
| 757 |
add x1, x1, x0, lsr #29 |
| 758 |
and x0, x0, 0x1fffffff |
| 759 |
|
| 760 |
add x2, x2, x1, lsr #29 |
| 761 |
and x1, x1, 0x1fffffff |
| 762 |
|
| 763 |
add x3, x3, x2, lsr #29 |
| 764 |
and x22, x2, 0x1fffffff |
| 765 |
|
| 766 |
add x4, x4, x3, lsr #29 |
| 767 |
bfi x22, x3, #32, #29 |
| 768 |
|
| 769 |
add x5, x5, x4, lsr #29 |
| 770 |
and x24, x4, 0x1fffffff |
| 771 |
|
| 772 |
add x6, x6, x5, lsr #29 |
| 773 |
bfi x24, x5, #32, #29 |
| 774 |
|
| 775 |
add x7, x7, x6, lsr #29 |
| 776 |
and x26, x6, 0x1fffffff |
| 777 |
|
| 778 |
add x8, x8, x7, lsr #29 |
| 779 |
bfi x26, x7, #32, #29 |
| 780 |
|
| 781 |
bic x10, x8, #0x7fffff |
| 782 |
add x0, x0, x10, lsr #23 |
| 783 |
add x0, x0, x10, lsr #22 |
| 784 |
add x0, x0, x10, lsr #19 |
| 785 |
and x28, x8, #0x7fffff |
| 786 |
|
| 787 |
add x1, x1, x0, lsr #29 |
| 788 |
and x20, x0, 0x1fffffff |
| 789 |
bfi x20, x1, #32, #30 |
| 790 |
|
| 791 |
ldr x2, [sp, #96] |
| 792 |
lsr x3, x2, #32 |
| 793 |
add x4, sp, #104 |
| 794 |
subs w0, w2, #1 |
| 795 |
asr w1, w0, #5 |
| 796 |
ldr w1, [x4, w1, SXTW #2] |
| 797 |
and w4, w0, #0x1f |
| 798 |
lsr w1, w1, w4 |
| 799 |
stp w0, w1, [sp, #96] |
| 800 |
|
| 801 |
// <T5,T6> ← Mul(<T1,T2>,<T4,T3>) |
| 802 |
//dup v29.2d, x29 |
| 803 |
//dup v30.2s, w30 |
| 804 |
mov v29.d[0], x29 |
| 805 |
mov v29.d[1], x29 |
| 806 |
//mov v30.s[0], w30 |
| 807 |
//mov v30.s[1], w30 |
| 808 |
add x7, sp, #576 |
| 809 |
ldr x8, [x7, #0] |
| 810 |
mov v30.d[0], x8 |
| 811 |
|
| 812 |
umull v0.2d, v10.2s, v20.2s |
| 813 |
umull v1.2d, v10.2s, v21.2s |
| 814 |
umull v2.2d, v10.2s, v22.2s |
| 815 |
umull v3.2d, v10.2s, v23.2s |
| 816 |
umull v4.2d, v10.2s, v24.2s |
| 817 |
umull v5.2d, v10.2s, v25.2s |
| 818 |
umull v6.2d, v10.2s, v26.2s |
| 819 |
umull v7.2d, v10.2s, v27.2s |
| 820 |
umull v8.2d, v10.2s, v28.2s |
| 821 |
|
| 822 |
umlal v1.2d, v11.2s, v20.2s |
| 823 |
umlal v2.2d, v11.2s, v21.2s |
| 824 |
umlal v3.2d, v11.2s, v22.2s |
| 825 |
umlal v4.2d, v11.2s, v23.2s |
| 826 |
umlal v5.2d, v11.2s, v24.2s |
| 827 |
umlal v6.2d, v11.2s, v25.2s |
| 828 |
umlal v7.2d, v11.2s, v26.2s |
| 829 |
umlal v8.2d, v11.2s, v27.2s |
| 830 |
umull v9.2d, v11.2s, v28.2s |
| 831 |
|
| 832 |
umlal v2.2d, v12.2s, v20.2s |
| 833 |
umlal v3.2d, v12.2s, v21.2s |
| 834 |
umlal v4.2d, v12.2s, v22.2s |
| 835 |
umlal v5.2d, v12.2s, v23.2s |
| 836 |
umlal v6.2d, v12.2s, v24.2s |
| 837 |
umlal v7.2d, v12.2s, v25.2s |
| 838 |
umlal v8.2d, v12.2s, v26.2s |
| 839 |
umlal v9.2d, v12.2s, v27.2s |
| 840 |
umull v10.2d, v12.2s, v28.2s |
| 841 |
|
| 842 |
umlal v3.2d, v13.2s, v20.2s |
| 843 |
umlal v4.2d, v13.2s, v21.2s |
| 844 |
umlal v5.2d, v13.2s, v22.2s |
| 845 |
umlal v6.2d, v13.2s, v23.2s |
| 846 |
umlal v7.2d, v13.2s, v24.2s |
| 847 |
umlal v8.2d, v13.2s, v25.2s |
| 848 |
umlal v9.2d, v13.2s, v26.2s |
| 849 |
umlal v10.2d, v13.2s, v27.2s |
| 850 |
umull v11.2d, v13.2s, v28.2s |
| 851 |
|
| 852 |
umlal v4.2d, v14.2s, v20.2s |
| 853 |
umlal v5.2d, v14.2s, v21.2s |
| 854 |
umlal v6.2d, v14.2s, v22.2s |
| 855 |
umlal v7.2d, v14.2s, v23.2s |
| 856 |
umlal v8.2d, v14.2s, v24.2s |
| 857 |
umlal v9.2d, v14.2s, v25.2s |
| 858 |
umlal v10.2d, v14.2s, v26.2s |
| 859 |
umlal v11.2d, v14.2s, v27.2s |
| 860 |
umull v12.2d, v14.2s, v28.2s |
| 861 |
|
| 862 |
umlal v5.2d, v15.2s, v20.2s |
| 863 |
umlal v6.2d, v15.2s, v21.2s |
| 864 |
umlal v7.2d, v15.2s, v22.2s |
| 865 |
umlal v8.2d, v15.2s, v23.2s |
| 866 |
umlal v9.2d, v15.2s, v24.2s |
| 867 |
umlal v10.2d, v15.2s, v25.2s |
| 868 |
umlal v11.2d, v15.2s, v26.2s |
| 869 |
umlal v12.2d, v15.2s, v27.2s |
| 870 |
umull v13.2d, v15.2s, v28.2s |
| 871 |
|
| 872 |
umlal v6.2d, v16.2s, v20.2s |
| 873 |
umlal v7.2d, v16.2s, v21.2s |
| 874 |
umlal v8.2d, v16.2s, v22.2s |
| 875 |
umlal v9.2d, v16.2s, v23.2s |
| 876 |
umlal v10.2d, v16.2s, v24.2s |
| 877 |
umlal v11.2d, v16.2s, v25.2s |
| 878 |
umlal v12.2d, v16.2s, v26.2s |
| 879 |
umlal v13.2d, v16.2s, v27.2s |
| 880 |
umull v14.2d, v16.2s, v28.2s |
| 881 |
|
| 882 |
umlal v7.2d, v17.2s, v20.2s |
| 883 |
umlal v8.2d, v17.2s, v21.2s |
| 884 |
umlal v9.2d, v17.2s, v22.2s |
| 885 |
umlal v10.2d, v17.2s, v23.2s |
| 886 |
umlal v11.2d, v17.2s, v24.2s |
| 887 |
umlal v12.2d, v17.2s, v25.2s |
| 888 |
umlal v13.2d, v17.2s, v26.2s |
| 889 |
umlal v14.2d, v17.2s, v27.2s |
| 890 |
umull v15.2d, v17.2s, v28.2s |
| 891 |
|
| 892 |
umlal v8.2d, v18.2s, v20.2s |
| 893 |
umlal v9.2d, v18.2s, v21.2s |
| 894 |
umlal v10.2d, v18.2s, v22.2s |
| 895 |
umlal v11.2d, v18.2s, v23.2s |
| 896 |
umlal v12.2d, v18.2s, v24.2s |
| 897 |
umlal v13.2d, v18.2s, v25.2s |
| 898 |
umlal v14.2d, v18.2s, v26.2s |
| 899 |
umlal v15.2d, v18.2s, v27.2s |
| 900 |
umull v16.2d, v18.2s, v28.2s |
| 901 |
|
| 902 |
usra v10.2d, v9.2d, #29 |
| 903 |
and v9.16b, v9.16b, v29.16b |
| 904 |
xtn v9.2s, v9.2d |
| 905 |
umull v9.2d, v9.2s, v30.2s |
| 906 |
add v0.2d, v0.2d, v9.2d |
| 907 |
|
| 908 |
usra v11.2d, v10.2d, #29 |
| 909 |
and v10.16b, v10.16b, v29.16b |
| 910 |
xtn v10.2s, v10.2d |
| 911 |
umull v10.2d, v10.2s, v30.2s |
| 912 |
add v1.2d, v1.2d, v10.2d |
| 913 |
|
| 914 |
usra v12.2d, v11.2d, #29 |
| 915 |
and v11.16b, v11.16b, v29.16b |
| 916 |
xtn v11.2s, v11.2d |
| 917 |
umull v11.2d, v11.2s, v30.2s |
| 918 |
add v2.2d, v2.2d, v11.2d |
| 919 |
|
| 920 |
usra v13.2d, v12.2d, #29 |
| 921 |
and v12.16b, v12.16b, v29.16b |
| 922 |
xtn v12.2s, v12.2d |
| 923 |
umull v12.2d, v12.2s, v30.2s |
| 924 |
add v3.2d, v3.2d, v12.2d |
| 925 |
|
| 926 |
usra v14.2d, v13.2d, #29 |
| 927 |
and v13.16b, v13.16b, v29.16b |
| 928 |
xtn v13.2s, v13.2d |
| 929 |
umull v13.2d, v13.2s, v30.2s |
| 930 |
add v4.2d, v4.2d, v13.2d |
| 931 |
|
| 932 |
usra v15.2d, v14.2d, #29 |
| 933 |
and v14.16b, v14.16b, v29.16b |
| 934 |
xtn v14.2s, v14.2d |
| 935 |
umull v14.2d, v14.2s, v30.2s |
| 936 |
add v5.2d, v5.2d, v14.2d |
| 937 |
|
| 938 |
usra v16.2d, v15.2d, #29 |
| 939 |
and v15.16b, v15.16b, v29.16b |
| 940 |
xtn v15.2s, v15.2d |
| 941 |
umull v15.2d, v15.2s, v30.2s |
| 942 |
add v6.2d, v6.2d, v15.2d |
| 943 |
|
| 944 |
ushr v9.2d, v16.2d, #29 |
| 945 |
and v16.16b, v16.16b, v29.16b |
| 946 |
xtn v16.2s, v16.2d |
| 947 |
umull v16.2d, v16.2s, v30.2s |
| 948 |
add v7.2d, v7.2d, v16.2d |
| 949 |
|
| 950 |
xtn v9.2s, v9.2d |
| 951 |
umull v9.2d, v9.2s, v30.2s |
| 952 |
add v8.2d, v8.2d, v9.2d |
| 953 |
|
| 954 |
lsr x19, x29, #6 |
| 955 |
//dup v30.2d, x19 |
| 956 |
mov v30.d[0], x19 |
| 957 |
mov v30.d[1], x19 |
| 958 |
|
| 959 |
usra v1.2d, v0.2d, #29 |
| 960 |
and v0.16b, v0.16b, v29.16b |
| 961 |
|
| 962 |
usra v2.2d, v1.2d, #29 |
| 963 |
and v1.16b, v1.16b, v29.16b |
| 964 |
|
| 965 |
usra v3.2d, v2.2d, #29 |
| 966 |
and v2.16b, v2.16b, v29.16b |
| 967 |
|
| 968 |
usra v4.2d, v3.2d, #29 |
| 969 |
and v3.16b, v3.16b, v29.16b |
| 970 |
|
| 971 |
usra v5.2d, v4.2d, #29 |
| 972 |
and v4.16b, v4.16b, v29.16b |
| 973 |
|
| 974 |
usra v6.2d, v5.2d, #29 |
| 975 |
and v5.16b, v5.16b, v29.16b |
| 976 |
|
| 977 |
usra v7.2d, v6.2d, #29 |
| 978 |
and v6.16b, v6.16b, v29.16b |
| 979 |
|
| 980 |
usra v8.2d, v7.2d, #29 |
| 981 |
and v7.16b, v7.16b, v29.16b |
| 982 |
|
| 983 |
bic v10.16b, v8.16b, v30.16b |
| 984 |
usra v0.2d, v10.2d, #23 |
| 985 |
usra v0.2d, v10.2d, #22 |
| 986 |
usra v0.2d, v10.2d, #19 |
| 987 |
and v8.16b, v8.16b, v30.16b |
| 988 |
|
| 989 |
usra v1.2d, v0.2d, #29 |
| 990 |
and v0.16b, v0.16b, v29.16b |
| 991 |
|
| 992 |
// X3 ← T5 + T6, Z3 ← T5 - T6 |
| 993 |
uzp1 v0.4s, v0.4s, v1.4s |
| 994 |
uzp1 v1.4s, v2.4s, v3.4s |
| 995 |
uzp1 v2.4s, v0.4s, v1.4s |
| 996 |
uzp2 v3.4s, v0.4s, v1.4s |
| 997 |
|
| 998 |
uzp1 v4.4s, v4.4s, v5.4s |
| 999 |
uzp1 v5.4s, v6.4s, v7.4s |
| 1000 |
uzp1 v6.4s, v4.4s, v5.4s |
| 1001 |
uzp2 v7.4s, v4.4s, v5.4s |
| 1002 |
|
| 1003 |
trn1 v8.4s, v8.4s, v9.4s |
| 1004 |
mov v9.d[0], v8.d[1] |
| 1005 |
|
| 1006 |
// X3 ← T5 + T6 |
| 1007 |
add v1.4s, v2.4s, v3.4s |
| 1008 |
add v4.4s, v6.4s, v7.4s |
| 1009 |
add v5.4s, v8.4s, v9.4s |
| 1010 |
|
| 1011 |
// Z3 ← T5 - T6 |
| 1012 |
ld1r {v10.2d}, [sp] |
| 1013 |
add v6.4s, v6.4s, v10.4s |
| 1014 |
ldr b11, [sp, #152] |
| 1015 |
mov v10.b[0], v11.b[0] |
| 1016 |
add v2.4s, v2.4s, v10.4s |
| 1017 |
ldr d10, [sp, #160] |
| 1018 |
add v8.4s, v8.4s, v10.4s |
| 1019 |
|
| 1020 |
sub v2.4s, v2.4s, v3.4s |
| 1021 |
sub v6.4s, v6.4s, v7.4s |
| 1022 |
sub v8.4s, v8.4s, v9.4s |
| 1023 |
|
| 1024 |
// <Z3,X3> ← <T5 - T6,T5 + T6> |
| 1025 |
zip1 v10.4s, v2.4s, v1.4s |
| 1026 |
zip2 v12.4s, v2.4s, v1.4s |
| 1027 |
zip1 v14.4s, v6.4s, v4.4s |
| 1028 |
zip2 v16.4s, v6.4s, v4.4s |
| 1029 |
zip1 v18.4s, v8.4s, v5.4s |
| 1030 |
|
| 1031 |
mov v11.d[0], v10.d[1] |
| 1032 |
mov v13.d[0], v12.d[1] |
| 1033 |
mov v15.d[0], v14.d[1] |
| 1034 |
mov v17.d[0], v16.d[1] |
| 1035 |
//mov v19.d[0], v18.d[1] |
| 1036 |
|
| 1037 |
// <Z3,X3> ← Sqr(<Z3,X3>) |
| 1038 |
//dup v29.2d, x29 |
| 1039 |
//dup v30.2s, w30 |
| 1040 |
mov v29.d[0], x29 |
| 1041 |
mov v29.d[1], x29 |
| 1042 |
//mov v30.s[0], w30 |
| 1043 |
//mov v30.s[1], w30 |
| 1044 |
add x7, sp, #576 |
| 1045 |
ldr x8, [x7, #0] |
| 1046 |
mov v30.d[0], x8 |
| 1047 |
|
| 1048 |
add v20.2d, v10.2d, v10.2d |
| 1049 |
add v21.2d, v11.2d, v11.2d |
| 1050 |
add v22.2d, v12.2d, v12.2d |
| 1051 |
add v23.2d, v13.2d, v13.2d |
| 1052 |
add v24.2d, v14.2d, v14.2d |
| 1053 |
add v25.2d, v15.2d, v15.2d |
| 1054 |
add v26.2d, v16.2d, v16.2d |
| 1055 |
add v27.2d, v17.2d, v17.2d |
| 1056 |
|
| 1057 |
umull v0.2d, v10.2s, v10.2s |
| 1058 |
umull v1.2d, v20.2s, v11.2s |
| 1059 |
umull v2.2d, v20.2s, v12.2s |
| 1060 |
umull v3.2d, v20.2s, v13.2s |
| 1061 |
umull v4.2d, v20.2s, v14.2s |
| 1062 |
umull v5.2d, v20.2s, v15.2s |
| 1063 |
umull v6.2d, v20.2s, v16.2s |
| 1064 |
umull v7.2d, v20.2s, v17.2s |
| 1065 |
umull v8.2d, v20.2s, v18.2s |
| 1066 |
|
| 1067 |
umlal v2.2d, v11.2s, v11.2s |
| 1068 |
umlal v3.2d, v21.2s, v12.2s |
| 1069 |
umlal v4.2d, v21.2s, v13.2s |
| 1070 |
umlal v5.2d, v21.2s, v14.2s |
| 1071 |
umlal v6.2d, v21.2s, v15.2s |
| 1072 |
umlal v7.2d, v21.2s, v16.2s |
| 1073 |
umlal v8.2d, v21.2s, v17.2s |
| 1074 |
umull v9.2d, v21.2s, v18.2s |
| 1075 |
|
| 1076 |
umlal v4.2d, v12.2s, v12.2s |
| 1077 |
umlal v5.2d, v22.2s, v13.2s |
| 1078 |
umlal v6.2d, v22.2s, v14.2s |
| 1079 |
umlal v7.2d, v22.2s, v15.2s |
| 1080 |
umlal v8.2d, v22.2s, v16.2s |
| 1081 |
umlal v9.2d, v22.2s, v17.2s |
| 1082 |
umull v10.2d, v22.2s, v18.2s |
| 1083 |
|
| 1084 |
umlal v6.2d, v13.2s, v13.2s |
| 1085 |
umlal v8.2d, v23.2s, v15.2s |
| 1086 |
umlal v9.2d, v23.2s, v16.2s |
| 1087 |
umlal v10.2d, v23.2s, v17.2s |
| 1088 |
umull v11.2d, v23.2s, v18.2s |
| 1089 |
|
| 1090 |
umlal v8.2d, v14.2s, v14.2s |
| 1091 |
umlal v9.2d, v24.2s, v15.2s |
| 1092 |
umlal v10.2d, v24.2s, v16.2s |
| 1093 |
umlal v11.2d, v24.2s, v17.2s |
| 1094 |
umull v12.2d, v24.2s, v18.2s |
| 1095 |
|
| 1096 |
umlal v10.2d, v15.2s, v15.2s |
| 1097 |
umlal v11.2d, v25.2s, v16.2s |
| 1098 |
umlal v12.2d, v25.2s, v17.2s |
| 1099 |
umull v13.2d, v25.2s, v18.2s |
| 1100 |
|
| 1101 |
usra v10.2d, v9.2d, #29 |
| 1102 |
and v9.16b, v9.16b, v29.16b |
| 1103 |
xtn v9.2s, v9.2d |
| 1104 |
umull v9.2d, v9.2s, v30.2s |
| 1105 |
add v0.2d, v0.2d, v9.2d |
| 1106 |
|
| 1107 |
usra v11.2d, v10.2d, #29 |
| 1108 |
and v10.16b, v10.16b, v29.16b |
| 1109 |
xtn v10.2s, v10.2d |
| 1110 |
umull v10.2d, v10.2s, v30.2s |
| 1111 |
add v1.2d, v1.2d, v10.2d |
| 1112 |
|
| 1113 |
umlal v12.2d, v16.2s, v16.2s |
| 1114 |
umlal v13.2d, v26.2s, v17.2s |
| 1115 |
umull v24.2d, v26.2s, v18.2s |
| 1116 |
|
| 1117 |
usra v12.2d, v11.2d, #29 |
| 1118 |
and v11.16b, v11.16b, v29.16b |
| 1119 |
xtn v11.2s, v11.2d |
| 1120 |
umull v11.2d, v11.2s, v30.2s |
| 1121 |
add v2.2d, v2.2d, v11.2d |
| 1122 |
|
| 1123 |
usra v13.2d, v12.2d, #29 |
| 1124 |
and v12.16b, v12.16b, v29.16b |
| 1125 |
xtn v12.2s, v12.2d |
| 1126 |
umull v12.2d, v12.2s, v30.2s |
| 1127 |
add v3.2d, v3.2d, v12.2d |
| 1128 |
|
| 1129 |
umlal v24.2d, v17.2s, v17.2s |
| 1130 |
umull v15.2d, v27.2s, v18.2s |
| 1131 |
|
| 1132 |
usra v24.2d, v13.2d, #29 |
| 1133 |
and v13.16b, v13.16b, v29.16b |
| 1134 |
xtn v13.2s, v13.2d |
| 1135 |
umull v13.2d, v13.2s, v30.2s |
| 1136 |
add v4.2d, v4.2d, v13.2d |
| 1137 |
|
| 1138 |
usra v15.2d, v24.2d, #29 |
| 1139 |
and v24.16b, v24.16b, v29.16b |
| 1140 |
xtn v24.2s, v24.2d |
| 1141 |
umull v24.2d, v24.2s, v30.2s |
| 1142 |
add v5.2d, v5.2d, v24.2d |
| 1143 |
|
| 1144 |
umull v16.2d, v18.2s, v18.2s |
| 1145 |
|
| 1146 |
usra v16.2d, v15.2d, #29 |
| 1147 |
and v15.16b, v15.16b, v29.16b |
| 1148 |
xtn v15.2s, v15.2d |
| 1149 |
umull v15.2d, v15.2s, v30.2s |
| 1150 |
add v6.2d, v6.2d, v15.2d |
| 1151 |
|
| 1152 |
ushr v9.2d, v16.2d, #29 |
| 1153 |
and v16.16b, v16.16b, v29.16b |
| 1154 |
xtn v16.2s, v16.2d |
| 1155 |
umull v16.2d, v16.2s, v30.2s |
| 1156 |
add v7.2d, v7.2d, v16.2d |
| 1157 |
|
| 1158 |
xtn v9.2s, v9.2d |
| 1159 |
umull v9.2d, v9.2s, v30.2s |
| 1160 |
add v8.2d, v8.2d, v9.2d |
| 1161 |
|
| 1162 |
lsr x19, x29, #6 |
| 1163 |
//dup v30.2d, x19 |
| 1164 |
mov v30.d[0], x19 |
| 1165 |
mov v30.d[1], x19 |
| 1166 |
|
| 1167 |
usra v1.2d, v0.2d, #29 |
| 1168 |
and v0.16b, v0.16b, v29.16b |
| 1169 |
|
| 1170 |
usra v2.2d, v1.2d, #29 |
| 1171 |
and v21.16b, v1.16b, v29.16b |
| 1172 |
|
| 1173 |
usra v3.2d, v2.2d, #29 |
| 1174 |
and v22.16b, v2.16b, v29.16b |
| 1175 |
|
| 1176 |
usra v4.2d, v3.2d, #29 |
| 1177 |
|
| 1178 |
usra v5.2d, v4.2d, #29 |
| 1179 |
and v24.16b, v4.16b, v29.16b |
| 1180 |
|
| 1181 |
usra v6.2d, v5.2d, #29 |
| 1182 |
and v25.16b, v5.16b, v29.16b |
| 1183 |
|
| 1184 |
usra v7.2d, v6.2d, #29 |
| 1185 |
and v26.16b, v6.16b, v29.16b |
| 1186 |
|
| 1187 |
usra v8.2d, v7.2d, #29 |
| 1188 |
and v7.16b, v7.16b, v29.16b |
| 1189 |
|
| 1190 |
umlal v7.2d, v23.2s, v14.2s |
| 1191 |
usra v8.2d, v7.2d, #29 |
| 1192 |
and v27.16b, v7.16b, v29.16b |
| 1193 |
|
| 1194 |
and v23.16b, v3.16b, v29.16b |
| 1195 |
|
| 1196 |
bic v10.16b, v8.16b, v30.16b |
| 1197 |
usra v0.2d, v10.2d, #23 |
| 1198 |
usra v0.2d, v10.2d, #22 |
| 1199 |
usra v0.2d, v10.2d, #19 |
| 1200 |
and v28.16b, v8.16b, v30.16b |
| 1201 |
|
| 1202 |
usra v21.2d, v0.2d, #29 |
| 1203 |
and v20.16b, v0.16b, v29.16b |
| 1204 |
|
| 1205 |
zip2 v0.4s, v20.4s, v21.4s |
| 1206 |
zip2 v1.4s, v22.4s, v23.4s |
| 1207 |
zip2 v2.4s, v24.4s, v25.4s |
| 1208 |
zip2 v3.4s, v26.4s, v27.4s |
| 1209 |
zip2 v4.4s, v28.4s, v29.4s |
| 1210 |
|
| 1211 |
stp d0, d1, [sp, #264] |
| 1212 |
stp d2, d3, [sp, #280] |
| 1213 |
str d4, [sp, #296] |
| 1214 |
|
| 1215 |
// inputs <Z3,T1> and <X1,T2> |
| 1216 |
add x10, sp, #216 |
| 1217 |
add x11, sp, #360 |
| 1218 |
add x12, sp, #312 |
| 1219 |
|
| 1220 |
ld2 {v20.s, v21.s}[1], [x10], #8 |
| 1221 |
ld2 {v10.s, v11.s}[0], [x11], #8 |
| 1222 |
ld2 {v10.s, v11.s}[1], [x12], #8 |
| 1223 |
|
| 1224 |
ld2 {v22.s, v23.s}[1], [x10], #8 |
| 1225 |
ld2 {v12.s, v13.s}[0], [x11], #8 |
| 1226 |
ld2 {v12.s, v13.s}[1], [x12], #8 |
| 1227 |
|
| 1228 |
ld2 {v24.s, v25.s}[1], [x10], #8 |
| 1229 |
ld2 {v14.s, v15.s}[0], [x11], #8 |
| 1230 |
ld2 {v14.s, v15.s}[1], [x12], #8 |
| 1231 |
|
| 1232 |
ld2 {v26.s, v27.s}[1], [x10], #8 |
| 1233 |
ld2 {v16.s, v17.s}[0], [x11], #8 |
| 1234 |
ld2 {v16.s, v17.s}[1], [x12], #8 |
| 1235 |
|
| 1236 |
ld2 {v28.s, v29.s}[1], [x10], #8 |
| 1237 |
ld2 {v18.s, v19.s}[0], [x11], #8 |
| 1238 |
ld2 {v18.s, v19.s}[1], [x12], #8 |
| 1239 |
|
| 1240 |
// <Z3,X2> ← Mul(<Z3,T1>,<X1,T2>) |
| 1241 |
//dup v29.2d, x29 |
| 1242 |
//dup v30.2s, w30 |
| 1243 |
mov v29.d[0], x29 |
| 1244 |
mov v29.d[1], x29 |
| 1245 |
//mov v30.s[0], w30 |
| 1246 |
//mov v30.s[1], w30 |
| 1247 |
add x7, sp, #576 |
| 1248 |
ldr x8, [x7, #0] |
| 1249 |
mov v30.d[0], x8 |
| 1250 |
|
| 1251 |
umull v0.2d, v10.2s, v20.2s |
| 1252 |
umull v1.2d, v10.2s, v21.2s |
| 1253 |
umull v2.2d, v10.2s, v22.2s |
| 1254 |
umull v3.2d, v10.2s, v23.2s |
| 1255 |
umull v4.2d, v10.2s, v24.2s |
| 1256 |
umull v5.2d, v10.2s, v25.2s |
| 1257 |
umull v6.2d, v10.2s, v26.2s |
| 1258 |
umull v7.2d, v10.2s, v27.2s |
| 1259 |
umull v8.2d, v10.2s, v28.2s |
| 1260 |
|
| 1261 |
umlal v1.2d, v11.2s, v20.2s |
| 1262 |
umlal v2.2d, v11.2s, v21.2s |
| 1263 |
umlal v3.2d, v11.2s, v22.2s |
| 1264 |
umlal v4.2d, v11.2s, v23.2s |
| 1265 |
umlal v5.2d, v11.2s, v24.2s |
| 1266 |
umlal v6.2d, v11.2s, v25.2s |
| 1267 |
umlal v7.2d, v11.2s, v26.2s |
| 1268 |
umlal v8.2d, v11.2s, v27.2s |
| 1269 |
umull v9.2d, v11.2s, v28.2s |
| 1270 |
|
| 1271 |
umlal v2.2d, v12.2s, v20.2s |
| 1272 |
umlal v3.2d, v12.2s, v21.2s |
| 1273 |
umlal v4.2d, v12.2s, v22.2s |
| 1274 |
umlal v5.2d, v12.2s, v23.2s |
| 1275 |
umlal v6.2d, v12.2s, v24.2s |
| 1276 |
umlal v7.2d, v12.2s, v25.2s |
| 1277 |
umlal v8.2d, v12.2s, v26.2s |
| 1278 |
umlal v9.2d, v12.2s, v27.2s |
| 1279 |
umull v10.2d, v12.2s, v28.2s |
| 1280 |
|
| 1281 |
umlal v3.2d, v13.2s, v20.2s |
| 1282 |
umlal v4.2d, v13.2s, v21.2s |
| 1283 |
umlal v5.2d, v13.2s, v22.2s |
| 1284 |
umlal v6.2d, v13.2s, v23.2s |
| 1285 |
umlal v7.2d, v13.2s, v24.2s |
| 1286 |
umlal v8.2d, v13.2s, v25.2s |
| 1287 |
umlal v9.2d, v13.2s, v26.2s |
| 1288 |
umlal v10.2d, v13.2s, v27.2s |
| 1289 |
umull v11.2d, v13.2s, v28.2s |
| 1290 |
|
| 1291 |
umlal v4.2d, v14.2s, v20.2s |
| 1292 |
umlal v5.2d, v14.2s, v21.2s |
| 1293 |
umlal v6.2d, v14.2s, v22.2s |
| 1294 |
umlal v7.2d, v14.2s, v23.2s |
| 1295 |
umlal v8.2d, v14.2s, v24.2s |
| 1296 |
umlal v9.2d, v14.2s, v25.2s |
| 1297 |
umlal v10.2d, v14.2s, v26.2s |
| 1298 |
umlal v11.2d, v14.2s, v27.2s |
| 1299 |
umull v12.2d, v14.2s, v28.2s |
| 1300 |
|
| 1301 |
umlal v5.2d, v15.2s, v20.2s |
| 1302 |
umlal v6.2d, v15.2s, v21.2s |
| 1303 |
umlal v7.2d, v15.2s, v22.2s |
| 1304 |
umlal v8.2d, v15.2s, v23.2s |
| 1305 |
umlal v9.2d, v15.2s, v24.2s |
| 1306 |
umlal v10.2d, v15.2s, v25.2s |
| 1307 |
umlal v11.2d, v15.2s, v26.2s |
| 1308 |
umlal v12.2d, v15.2s, v27.2s |
| 1309 |
umull v13.2d, v15.2s, v28.2s |
| 1310 |
|
| 1311 |
umlal v6.2d, v16.2s, v20.2s |
| 1312 |
umlal v7.2d, v16.2s, v21.2s |
| 1313 |
umlal v8.2d, v16.2s, v22.2s |
| 1314 |
umlal v9.2d, v16.2s, v23.2s |
| 1315 |
umlal v10.2d, v16.2s, v24.2s |
| 1316 |
umlal v11.2d, v16.2s, v25.2s |
| 1317 |
umlal v12.2d, v16.2s, v26.2s |
| 1318 |
umlal v13.2d, v16.2s, v27.2s |
| 1319 |
umull v14.2d, v16.2s, v28.2s |
| 1320 |
|
| 1321 |
umlal v7.2d, v17.2s, v20.2s |
| 1322 |
umlal v8.2d, v17.2s, v21.2s |
| 1323 |
umlal v9.2d, v17.2s, v22.2s |
| 1324 |
umlal v10.2d, v17.2s, v23.2s |
| 1325 |
umlal v11.2d, v17.2s, v24.2s |
| 1326 |
umlal v12.2d, v17.2s, v25.2s |
| 1327 |
umlal v13.2d, v17.2s, v26.2s |
| 1328 |
umlal v14.2d, v17.2s, v27.2s |
| 1329 |
umull v15.2d, v17.2s, v28.2s |
| 1330 |
|
| 1331 |
umlal v8.2d, v18.2s, v20.2s |
| 1332 |
umlal v9.2d, v18.2s, v21.2s |
| 1333 |
umlal v10.2d, v18.2s, v22.2s |
| 1334 |
umlal v11.2d, v18.2s, v23.2s |
| 1335 |
umlal v12.2d, v18.2s, v24.2s |
| 1336 |
umlal v13.2d, v18.2s, v25.2s |
| 1337 |
umlal v14.2d, v18.2s, v26.2s |
| 1338 |
umlal v15.2d, v18.2s, v27.2s |
| 1339 |
umull v16.2d, v18.2s, v28.2s |
| 1340 |
|
| 1341 |
usra v10.2d, v9.2d, #29 |
| 1342 |
and v9.16b, v9.16b, v29.16b |
| 1343 |
xtn v9.2s, v9.2d |
| 1344 |
umull v9.2d, v9.2s, v30.2s |
| 1345 |
add v0.2d, v0.2d, v9.2d |
| 1346 |
|
| 1347 |
usra v11.2d, v10.2d, #29 |
| 1348 |
and v10.16b, v10.16b, v29.16b |
| 1349 |
xtn v10.2s, v10.2d |
| 1350 |
umull v10.2d, v10.2s, v30.2s |
| 1351 |
add v1.2d, v1.2d, v10.2d |
| 1352 |
|
| 1353 |
usra v12.2d, v11.2d, #29 |
| 1354 |
and v11.16b, v11.16b, v29.16b |
| 1355 |
xtn v11.2s, v11.2d |
| 1356 |
umull v11.2d, v11.2s, v30.2s |
| 1357 |
add v2.2d, v2.2d, v11.2d |
| 1358 |
|
| 1359 |
usra v13.2d, v12.2d, #29 |
| 1360 |
and v12.16b, v12.16b, v29.16b |
| 1361 |
xtn v12.2s, v12.2d |
| 1362 |
umull v12.2d, v12.2s, v30.2s |
| 1363 |
add v3.2d, v3.2d, v12.2d |
| 1364 |
|
| 1365 |
usra v14.2d, v13.2d, #29 |
| 1366 |
and v13.16b, v13.16b, v29.16b |
| 1367 |
xtn v13.2s, v13.2d |
| 1368 |
umull v13.2d, v13.2s, v30.2s |
| 1369 |
add v4.2d, v4.2d, v13.2d |
| 1370 |
|
| 1371 |
usra v15.2d, v14.2d, #29 |
| 1372 |
and v14.16b, v14.16b, v29.16b |
| 1373 |
xtn v14.2s, v14.2d |
| 1374 |
umull v14.2d, v14.2s, v30.2s |
| 1375 |
add v5.2d, v5.2d, v14.2d |
| 1376 |
|
| 1377 |
usra v16.2d, v15.2d, #29 |
| 1378 |
and v15.16b, v15.16b, v29.16b |
| 1379 |
xtn v15.2s, v15.2d |
| 1380 |
umull v15.2d, v15.2s, v30.2s |
| 1381 |
add v6.2d, v6.2d, v15.2d |
| 1382 |
|
| 1383 |
ushr v9.2d, v16.2d, #29 |
| 1384 |
and v16.16b, v16.16b, v29.16b |
| 1385 |
xtn v16.2s, v16.2d |
| 1386 |
umull v16.2d, v16.2s, v30.2s |
| 1387 |
add v7.2d, v7.2d, v16.2d |
| 1388 |
|
| 1389 |
xtn v9.2s, v9.2d |
| 1390 |
umull v9.2d, v9.2s, v30.2s |
| 1391 |
add v8.2d, v8.2d, v9.2d |
| 1392 |
|
| 1393 |
lsr x19, x29, #6 |
| 1394 |
//dup v30.2d, x19 |
| 1395 |
mov v30.d[0], x19 |
| 1396 |
mov v30.d[1], x19 |
| 1397 |
|
| 1398 |
usra v1.2d, v0.2d, #29 |
| 1399 |
and v0.16b, v0.16b, v29.16b |
| 1400 |
|
| 1401 |
usra v2.2d, v1.2d, #29 |
| 1402 |
and v1.16b, v1.16b, v29.16b |
| 1403 |
|
| 1404 |
usra v3.2d, v2.2d, #29 |
| 1405 |
and v2.16b, v2.16b, v29.16b |
| 1406 |
|
| 1407 |
usra v4.2d, v3.2d, #29 |
| 1408 |
and v3.16b, v3.16b, v29.16b |
| 1409 |
|
| 1410 |
usra v5.2d, v4.2d, #29 |
| 1411 |
and v4.16b, v4.16b, v29.16b |
| 1412 |
|
| 1413 |
usra v6.2d, v5.2d, #29 |
| 1414 |
and v5.16b, v5.16b, v29.16b |
| 1415 |
|
| 1416 |
usra v7.2d, v6.2d, #29 |
| 1417 |
and v6.16b, v6.16b, v29.16b |
| 1418 |
|
| 1419 |
usra v8.2d, v7.2d, #29 |
| 1420 |
and v7.16b, v7.16b, v29.16b |
| 1421 |
|
| 1422 |
bic v10.16b, v8.16b, v30.16b |
| 1423 |
usra v0.2d, v10.2d, #23 |
| 1424 |
usra v0.2d, v10.2d, #22 |
| 1425 |
usra v0.2d, v10.2d, #19 |
| 1426 |
and v8.16b, v8.16b, v30.16b |
| 1427 |
|
| 1428 |
usra v1.2d, v0.2d, #29 |
| 1429 |
and v0.16b, v0.16b, v29.16b |
| 1430 |
|
| 1431 |
// Z3 |
| 1432 |
zip1 v20.2s, v0.2s, v1.2s |
| 1433 |
zip1 v22.2s, v2.2s, v3.2s |
| 1434 |
zip1 v24.2s, v4.2s, v5.2s |
| 1435 |
zip1 v26.2s, v6.2s, v7.2s |
| 1436 |
zip1 v28.2s, v8.2s, v9.2s |
| 1437 |
|
| 1438 |
// X2 |
| 1439 |
zip2 v11.4s, v0.4s, v1.4s |
| 1440 |
zip2 v13.4s, v2.4s, v3.4s |
| 1441 |
zip2 v15.4s, v4.4s, v5.4s |
| 1442 |
zip2 v17.4s, v6.4s, v7.4s |
| 1443 |
zip2 v19.4s, v8.4s, v9.4s |
| 1444 |
|
| 1445 |
eor w1, w1, w3 |
| 1446 |
|
| 1447 |
// Z2 |
| 1448 |
mov v10.d[0], x20 |
| 1449 |
mov v12.d[0], x22 |
| 1450 |
mov v14.d[0], x24 |
| 1451 |
mov v16.d[0], x26 |
| 1452 |
mov v18.d[0], x28 |
| 1453 |
|
| 1454 |
// X3 |
| 1455 |
ldp d21, d23, [sp, #264] |
| 1456 |
ldp d25, d27, [sp, #280] |
| 1457 |
ldr d29, [sp, #296] |
| 1458 |
|
| 1459 |
bpl .L0 |
| 1460 |
|
| 1461 |
ldr x0, [sp, #144] |
| 1462 |
|
| 1463 |
// X2 |
| 1464 |
mov w10, v11.s[0] |
| 1465 |
mov w11, v11.s[1] |
| 1466 |
mov w12, v13.s[0] |
| 1467 |
mov w13, v13.s[1] |
| 1468 |
mov w14, v15.s[0] |
| 1469 |
mov w15, v15.s[1] |
| 1470 |
mov w16, v17.s[0] |
| 1471 |
mov w17, v17.s[1] |
| 1472 |
mov w18, v19.s[0] |
| 1473 |
|
| 1474 |
stp w13, w17, [x0, #0] |
| 1475 |
stp w14, w18, [x0, #8] |
| 1476 |
stp w15, w10, [x0, #16] |
| 1477 |
stp w16, w11, [x0, #24] |
| 1478 |
stp w12, wzr, [x0, #32] |
| 1479 |
|
| 1480 |
// Z2 |
| 1481 |
mov w10, v10.s[0] |
| 1482 |
mov w11, v10.s[1] |
| 1483 |
mov w12, v12.s[0] |
| 1484 |
mov w13, v12.s[1] |
| 1485 |
mov w14, v14.s[0] |
| 1486 |
mov w15, v14.s[1] |
| 1487 |
mov w16, v16.s[0] |
| 1488 |
mov w17, v16.s[1] |
| 1489 |
mov w18, v18.s[0] |
| 1490 |
|
| 1491 |
stp w13, w17, [x0, #40] |
| 1492 |
stp w14, w18, [x0, #48] |
| 1493 |
stp w15, w10, [x0, #56] |
| 1494 |
stp w16, w11, [x0, #64] |
| 1495 |
stp w12, wzr, [x0, #72] |
| 1496 |
|
| 1497 |
add x10, sp, #408 |
| 1498 |
ldp d14, d15, [x10, #144] |
| 1499 |
ldp d12, d13, [x10, #128] |
| 1500 |
ldp d10, d11, [x10, #112] |
| 1501 |
ldp d8, d9, [x10, #96] |
| 1502 |
ldp x29, x30, [x10, #80] |
| 1503 |
ldp x27, x28, [x10, #64] |
| 1504 |
ldp x25, x26, [x10, #48] |
| 1505 |
ldp x23, x24, [x10, #32] |
| 1506 |
ldp x21, x22, [x10, #16] |
| 1507 |
ldp x19, x20, [x10, #0] |
| 1508 |
add sp, sp, #592 |
| 1509 |
|
| 1510 |
ret |
| 1511 |
#endif |
| 1512 |
|
| 1513 |
#ifdef IMPL2 |
| 1514 |
|
| 1515 |
.p2align 4 |
| 1516 |
ASM_HIDDEN _CRYPTO_SHARED_NAMESPACE(mladder) |
| 1517 |
.globl _CRYPTO_SHARED_NAMESPACE(mladder) |
| 1518 |
ASM_HIDDEN CRYPTO_SHARED_NAMESPACE(mladder) |
| 1519 |
.globl CRYPTO_SHARED_NAMESPACE(mladder) |
| 1520 |
|
| 1521 |
_CRYPTO_SHARED_NAMESPACE(mladder): |
| 1522 |
CRYPTO_SHARED_NAMESPACE(mladder): |
| 1523 |
|
| 1524 |
sub sp, sp, #464 |
| 1525 |
stp x19, x20, [sp, #16] |
| 1526 |
stp x21, x22, [sp, #32] |
| 1527 |
stp x23, x24, [sp, #48] |
| 1528 |
stp x25, x26, [sp, #64] |
| 1529 |
stp x27, x28, [sp, #80] |
| 1530 |
stp x29, x30, [sp, #96] |
| 1531 |
stp d8, d9, [sp, #112] |
| 1532 |
stp d10, d11, [sp, #128] |
| 1533 |
stp d12, d13, [sp, #144] |
| 1534 |
stp d14, d15, [sp, #160] |
| 1535 |
|
| 1536 |
// clamp scalar |
| 1537 |
ldr x3, [x2, #0] |
| 1538 |
and x3, x3, #0xfffffffffffffff8 |
| 1539 |
str x3, [x2, #0] |
| 1540 |
ldr x4, [x2, #24] |
| 1541 |
orr x4, x4, #0x4000000000000000 |
| 1542 |
str x4, [x2, #24] |
| 1543 |
|
| 1544 |
stp x0, x2, [sp, #176] |
| 1545 |
|
| 1546 |
// load point |
| 1547 |
ldp x4, x5, [x1, #0] |
| 1548 |
ldp x6, x7, [x1, #16] |
| 1549 |
|
| 1550 |
// X1 |
| 1551 |
and w8, w4, #0x1fffffff |
| 1552 |
ubfx x9, x4, #29, #29 |
| 1553 |
|
| 1554 |
lsr x10, x4, #58 |
| 1555 |
orr w10, w10, w5, lsl #6 |
| 1556 |
and w10, w10, #0x1fffffff |
| 1557 |
ubfx x11, x5, #23, #29 |
| 1558 |
|
| 1559 |
lsr x12, x5, #52 |
| 1560 |
orr w12, w12, w6, lsl #12 |
| 1561 |
and w12, w12, #0x1fffffff |
| 1562 |
ubfx x13, x6, #17, #29 |
| 1563 |
|
| 1564 |
lsr x14, x6, #46 |
| 1565 |
orr w14, w14, w7, lsl #18 |
| 1566 |
and w14, w14, #0x1fffffff |
| 1567 |
ubfx x15, x7, #11, #29 |
| 1568 |
|
| 1569 |
ubfx x16, x7, #40, #23 |
| 1570 |
|
| 1571 |
add x0, sp, #400 |
| 1572 |
stp w8, w9, [x0, #0] |
| 1573 |
stp w10, w11, [x0, #8] |
| 1574 |
stp w12, w13, [x0, #16] |
| 1575 |
stp w14, w15, [x0, #24] |
| 1576 |
stp w16, wzr, [x0, #32] |
| 1577 |
|
| 1578 |
mov x20, #1 |
| 1579 |
// X2 ← 1 |
| 1580 |
mov v11.d[0], x20 |
| 1581 |
mov v13.d[0], xzr |
| 1582 |
mov v15.d[0], xzr |
| 1583 |
mov v17.d[0], xzr |
| 1584 |
mov v19.d[0], xzr |
| 1585 |
|
| 1586 |
// Z2 ← 0 |
| 1587 |
mov v10.d[0], xzr |
| 1588 |
mov v12.d[0], xzr |
| 1589 |
mov v14.d[0], xzr |
| 1590 |
mov v16.d[0], xzr |
| 1591 |
mov v18.d[0], xzr |
| 1592 |
|
| 1593 |
// X3 ← X1 |
| 1594 |
mov v21.s[0], w8 |
| 1595 |
mov v21.s[1], w9 |
| 1596 |
mov v23.s[0], w10 |
| 1597 |
mov v23.s[1], w11 |
| 1598 |
mov v25.s[0], w12 |
| 1599 |
mov v25.s[1], w13 |
| 1600 |
mov v27.s[0], w14 |
| 1601 |
mov v27.s[1], w15 |
| 1602 |
mov v29.s[0], w16 |
| 1603 |
mov v29.s[1], wzr |
| 1604 |
|
| 1605 |
// Z3 ← 1 |
| 1606 |
mov v20.d[0], x20 |
| 1607 |
mov v22.d[0], xzr |
| 1608 |
mov v24.d[0], xzr |
| 1609 |
mov v26.d[0], xzr |
| 1610 |
mov v28.d[0], xzr |
| 1611 |
|
| 1612 |
mov w30, #1216 |
| 1613 |
dup v31.2s, w30 |
| 1614 |
mov w29, #0x1fffffff |
| 1615 |
dup v30.2d, x29 |
| 1616 |
|
| 1617 |
mov x5, #254 |
| 1618 |
stp x5, xzr, [sp, #192] |
| 1619 |
|
| 1620 |
movz x1, #0xffda |
| 1621 |
movk x1, #0x3fff, lsl 16 |
| 1622 |
movk x1, #0xfffe, lsl 32 |
| 1623 |
movk x1, #0x3fff, lsl 48 |
| 1624 |
|
| 1625 |
movz x2, #0xfffe |
| 1626 |
movk x2, #0x3fff, lsl 16 |
| 1627 |
movk x2, #0xfffe, lsl 32 |
| 1628 |
movk x2, #0x3fff, lsl 48 |
| 1629 |
|
| 1630 |
movz x3, #0xfffe |
| 1631 |
movk x3, #0x00ff, lsl 16 |
| 1632 |
|
| 1633 |
stp x2, x1, [sp, #0] |
| 1634 |
str x3, [sp, #448] |
| 1635 |
|
| 1636 |
mov w1, #0xda |
| 1637 |
strb w1, [sp, #440] |
| 1638 |
|
| 1639 |
// Montgomery ladder loop |
| 1640 |
.L1: |
| 1641 |
|
| 1642 |
ldr d7, [sp, #8] |
| 1643 |
ldr d8, [sp, #0] |
| 1644 |
ldr d9, [sp, #448] |
| 1645 |
|
| 1646 |
// T1 = X2 + Z2, T2 = X2 - Z2 |
| 1647 |
add v0.2s, v11.2s, v10.2s |
| 1648 |
add v1.2s, v13.2s, v12.2s |
| 1649 |
add v2.2s, v15.2s, v14.2s |
| 1650 |
add v3.2s, v17.2s, v16.2s |
| 1651 |
add v4.2s, v19.2s, v18.2s |
| 1652 |
|
| 1653 |
add v11.2s, v7.2s, v11.2s |
| 1654 |
add v13.2s, v8.2s, v13.2s |
| 1655 |
add v15.2s, v8.2s, v15.2s |
| 1656 |
add v17.2s, v8.2s, v17.2s |
| 1657 |
add v19.2s, v9.2s, v19.2s |
| 1658 |
|
| 1659 |
sub v11.2s, v11.2s, v10.2s |
| 1660 |
sub v13.2s, v13.2s, v12.2s |
| 1661 |
sub v15.2s, v15.2s, v14.2s |
| 1662 |
sub v17.2s, v17.2s, v16.2s |
| 1663 |
sub v19.2s, v19.2s, v18.2s |
| 1664 |
|
| 1665 |
// T4 = X3 - Z3, T3 = X3 + Z3 |
| 1666 |
add v10.2s, v7.2s, v21.2s |
| 1667 |
add v12.2s, v8.2s, v23.2s |
| 1668 |
add v14.2s, v8.2s, v25.2s |
| 1669 |
add v16.2s, v8.2s, v27.2s |
| 1670 |
add v18.2s, v9.2s, v29.2s |
| 1671 |
|
| 1672 |
add v5.2s, v21.2s, v20.2s |
| 1673 |
add v6.2s, v23.2s, v22.2s |
| 1674 |
add v7.2s, v25.2s, v24.2s |
| 1675 |
add v8.2s, v27.2s, v26.2s |
| 1676 |
add v9.2s, v29.2s, v28.2s |
| 1677 |
|
| 1678 |
sub v21.2s, v10.2s, v20.2s |
| 1679 |
sub v23.2s, v12.2s, v22.2s |
| 1680 |
sub v25.2s, v14.2s, v24.2s |
| 1681 |
sub v27.2s, v16.2s, v26.2s |
| 1682 |
sub v29.2s, v18.2s, v28.2s |
| 1683 |
|
| 1684 |
// get current scalar bit |
| 1685 |
ldr x2, [sp, #184] |
| 1686 |
ldp x5, x6, [sp, #192] |
| 1687 |
|
| 1688 |
bic x3, x5, #0x3f |
| 1689 |
lsr x3, x3, #3 |
| 1690 |
ldr x4, [x2, x3] |
| 1691 |
lsr x4, x4, x5 |
| 1692 |
and w4, w4, #1 |
| 1693 |
|
| 1694 |
// compare current with previous scalar bit |
| 1695 |
cmp w4, w6 |
| 1696 |
|
| 1697 |
// CSelect(T1,T3,b) |
| 1698 |
fcsel d10, d5, d0, ne |
| 1699 |
fcsel d12, d6, d1, ne |
| 1700 |
fcsel d14, d7, d2, ne |
| 1701 |
fcsel d16, d8, d3, ne |
| 1702 |
fcsel d18, d9, d4, ne |
| 1703 |
|
| 1704 |
// save T1 resulted from CSelect |
| 1705 |
mov x10, v10.d[0] |
| 1706 |
mov x12, v12.d[0] |
| 1707 |
mov x14, v14.d[0] |
| 1708 |
mov x16, v16.d[0] |
| 1709 |
mov x18, v18.d[0] |
| 1710 |
|
| 1711 |
lsr x11, x10, #32 |
| 1712 |
lsr x13, x12, #32 |
| 1713 |
lsr x15, x14, #32 |
| 1714 |
lsr x17, x16, #32 |
| 1715 |
|
| 1716 |
// CSelect(T2,T4,b) |
| 1717 |
fcsel d20, d21, d11, ne |
| 1718 |
fcsel d22, d23, d13, ne |
| 1719 |
fcsel d24, d25, d15, ne |
| 1720 |
fcsel d26, d27, d17, ne |
| 1721 |
fcsel d28, d29, d19, ne |
| 1722 |
|
| 1723 |
// save T2 resulted from CSelect |
| 1724 |
stp d20, d22, [sp, #208] |
| 1725 |
stp d24, d26, [sp, #224] |
| 1726 |
str d28, [sp, #240] |
| 1727 |
|
| 1728 |
// update previous scalar bit |
| 1729 |
subs w5, w5, #1 |
| 1730 |
stp x5, x4, [sp, #192] |
| 1731 |
|
| 1732 |
// <T1,T2> = <X2 + Z2,X2 - Z2> |
| 1733 |
trn1 v10.2s, v0.2s, v11.2s |
| 1734 |
trn2 v11.2s, v0.2s, v11.2s |
| 1735 |
trn1 v12.2s, v1.2s, v13.2s |
| 1736 |
trn2 v13.2s, v1.2s, v13.2s |
| 1737 |
trn1 v14.2s, v2.2s, v15.2s |
| 1738 |
trn2 v15.2s, v2.2s, v15.2s |
| 1739 |
trn1 v16.2s, v3.2s, v17.2s |
| 1740 |
trn2 v17.2s, v3.2s, v17.2s |
| 1741 |
trn1 v18.2s, v4.2s, v19.2s |
| 1742 |
|
| 1743 |
// <T4,T3> = <X3 - Z3,X3 + Z3> |
| 1744 |
trn1 v20.2s, v21.2s, v5.2s |
| 1745 |
trn2 v21.2s, v21.2s, v5.2s |
| 1746 |
trn1 v22.2s, v23.2s, v6.2s |
| 1747 |
trn2 v23.2s, v23.2s, v6.2s |
| 1748 |
trn1 v24.2s, v25.2s, v7.2s |
| 1749 |
trn2 v25.2s, v25.2s, v7.2s |
| 1750 |
trn1 v26.2s, v27.2s, v8.2s |
| 1751 |
trn2 v27.2s, v27.2s, v8.2s |
| 1752 |
trn1 v28.2s, v29.2s, v9.2s |
| 1753 |
|
| 1754 |
// <T5,T6> ← Mul(<T1,T2>,<T4,T3>) |
| 1755 |
dup v29.2d, x29 |
| 1756 |
dup v30.2s, w30 |
| 1757 |
|
| 1758 |
umull v0.2d, v10.2s, v20.2s |
| 1759 |
umull v1.2d, v10.2s, v21.2s |
| 1760 |
umull v2.2d, v10.2s, v22.2s |
| 1761 |
umull v3.2d, v10.2s, v23.2s |
| 1762 |
umull v4.2d, v10.2s, v24.2s |
| 1763 |
umull v5.2d, v10.2s, v25.2s |
| 1764 |
umull v6.2d, v10.2s, v26.2s |
| 1765 |
umull v7.2d, v10.2s, v27.2s |
| 1766 |
umull v8.2d, v10.2s, v28.2s |
| 1767 |
|
| 1768 |
umlal v1.2d, v11.2s, v20.2s |
| 1769 |
umlal v2.2d, v11.2s, v21.2s |
| 1770 |
umlal v3.2d, v11.2s, v22.2s |
| 1771 |
umlal v4.2d, v11.2s, v23.2s |
| 1772 |
umlal v5.2d, v11.2s, v24.2s |
| 1773 |
umlal v6.2d, v11.2s, v25.2s |
| 1774 |
umlal v7.2d, v11.2s, v26.2s |
| 1775 |
umlal v8.2d, v11.2s, v27.2s |
| 1776 |
umull v9.2d, v11.2s, v28.2s |
| 1777 |
|
| 1778 |
umlal v2.2d, v12.2s, v20.2s |
| 1779 |
umlal v3.2d, v12.2s, v21.2s |
| 1780 |
umlal v4.2d, v12.2s, v22.2s |
| 1781 |
umlal v5.2d, v12.2s, v23.2s |
| 1782 |
umlal v6.2d, v12.2s, v24.2s |
| 1783 |
umlal v7.2d, v12.2s, v25.2s |
| 1784 |
umlal v8.2d, v12.2s, v26.2s |
| 1785 |
umlal v9.2d, v12.2s, v27.2s |
| 1786 |
umull v10.2d, v12.2s, v28.2s |
| 1787 |
|
| 1788 |
umlal v3.2d, v13.2s, v20.2s |
| 1789 |
umlal v4.2d, v13.2s, v21.2s |
| 1790 |
umlal v5.2d, v13.2s, v22.2s |
| 1791 |
umlal v6.2d, v13.2s, v23.2s |
| 1792 |
umlal v7.2d, v13.2s, v24.2s |
| 1793 |
umlal v8.2d, v13.2s, v25.2s |
| 1794 |
umlal v9.2d, v13.2s, v26.2s |
| 1795 |
umlal v10.2d, v13.2s, v27.2s |
| 1796 |
umull v11.2d, v13.2s, v28.2s |
| 1797 |
|
| 1798 |
umlal v4.2d, v14.2s, v20.2s |
| 1799 |
umlal v5.2d, v14.2s, v21.2s |
| 1800 |
umlal v6.2d, v14.2s, v22.2s |
| 1801 |
umlal v7.2d, v14.2s, v23.2s |
| 1802 |
umlal v8.2d, v14.2s, v24.2s |
| 1803 |
umlal v9.2d, v14.2s, v25.2s |
| 1804 |
umlal v10.2d, v14.2s, v26.2s |
| 1805 |
umlal v11.2d, v14.2s, v27.2s |
| 1806 |
umull v12.2d, v14.2s, v28.2s |
| 1807 |
|
| 1808 |
umlal v5.2d, v15.2s, v20.2s |
| 1809 |
umlal v6.2d, v15.2s, v21.2s |
| 1810 |
umlal v7.2d, v15.2s, v22.2s |
| 1811 |
umlal v8.2d, v15.2s, v23.2s |
| 1812 |
umlal v9.2d, v15.2s, v24.2s |
| 1813 |
umlal v10.2d, v15.2s, v25.2s |
| 1814 |
umlal v11.2d, v15.2s, v26.2s |
| 1815 |
umlal v12.2d, v15.2s, v27.2s |
| 1816 |
umull v13.2d, v15.2s, v28.2s |
| 1817 |
|
| 1818 |
umlal v6.2d, v16.2s, v20.2s |
| 1819 |
umlal v7.2d, v16.2s, v21.2s |
| 1820 |
umlal v8.2d, v16.2s, v22.2s |
| 1821 |
umlal v9.2d, v16.2s, v23.2s |
| 1822 |
umlal v10.2d, v16.2s, v24.2s |
| 1823 |
umlal v11.2d, v16.2s, v25.2s |
| 1824 |
umlal v12.2d, v16.2s, v26.2s |
| 1825 |
umlal v13.2d, v16.2s, v27.2s |
| 1826 |
umull v14.2d, v16.2s, v28.2s |
| 1827 |
|
| 1828 |
umlal v7.2d, v17.2s, v20.2s |
| 1829 |
umlal v8.2d, v17.2s, v21.2s |
| 1830 |
umlal v9.2d, v17.2s, v22.2s |
| 1831 |
umlal v10.2d, v17.2s, v23.2s |
| 1832 |
umlal v11.2d, v17.2s, v24.2s |
| 1833 |
umlal v12.2d, v17.2s, v25.2s |
| 1834 |
umlal v13.2d, v17.2s, v26.2s |
| 1835 |
umlal v14.2d, v17.2s, v27.2s |
| 1836 |
umull v15.2d, v17.2s, v28.2s |
| 1837 |
|
| 1838 |
umlal v8.2d, v18.2s, v20.2s |
| 1839 |
umlal v9.2d, v18.2s, v21.2s |
| 1840 |
umlal v10.2d, v18.2s, v22.2s |
| 1841 |
umlal v11.2d, v18.2s, v23.2s |
| 1842 |
umlal v12.2d, v18.2s, v24.2s |
| 1843 |
umlal v13.2d, v18.2s, v25.2s |
| 1844 |
umlal v14.2d, v18.2s, v26.2s |
| 1845 |
umlal v15.2d, v18.2s, v27.2s |
| 1846 |
umull v16.2d, v18.2s, v28.2s |
| 1847 |
|
| 1848 |
usra v10.2d, v9.2d, #29 |
| 1849 |
and v9.16b, v9.16b, v29.16b |
| 1850 |
xtn v9.2s, v9.2d |
| 1851 |
umull v9.2d, v9.2s, v30.2s |
| 1852 |
add v0.2d, v0.2d, v9.2d |
| 1853 |
|
| 1854 |
usra v11.2d, v10.2d, #29 |
| 1855 |
and v10.16b, v10.16b, v29.16b |
| 1856 |
xtn v10.2s, v10.2d |
| 1857 |
umull v10.2d, v10.2s, v30.2s |
| 1858 |
add v1.2d, v1.2d, v10.2d |
| 1859 |
|
| 1860 |
usra v12.2d, v11.2d, #29 |
| 1861 |
and v11.16b, v11.16b, v29.16b |
| 1862 |
xtn v11.2s, v11.2d |
| 1863 |
umull v11.2d, v11.2s, v30.2s |
| 1864 |
add v2.2d, v2.2d, v11.2d |
| 1865 |
|
| 1866 |
usra v13.2d, v12.2d, #29 |
| 1867 |
and v12.16b, v12.16b, v29.16b |
| 1868 |
xtn v12.2s, v12.2d |
| 1869 |
umull v12.2d, v12.2s, v30.2s |
| 1870 |
add v3.2d, v3.2d, v12.2d |
| 1871 |
|
| 1872 |
usra v14.2d, v13.2d, #29 |
| 1873 |
and v13.16b, v13.16b, v29.16b |
| 1874 |
xtn v13.2s, v13.2d |
| 1875 |
umull v13.2d, v13.2s, v30.2s |
| 1876 |
add v4.2d, v4.2d, v13.2d |
| 1877 |
|
| 1878 |
usra v15.2d, v14.2d, #29 |
| 1879 |
and v14.16b, v14.16b, v29.16b |
| 1880 |
xtn v14.2s, v14.2d |
| 1881 |
umull v14.2d, v14.2s, v30.2s |
| 1882 |
add v5.2d, v5.2d, v14.2d |
| 1883 |
|
| 1884 |
usra v16.2d, v15.2d, #29 |
| 1885 |
and v15.16b, v15.16b, v29.16b |
| 1886 |
xtn v15.2s, v15.2d |
| 1887 |
umull v15.2d, v15.2s, v30.2s |
| 1888 |
add v6.2d, v6.2d, v15.2d |
| 1889 |
|
| 1890 |
ushr v9.2d, v16.2d, #29 |
| 1891 |
and v16.16b, v16.16b, v29.16b |
| 1892 |
xtn v16.2s, v16.2d |
| 1893 |
umull v16.2d, v16.2s, v30.2s |
| 1894 |
add v7.2d, v7.2d, v16.2d |
| 1895 |
|
| 1896 |
xtn v9.2s, v9.2d |
| 1897 |
umull v9.2d, v9.2s, v30.2s |
| 1898 |
add v8.2d, v8.2d, v9.2d |
| 1899 |
|
| 1900 |
lsr x19, x29, #6 |
| 1901 |
dup v30.2d, x19 |
| 1902 |
|
| 1903 |
usra v5.2d, v4.2d, #29 |
| 1904 |
and v4.16b, v4.16b, v29.16b |
| 1905 |
|
| 1906 |
usra v1.2d, v0.2d, #29 |
| 1907 |
and v0.16b, v0.16b, v29.16b |
| 1908 |
|
| 1909 |
usra v6.2d, v5.2d, #29 |
| 1910 |
and v5.16b, v5.16b, v29.16b |
| 1911 |
|
| 1912 |
usra v2.2d, v1.2d, #29 |
| 1913 |
and v1.16b, v1.16b, v29.16b |
| 1914 |
|
| 1915 |
usra v7.2d, v6.2d, #29 |
| 1916 |
and v6.16b, v6.16b, v29.16b |
| 1917 |
|
| 1918 |
usra v3.2d, v2.2d, #29 |
| 1919 |
and v2.16b, v2.16b, v29.16b |
| 1920 |
|
| 1921 |
usra v8.2d, v7.2d, #29 |
| 1922 |
and v7.16b, v7.16b, v29.16b |
| 1923 |
|
| 1924 |
usra v4.2d, v3.2d, #29 |
| 1925 |
and v3.16b, v3.16b, v29.16b |
| 1926 |
|
| 1927 |
bic v10.16b, v8.16b, v30.16b |
| 1928 |
usra v0.2d, v10.2d, #23 |
| 1929 |
usra v0.2d, v10.2d, #22 |
| 1930 |
usra v0.2d, v10.2d, #19 |
| 1931 |
and v8.16b, v8.16b, v30.16b |
| 1932 |
|
| 1933 |
usra v5.2d, v4.2d, #29 |
| 1934 |
and v4.16b, v4.16b, v29.16b |
| 1935 |
|
| 1936 |
usra v1.2d, v0.2d, #29 |
| 1937 |
and v0.16b, v0.16b, v29.16b |
| 1938 |
|
| 1939 |
// T1 ← T1^2 |
| 1940 |
add w20, w10, w10 |
| 1941 |
add w21, w11, w11 |
| 1942 |
add w22, w12, w12 |
| 1943 |
add w23, w13, w13 |
| 1944 |
add w24, w14, w14 |
| 1945 |
add w25, w15, w15 |
| 1946 |
add w26, w16, w16 |
| 1947 |
add w27, w17, w17 |
| 1948 |
|
| 1949 |
umull x0, w10, w10 |
| 1950 |
umull x1, w20, w11 |
| 1951 |
umull x2, w20, w12 |
| 1952 |
umull x3, w20, w13 |
| 1953 |
umull x4, w20, w14 |
| 1954 |
umull x5, w20, w15 |
| 1955 |
umull x6, w20, w16 |
| 1956 |
umull x7, w20, w17 |
| 1957 |
umull x8, w20, w18 |
| 1958 |
|
| 1959 |
umaddl x2, w11, w11, x2 |
| 1960 |
umaddl x3, w21, w12, x3 |
| 1961 |
umaddl x4, w21, w13, x4 |
| 1962 |
umaddl x5, w21, w14, x5 |
| 1963 |
umaddl x6, w21, w15, x6 |
| 1964 |
umaddl x7, w21, w16, x7 |
| 1965 |
umaddl x8, w21, w17, x8 |
| 1966 |
umull x9, w21, w18 |
| 1967 |
|
| 1968 |
umaddl x4, w12, w12, x4 |
| 1969 |
umaddl x5, w22, w13, x5 |
| 1970 |
umaddl x6, w22, w14, x6 |
| 1971 |
umaddl x7, w22, w15, x7 |
| 1972 |
umaddl x8, w22, w16, x8 |
| 1973 |
umaddl x9, w22, w17, x9 |
| 1974 |
umull x10, w22, w18 |
| 1975 |
|
| 1976 |
umaddl x6, w13, w13, x6 |
| 1977 |
umaddl x7, w23, w14, x7 |
| 1978 |
umaddl x8, w23, w15, x8 |
| 1979 |
umaddl x9, w23, w16, x9 |
| 1980 |
umaddl x10, w23, w17, x10 |
| 1981 |
umull x11, w23, w18 |
| 1982 |
|
| 1983 |
umaddl x8, w14, w14, x8 |
| 1984 |
umaddl x9, w24, w15, x9 |
| 1985 |
umaddl x10, w24, w16, x10 |
| 1986 |
umaddl x11, w24, w17, x11 |
| 1987 |
umull x12, w24, w18 |
| 1988 |
|
| 1989 |
umaddl x10, w15, w15, x10 |
| 1990 |
umaddl x11, w25, w16, x11 |
| 1991 |
umaddl x12, w25, w17, x12 |
| 1992 |
umull x13, w25, w18 |
| 1993 |
|
| 1994 |
add x10, x10, x9, lsr #29 |
| 1995 |
and x9, x9, #0x1fffffff |
| 1996 |
umull x9, w9, w30 |
| 1997 |
add x0, x0, x9 |
| 1998 |
|
| 1999 |
add x11, x11, x10, lsr #29 |
| 2000 |
and x10, x10, #0x1fffffff |
| 2001 |
umull x10, w10, w30 |
| 2002 |
add x1, x1, x10 |
| 2003 |
|
| 2004 |
umaddl x12, w16, w16, x12 |
| 2005 |
umaddl x13, w26, w17, x13 |
| 2006 |
umull x14, w26, w18 |
| 2007 |
|
| 2008 |
add x12, x12, x11, lsr #29 |
| 2009 |
and x11, x11, #0x1fffffff |
| 2010 |
umull x11, w11, w30 |
| 2011 |
add x2, x2, x11 |
| 2012 |
|
| 2013 |
add x13, x13, x12, lsr #29 |
| 2014 |
and x12, x12, #0x1fffffff |
| 2015 |
umull x12, w12, w30 |
| 2016 |
add x3, x3, x12 |
| 2017 |
|
| 2018 |
umaddl x14, w17, w17, x14 |
| 2019 |
umull x15, w27, w18 |
| 2020 |
|
| 2021 |
add x14, x14, x13, lsr #29 |
| 2022 |
and x13, x13, #0x1fffffff |
| 2023 |
umull x13, w13, w30 |
| 2024 |
add x4, x4, x13 |
| 2025 |
|
| 2026 |
add x15, x15, x14, lsr #29 |
| 2027 |
and x14, x14, #0x1fffffff |
| 2028 |
umull x14, w14, w30 |
| 2029 |
add x5, x5, x14 |
| 2030 |
|
| 2031 |
umull x16, w18, w18 |
| 2032 |
|
| 2033 |
add x16, x16, x15, lsr #29 |
| 2034 |
and x15, x15, #0x1fffffff |
| 2035 |
umull x15, w15, w30 |
| 2036 |
add x6, x6, x15 |
| 2037 |
|
| 2038 |
lsr x9, x16, #29 |
| 2039 |
and x16, x16, #0x1fffffff |
| 2040 |
umull x16, w16, w30 |
| 2041 |
add x7, x7, x16 |
| 2042 |
|
| 2043 |
umull x9, w9, w30 |
| 2044 |
add x8, x8, x9 |
| 2045 |
|
| 2046 |
add x5, x5, x4, lsr #29 |
| 2047 |
and x4, x4, 0x1fffffff |
| 2048 |
|
| 2049 |
add x1, x1, x0, lsr #29 |
| 2050 |
and x0, x0, 0x1fffffff |
| 2051 |
|
| 2052 |
add x6, x6, x5, lsr #29 |
| 2053 |
and x5, x5, 0x1fffffff |
| 2054 |
|
| 2055 |
add x2, x2, x1, lsr #29 |
| 2056 |
and x1, x1, 0x1fffffff |
| 2057 |
|
| 2058 |
add x7, x7, x6, lsr #29 |
| 2059 |
and x6, x6, 0x1fffffff |
| 2060 |
|
| 2061 |
add x3, x3, x2, lsr #29 |
| 2062 |
and x2, x2, 0x1fffffff |
| 2063 |
|
| 2064 |
add x8, x8, x7, lsr #29 |
| 2065 |
and x7, x7, 0x1fffffff |
| 2066 |
bfi x6, x7, #32, #29 |
| 2067 |
|
| 2068 |
add x4, x4, x3, lsr #29 |
| 2069 |
and x3, x3, 0x1fffffff |
| 2070 |
bfi x2, x3, #32, #29 |
| 2071 |
|
| 2072 |
bic x10, x8, #0x7fffff |
| 2073 |
add x0, x0, x10, lsr #23 |
| 2074 |
add x0, x0, x10, lsr #22 |
| 2075 |
add x0, x0, x10, lsr #19 |
| 2076 |
and x8, x8, #0x7fffff |
| 2077 |
|
| 2078 |
add x5, x5, x4, lsr #29 |
| 2079 |
and x4, x4, 0x1fffffff |
| 2080 |
bfi x4, x5, #32, #30 |
| 2081 |
|
| 2082 |
add x1, x1, x0, lsr #29 |
| 2083 |
and x0, x0, 0x1fffffff |
| 2084 |
bfi x0, x1, #32, #30 |
| 2085 |
|
| 2086 |
stp x0, x2, [sp, #256] |
| 2087 |
stp x4, x6, [sp, #272] |
| 2088 |
str x8, [sp, #288] |
| 2089 |
|
| 2090 |
// X3 ← T5 + T6, Z3 ← T5 - T6 |
| 2091 |
uzp1 v0.4s, v0.4s, v1.4s |
| 2092 |
uzp1 v1.4s, v2.4s, v3.4s |
| 2093 |
uzp1 v2.4s, v0.4s, v1.4s |
| 2094 |
uzp2 v3.4s, v0.4s, v1.4s |
| 2095 |
|
| 2096 |
uzp1 v4.4s, v4.4s, v5.4s |
| 2097 |
uzp1 v5.4s, v6.4s, v7.4s |
| 2098 |
uzp1 v6.4s, v4.4s, v5.4s |
| 2099 |
uzp2 v7.4s, v4.4s, v5.4s |
| 2100 |
|
| 2101 |
trn1 v8.4s, v8.4s, v9.4s |
| 2102 |
mov v9.d[0], v8.d[1] |
| 2103 |
|
| 2104 |
// X3 ← T5 + T6 |
| 2105 |
add v1.4s, v2.4s, v3.4s |
| 2106 |
add v4.4s, v6.4s, v7.4s |
| 2107 |
add v5.4s, v8.4s, v9.4s |
| 2108 |
|
| 2109 |
// Z3 ← T5 - T6 |
| 2110 |
ld1r {v10.2d}, [sp] |
| 2111 |
add v6.4s, v6.4s, v10.4s |
| 2112 |
ldr b11, [sp, #440] |
| 2113 |
mov v10.b[0], v11.b[0] |
| 2114 |
add v2.4s, v2.4s, v10.4s |
| 2115 |
ldr d10, [sp, #448] |
| 2116 |
add v8.4s, v8.4s, v10.4s |
| 2117 |
|
| 2118 |
sub v2.4s, v2.4s, v3.4s |
| 2119 |
sub v6.4s, v6.4s, v7.4s |
| 2120 |
sub v8.4s, v8.4s, v9.4s |
| 2121 |
|
| 2122 |
// <Z3,X3> ← <T5 - T6,T5 + T6> |
| 2123 |
zip1 v10.4s, v2.4s, v1.4s |
| 2124 |
zip2 v12.4s, v2.4s, v1.4s |
| 2125 |
zip1 v14.4s, v6.4s, v4.4s |
| 2126 |
zip2 v16.4s, v6.4s, v4.4s |
| 2127 |
zip1 v18.4s, v8.4s, v5.4s |
| 2128 |
|
| 2129 |
mov v11.d[0], v10.d[1] |
| 2130 |
mov v13.d[0], v12.d[1] |
| 2131 |
mov v15.d[0], v14.d[1] |
| 2132 |
mov v17.d[0], v16.d[1] |
| 2133 |
mov v19.d[0], v18.d[1] |
| 2134 |
|
| 2135 |
// <Z3,X3> ← Sqr(<Z3,X3>) |
| 2136 |
dup v29.2d, x29 |
| 2137 |
dup v30.2s, w30 |
| 2138 |
|
| 2139 |
add v20.2d, v10.2d, v10.2d |
| 2140 |
add v21.2d, v11.2d, v11.2d |
| 2141 |
add v22.2d, v12.2d, v12.2d |
| 2142 |
add v23.2d, v13.2d, v13.2d |
| 2143 |
add v24.2d, v14.2d, v14.2d |
| 2144 |
add v25.2d, v15.2d, v15.2d |
| 2145 |
add v26.2d, v16.2d, v16.2d |
| 2146 |
add v27.2d, v17.2d, v17.2d |
| 2147 |
|
| 2148 |
umull v0.2d, v10.2s, v10.2s |
| 2149 |
umull v1.2d, v20.2s, v11.2s |
| 2150 |
umull v2.2d, v20.2s, v12.2s |
| 2151 |
umull v3.2d, v20.2s, v13.2s |
| 2152 |
umull v4.2d, v20.2s, v14.2s |
| 2153 |
umull v5.2d, v20.2s, v15.2s |
| 2154 |
umull v6.2d, v20.2s, v16.2s |
| 2155 |
umull v7.2d, v20.2s, v17.2s |
| 2156 |
umull v8.2d, v20.2s, v18.2s |
| 2157 |
|
| 2158 |
umlal v2.2d, v11.2s, v11.2s |
| 2159 |
umlal v3.2d, v21.2s, v12.2s |
| 2160 |
umlal v4.2d, v21.2s, v13.2s |
| 2161 |
umlal v5.2d, v21.2s, v14.2s |
| 2162 |
umlal v6.2d, v21.2s, v15.2s |
| 2163 |
umlal v7.2d, v21.2s, v16.2s |
| 2164 |
umlal v8.2d, v21.2s, v17.2s |
| 2165 |
umull v9.2d, v21.2s, v18.2s |
| 2166 |
|
| 2167 |
umlal v4.2d, v12.2s, v12.2s |
| 2168 |
umlal v5.2d, v22.2s, v13.2s |
| 2169 |
umlal v6.2d, v22.2s, v14.2s |
| 2170 |
umlal v7.2d, v22.2s, v15.2s |
| 2171 |
umlal v8.2d, v22.2s, v16.2s |
| 2172 |
umlal v9.2d, v22.2s, v17.2s |
| 2173 |
umull v10.2d, v22.2s, v18.2s |
| 2174 |
|
| 2175 |
umlal v6.2d, v13.2s, v13.2s |
| 2176 |
umlal v8.2d, v23.2s, v15.2s |
| 2177 |
umlal v9.2d, v23.2s, v16.2s |
| 2178 |
umlal v10.2d, v23.2s, v17.2s |
| 2179 |
umull v11.2d, v23.2s, v18.2s |
| 2180 |
|
| 2181 |
umlal v8.2d, v14.2s, v14.2s |
| 2182 |
umlal v9.2d, v24.2s, v15.2s |
| 2183 |
umlal v10.2d, v24.2s, v16.2s |
| 2184 |
umlal v11.2d, v24.2s, v17.2s |
| 2185 |
umull v12.2d, v24.2s, v18.2s |
| 2186 |
|
| 2187 |
umlal v10.2d, v15.2s, v15.2s |
| 2188 |
umlal v11.2d, v25.2s, v16.2s |
| 2189 |
umlal v12.2d, v25.2s, v17.2s |
| 2190 |
umull v13.2d, v25.2s, v18.2s |
| 2191 |
|
| 2192 |
usra v10.2d, v9.2d, #29 |
| 2193 |
and v9.16b, v9.16b, v29.16b |
| 2194 |
xtn v9.2s, v9.2d |
| 2195 |
umull v9.2d, v9.2s, v30.2s |
| 2196 |
add v0.2d, v0.2d, v9.2d |
| 2197 |
|
| 2198 |
usra v11.2d, v10.2d, #29 |
| 2199 |
and v10.16b, v10.16b, v29.16b |
| 2200 |
xtn v10.2s, v10.2d |
| 2201 |
umull v10.2d, v10.2s, v30.2s |
| 2202 |
add v1.2d, v1.2d, v10.2d |
| 2203 |
|
| 2204 |
umlal v12.2d, v16.2s, v16.2s |
| 2205 |
umlal v13.2d, v26.2s, v17.2s |
| 2206 |
umull v24.2d, v26.2s, v18.2s |
| 2207 |
|
| 2208 |
usra v12.2d, v11.2d, #29 |
| 2209 |
and v11.16b, v11.16b, v29.16b |
| 2210 |
xtn v11.2s, v11.2d |
| 2211 |
umull v11.2d, v11.2s, v30.2s |
| 2212 |
add v2.2d, v2.2d, v11.2d |
| 2213 |
|
| 2214 |
usra v13.2d, v12.2d, #29 |
| 2215 |
and v12.16b, v12.16b, v29.16b |
| 2216 |
xtn v12.2s, v12.2d |
| 2217 |
umull v12.2d, v12.2s, v30.2s |
| 2218 |
add v3.2d, v3.2d, v12.2d |
| 2219 |
|
| 2220 |
umlal v24.2d, v17.2s, v17.2s |
| 2221 |
umull v15.2d, v27.2s, v18.2s |
| 2222 |
|
| 2223 |
usra v24.2d, v13.2d, #29 |
| 2224 |
and v13.16b, v13.16b, v29.16b |
| 2225 |
xtn v13.2s, v13.2d |
| 2226 |
umull v13.2d, v13.2s, v30.2s |
| 2227 |
add v4.2d, v4.2d, v13.2d |
| 2228 |
|
| 2229 |
usra v15.2d, v24.2d, #29 |
| 2230 |
and v24.16b, v24.16b, v29.16b |
| 2231 |
xtn v24.2s, v24.2d |
| 2232 |
umull v24.2d, v24.2s, v30.2s |
| 2233 |
add v5.2d, v5.2d, v24.2d |
| 2234 |
|
| 2235 |
umull v16.2d, v18.2s, v18.2s |
| 2236 |
|
| 2237 |
usra v16.2d, v15.2d, #29 |
| 2238 |
and v15.16b, v15.16b, v29.16b |
| 2239 |
xtn v15.2s, v15.2d |
| 2240 |
umull v15.2d, v15.2s, v30.2s |
| 2241 |
add v6.2d, v6.2d, v15.2d |
| 2242 |
|
| 2243 |
ushr v9.2d, v16.2d, #29 |
| 2244 |
and v16.16b, v16.16b, v29.16b |
| 2245 |
xtn v16.2s, v16.2d |
| 2246 |
umull v16.2d, v16.2s, v30.2s |
| 2247 |
add v7.2d, v7.2d, v16.2d |
| 2248 |
|
| 2249 |
xtn v9.2s, v9.2d |
| 2250 |
umull v9.2d, v9.2s, v30.2s |
| 2251 |
add v8.2d, v8.2d, v9.2d |
| 2252 |
|
| 2253 |
lsr x19, x29, #6 |
| 2254 |
dup v30.2d, x19 |
| 2255 |
|
| 2256 |
usra v5.2d, v4.2d, #29 |
| 2257 |
and v4.16b, v4.16b, v29.16b |
| 2258 |
|
| 2259 |
usra v1.2d, v0.2d, #29 |
| 2260 |
and v0.16b, v0.16b, v29.16b |
| 2261 |
|
| 2262 |
usra v6.2d, v5.2d, #29 |
| 2263 |
and v25.16b, v5.16b, v29.16b |
| 2264 |
|
| 2265 |
usra v2.2d, v1.2d, #29 |
| 2266 |
and v21.16b, v1.16b, v29.16b |
| 2267 |
|
| 2268 |
usra v7.2d, v6.2d, #29 |
| 2269 |
and v26.16b, v6.16b, v29.16b |
| 2270 |
|
| 2271 |
usra v3.2d, v2.2d, #29 |
| 2272 |
and v22.16b, v2.16b, v29.16b |
| 2273 |
|
| 2274 |
usra v8.2d, v7.2d, #29 |
| 2275 |
and v7.16b, v7.16b, v29.16b |
| 2276 |
|
| 2277 |
umlal v7.2d, v23.2s, v14.2s |
| 2278 |
usra v8.2d, v7.2d, #29 |
| 2279 |
and v27.16b, v7.16b, v29.16b |
| 2280 |
|
| 2281 |
usra v4.2d, v3.2d, #29 |
| 2282 |
and v23.16b, v3.16b, v29.16b |
| 2283 |
|
| 2284 |
bic v10.16b, v8.16b, v30.16b |
| 2285 |
usra v0.2d, v10.2d, #23 |
| 2286 |
usra v0.2d, v10.2d, #22 |
| 2287 |
usra v0.2d, v10.2d, #19 |
| 2288 |
and v28.16b, v8.16b, v30.16b |
| 2289 |
|
| 2290 |
usra v25.2d, v4.2d, #29 |
| 2291 |
and v24.16b, v4.16b, v29.16b |
| 2292 |
|
| 2293 |
usra v21.2d, v0.2d, #29 |
| 2294 |
and v20.16b, v0.16b, v29.16b |
| 2295 |
|
| 2296 |
zip2 v0.4s, v20.4s, v21.4s |
| 2297 |
zip2 v1.4s, v22.4s, v23.4s |
| 2298 |
zip2 v2.4s, v24.4s, v25.4s |
| 2299 |
zip2 v3.4s, v26.4s, v27.4s |
| 2300 |
zip2 v4.4s, v28.4s, v29.4s |
| 2301 |
|
| 2302 |
stp d0, d1, [sp, #304] |
| 2303 |
stp d2, d3, [sp, #320] |
| 2304 |
str d4, [sp, #336] |
| 2305 |
|
| 2306 |
// T2 ← T2^2 |
| 2307 |
ldp w10, w11, [sp, #208] |
| 2308 |
ldp w12, w13, [sp, #216] |
| 2309 |
ldp w14, w15, [sp, #224] |
| 2310 |
ldp w16, w17, [sp, #232] |
| 2311 |
ldr w18, [sp, #240] |
| 2312 |
|
| 2313 |
add w20, w10, w10 |
| 2314 |
add w21, w11, w11 |
| 2315 |
add w22, w12, w12 |
| 2316 |
add w23, w13, w13 |
| 2317 |
add w24, w14, w14 |
| 2318 |
add w25, w15, w15 |
| 2319 |
add w26, w16, w16 |
| 2320 |
add w27, w17, w17 |
| 2321 |
|
| 2322 |
umull x0, w10, w10 |
| 2323 |
umull x1, w20, w11 |
| 2324 |
umull x2, w20, w12 |
| 2325 |
umull x3, w20, w13 |
| 2326 |
umull x4, w20, w14 |
| 2327 |
umull x5, w20, w15 |
| 2328 |
umull x6, w20, w16 |
| 2329 |
umull x7, w20, w17 |
| 2330 |
umull x8, w20, w18 |
| 2331 |
|
| 2332 |
umaddl x2, w11, w11, x2 |
| 2333 |
umaddl x3, w21, w12, x3 |
| 2334 |
umaddl x4, w21, w13, x4 |
| 2335 |
umaddl x5, w21, w14, x5 |
| 2336 |
umaddl x6, w21, w15, x6 |
| 2337 |
umaddl x7, w21, w16, x7 |
| 2338 |
umaddl x8, w21, w17, x8 |
| 2339 |
umull x9, w21, w18 |
| 2340 |
|
| 2341 |
umaddl x4, w12, w12, x4 |
| 2342 |
umaddl x5, w22, w13, x5 |
| 2343 |
umaddl x6, w22, w14, x6 |
| 2344 |
umaddl x7, w22, w15, x7 |
| 2345 |
umaddl x8, w22, w16, x8 |
| 2346 |
umaddl x9, w22, w17, x9 |
| 2347 |
umull x10, w22, w18 |
| 2348 |
|
| 2349 |
umaddl x6, w13, w13, x6 |
| 2350 |
umaddl x8, w23, w15, x8 |
| 2351 |
umaddl x9, w23, w16, x9 |
| 2352 |
umaddl x10, w23, w17, x10 |
| 2353 |
umull x11, w23, w18 |
| 2354 |
|
| 2355 |
umaddl x8, w14, w14, x8 |
| 2356 |
umaddl x9, w24, w15, x9 |
| 2357 |
umaddl x10, w24, w16, x10 |
| 2358 |
umaddl x11, w24, w17, x11 |
| 2359 |
umull x12, w24, w18 |
| 2360 |
|
| 2361 |
umaddl x10, w15, w15, x10 |
| 2362 |
umaddl x11, w25, w16, x11 |
| 2363 |
umaddl x12, w25, w17, x12 |
| 2364 |
umull x13, w25, w18 |
| 2365 |
|
| 2366 |
add x10, x10, x9, lsr #29 |
| 2367 |
and x9, x9, #0x1fffffff |
| 2368 |
umull x9, w9, w30 |
| 2369 |
add x0, x0, x9 |
| 2370 |
|
| 2371 |
add x11, x11, x10, lsr #29 |
| 2372 |
and x10, x10, #0x1fffffff |
| 2373 |
umull x10, w10, w30 |
| 2374 |
add x1, x1, x10 |
| 2375 |
|
| 2376 |
umaddl x12, w16, w16, x12 |
| 2377 |
umaddl x13, w26, w17, x13 |
| 2378 |
umull x24, w26, w18 |
| 2379 |
|
| 2380 |
add x12, x12, x11, lsr #29 |
| 2381 |
and x11, x11, #0x1fffffff |
| 2382 |
umull x11, w11, w30 |
| 2383 |
add x2, x2, x11 |
| 2384 |
|
| 2385 |
add x13, x13, x12, lsr #29 |
| 2386 |
and x12, x12, #0x1fffffff |
| 2387 |
umull x12, w12, w30 |
| 2388 |
add x3, x3, x12 |
| 2389 |
|
| 2390 |
umaddl x24, w17, w17, x24 |
| 2391 |
umull x15, w27, w18 |
| 2392 |
|
| 2393 |
add x24, x24, x13, lsr #29 |
| 2394 |
and x13, x13, #0x1fffffff |
| 2395 |
umull x13, w13, w30 |
| 2396 |
add x4, x4, x13 |
| 2397 |
|
| 2398 |
add x15, x15, x24, lsr #29 |
| 2399 |
and x24, x24, #0x1fffffff |
| 2400 |
umull x24, w24, w30 |
| 2401 |
add x5, x5, x24 |
| 2402 |
|
| 2403 |
umull x16, w18, w18 |
| 2404 |
|
| 2405 |
add x16, x16, x15, lsr #29 |
| 2406 |
and x15, x15, #0x1fffffff |
| 2407 |
umull x15, w15, w30 |
| 2408 |
add x6, x6, x15 |
| 2409 |
|
| 2410 |
lsr x9, x16, #29 |
| 2411 |
and x16, x16, #0x1fffffff |
| 2412 |
umull x16, w16, w30 |
| 2413 |
add x7, x7, x16 |
| 2414 |
|
| 2415 |
umull x9, w9, w30 |
| 2416 |
add x8, x8, x9 |
| 2417 |
|
| 2418 |
add x5, x5, x4, lsr #29 |
| 2419 |
and x4, x4, 0x1fffffff |
| 2420 |
|
| 2421 |
add x1, x1, x0, lsr #29 |
| 2422 |
and x0, x0, 0x1fffffff |
| 2423 |
|
| 2424 |
add x6, x6, x5, lsr #29 |
| 2425 |
and x5, x5, 0x1fffffff |
| 2426 |
|
| 2427 |
add x2, x2, x1, lsr #29 |
| 2428 |
and x1, x1, 0x1fffffff |
| 2429 |
|
| 2430 |
add x7, x7, x6, lsr #29 |
| 2431 |
and x6, x6, 0x1fffffff |
| 2432 |
|
| 2433 |
add x3, x3, x2, lsr #29 |
| 2434 |
and x2, x2, 0x1fffffff |
| 2435 |
|
| 2436 |
add x8, x8, x7, lsr #29 |
| 2437 |
and x7, x7, 0x1fffffff |
| 2438 |
|
| 2439 |
umaddl x7, w23, w14, x7 |
| 2440 |
add x8, x8, x7, lsr #29 |
| 2441 |
and x7, x7, 0x1fffffff |
| 2442 |
bfi x6, x7, #32, #29 |
| 2443 |
|
| 2444 |
add x4, x4, x3, lsr #29 |
| 2445 |
and x3, x3, 0x1fffffff |
| 2446 |
bfi x2, x3, #32, #29 |
| 2447 |
|
| 2448 |
bic x10, x8, #0x7fffff |
| 2449 |
add x0, x0, x10, lsr #23 |
| 2450 |
add x0, x0, x10, lsr #22 |
| 2451 |
add x0, x0, x10, lsr #19 |
| 2452 |
and x8, x8, #0x7fffff |
| 2453 |
|
| 2454 |
add x5, x5, x4, lsr #29 |
| 2455 |
and x4, x4, 0x1fffffff |
| 2456 |
bfi x4, x5, #32, #30 |
| 2457 |
|
| 2458 |
add x1, x1, x0, lsr #29 |
| 2459 |
and x0, x0, 0x1fffffff |
| 2460 |
bfi x0, x1, #32, #30 |
| 2461 |
|
| 2462 |
stp x0, x2, [sp, #352] |
| 2463 |
stp x4, x6, [sp, #368] |
| 2464 |
str x8, [sp, #384] |
| 2465 |
|
| 2466 |
// Z2 ← T1 - T2 |
| 2467 |
ldp x11, x13, [sp, #256] |
| 2468 |
ldp x15, x17, [sp, #272] |
| 2469 |
ldr x19, [sp, #288] |
| 2470 |
ldp x22, x21, [sp, #0] |
| 2471 |
|
| 2472 |
add x11, x11, x21 |
| 2473 |
add x13, x13, x22 |
| 2474 |
add x15, x15, x22 |
| 2475 |
add x17, x17, x22 |
| 2476 |
ldr x22, [sp, #448] |
| 2477 |
add x19, x19, x22 |
| 2478 |
|
| 2479 |
sub x10, x11, x0 |
| 2480 |
sub x12, x13, x2 |
| 2481 |
sub x14, x15, x4 |
| 2482 |
sub x16, x17, x6 |
| 2483 |
sub x18, x19, x8 |
| 2484 |
|
| 2485 |
lsr x11, x10, #32 |
| 2486 |
lsr x13, x12, #32 |
| 2487 |
lsr x15, x14, #32 |
| 2488 |
lsr x17, x16, #32 |
| 2489 |
|
| 2490 |
// T2 ← aZ2 + T2 |
| 2491 |
movz x20, #0xdb42 |
| 2492 |
movk x20, #0x0001, lsl 16 |
| 2493 |
mov w0, w0 |
| 2494 |
umaddl x0, w10, w20, x0 |
| 2495 |
umaddl x21, w11, w20, x1 |
| 2496 |
mov w2, w2 |
| 2497 |
umaddl x22, w12, w20, x2 |
| 2498 |
umaddl x23, w13, w20, x3 |
| 2499 |
mov w4, w4 |
| 2500 |
umaddl x24, w14, w20, x4 |
| 2501 |
umaddl x25, w15, w20, x5 |
| 2502 |
mov w6, w6 |
| 2503 |
umaddl x26, w16, w20, x6 |
| 2504 |
umaddl x27, w17, w20, x7 |
| 2505 |
umaddl x28, w18, w20, x8 |
| 2506 |
|
| 2507 |
add x25, x25, x24, lsr #29 |
| 2508 |
and x24, x24, 0x1fffffff |
| 2509 |
|
| 2510 |
add x21, x21, x0, lsr #29 |
| 2511 |
and x20, x0, 0x1fffffff |
| 2512 |
|
| 2513 |
add x26, x26, x25, lsr #29 |
| 2514 |
and x25, x25, 0x1fffffff |
| 2515 |
|
| 2516 |
add x22, x22, x21, lsr #29 |
| 2517 |
and x21, x21, 0x1fffffff |
| 2518 |
|
| 2519 |
add x27, x27, x26, lsr #29 |
| 2520 |
and x26, x26, 0x1fffffff |
| 2521 |
|
| 2522 |
add x23, x23, x22, lsr #29 |
| 2523 |
and x22, x22, 0x1fffffff |
| 2524 |
|
| 2525 |
add x28, x28, x27, lsr #29 |
| 2526 |
and x27, x27, 0x1fffffff |
| 2527 |
|
| 2528 |
add x24, x24, x23, lsr #29 |
| 2529 |
and x23, x23, 0x1fffffff |
| 2530 |
|
| 2531 |
bic x7, x28, #0x7fffff |
| 2532 |
add x20, x20, x7, lsr #23 |
| 2533 |
add x20, x20, x7, lsr #22 |
| 2534 |
add x20, x20, x7, lsr #19 |
| 2535 |
and x28, x28, #0x7fffff |
| 2536 |
|
| 2537 |
add x25, x25, x24, lsr #29 |
| 2538 |
and x24, x24, 0x1fffffff |
| 2539 |
|
| 2540 |
add x21, x21, x20, lsr #29 |
| 2541 |
and x20, x20, 0x1fffffff |
| 2542 |
|
| 2543 |
// Z2 ← Z2 · T2 |
| 2544 |
umull x0, w10, w20 |
| 2545 |
umull x1, w10, w21 |
| 2546 |
umull x2, w10, w22 |
| 2547 |
umull x3, w10, w23 |
| 2548 |
umull x4, w10, w24 |
| 2549 |
umull x5, w10, w25 |
| 2550 |
umull x6, w10, w26 |
| 2551 |
umull x7, w10, w27 |
| 2552 |
umull x8, w10, w28 |
| 2553 |
|
| 2554 |
umaddl x1, w11, w20, x1 |
| 2555 |
umaddl x2, w11, w21, x2 |
| 2556 |
umaddl x3, w11, w22, x3 |
| 2557 |
umaddl x4, w11, w23, x4 |
| 2558 |
umaddl x5, w11, w24, x5 |
| 2559 |
umaddl x6, w11, w25, x6 |
| 2560 |
umaddl x7, w11, w26, x7 |
| 2561 |
umaddl x8, w11, w27, x8 |
| 2562 |
umull x9, w11, w28 |
| 2563 |
|
| 2564 |
umaddl x2, w12, w20, x2 |
| 2565 |
umaddl x3, w12, w21, x3 |
| 2566 |
umaddl x4, w12, w22, x4 |
| 2567 |
umaddl x5, w12, w23, x5 |
| 2568 |
umaddl x6, w12, w24, x6 |
| 2569 |
umaddl x7, w12, w25, x7 |
| 2570 |
umaddl x8, w12, w26, x8 |
| 2571 |
umaddl x9, w12, w27, x9 |
| 2572 |
umull x10, w12, w28 |
| 2573 |
|
| 2574 |
umaddl x3, w13, w20, x3 |
| 2575 |
umaddl x4, w13, w21, x4 |
| 2576 |
umaddl x5, w13, w22, x5 |
| 2577 |
umaddl x6, w13, w23, x6 |
| 2578 |
umaddl x7, w13, w24, x7 |
| 2579 |
umaddl x8, w13, w25, x8 |
| 2580 |
umaddl x9, w13, w26, x9 |
| 2581 |
umaddl x10, w13, w27, x10 |
| 2582 |
umull x11, w13, w28 |
| 2583 |
|
| 2584 |
umaddl x4, w14, w20, x4 |
| 2585 |
umaddl x5, w14, w21, x5 |
| 2586 |
umaddl x6, w14, w22, x6 |
| 2587 |
umaddl x7, w14, w23, x7 |
| 2588 |
umaddl x8, w14, w24, x8 |
| 2589 |
umaddl x9, w14, w25, x9 |
| 2590 |
umaddl x10, w14, w26, x10 |
| 2591 |
umaddl x11, w14, w27, x11 |
| 2592 |
umull x12, w14, w28 |
| 2593 |
|
| 2594 |
umaddl x5, w15, w20, x5 |
| 2595 |
umaddl x6, w15, w21, x6 |
| 2596 |
umaddl x7, w15, w22, x7 |
| 2597 |
umaddl x8, w15, w23, x8 |
| 2598 |
umaddl x9, w15, w24, x9 |
| 2599 |
umaddl x10, w15, w25, x10 |
| 2600 |
umaddl x11, w15, w26, x11 |
| 2601 |
umaddl x12, w15, w27, x12 |
| 2602 |
umull x13, w15, w28 |
| 2603 |
|
| 2604 |
umaddl x6, w16, w20, x6 |
| 2605 |
umaddl x7, w16, w21, x7 |
| 2606 |
umaddl x8, w16, w22, x8 |
| 2607 |
umaddl x9, w16, w23, x9 |
| 2608 |
umaddl x10, w16, w24, x10 |
| 2609 |
umaddl x11, w16, w25, x11 |
| 2610 |
umaddl x12, w16, w26, x12 |
| 2611 |
umaddl x13, w16, w27, x13 |
| 2612 |
umull x14, w16, w28 |
| 2613 |
|
| 2614 |
umaddl x7, w17, w20, x7 |
| 2615 |
umaddl x8, w17, w21, x8 |
| 2616 |
umaddl x9, w17, w22, x9 |
| 2617 |
umaddl x10, w17, w23, x10 |
| 2618 |
umaddl x11, w17, w24, x11 |
| 2619 |
umaddl x12, w17, w25, x12 |
| 2620 |
umaddl x13, w17, w26, x13 |
| 2621 |
umaddl x14, w17, w27, x14 |
| 2622 |
umull x15, w17, w28 |
| 2623 |
|
| 2624 |
umaddl x8, w18, w20, x8 |
| 2625 |
umaddl x9, w18, w21, x9 |
| 2626 |
umaddl x10, w18, w22, x10 |
| 2627 |
umaddl x11, w18, w23, x11 |
| 2628 |
umaddl x12, w18, w24, x12 |
| 2629 |
umaddl x13, w18, w25, x13 |
| 2630 |
umaddl x14, w18, w26, x14 |
| 2631 |
umaddl x15, w18, w27, x15 |
| 2632 |
umull x16, w18, w28 |
| 2633 |
|
| 2634 |
add x10, x10, x9, lsr #29 |
| 2635 |
and x9, x9, #0x1fffffff |
| 2636 |
umull x9, w9, w30 |
| 2637 |
add x0, x0, x9 |
| 2638 |
|
| 2639 |
add x11, x11, x10, lsr #29 |
| 2640 |
and x10, x10, #0x1fffffff |
| 2641 |
umull x10, w10, w30 |
| 2642 |
add x1, x1, x10 |
| 2643 |
|
| 2644 |
add x12, x12, x11, lsr #29 |
| 2645 |
and x11, x11, #0x1fffffff |
| 2646 |
umull x11, w11, w30 |
| 2647 |
add x2, x2, x11 |
| 2648 |
|
| 2649 |
add x13, x13, x12, lsr #29 |
| 2650 |
and x12, x12, #0x1fffffff |
| 2651 |
umull x12, w12, w30 |
| 2652 |
add x3, x3, x12 |
| 2653 |
|
| 2654 |
add x14, x14, x13, lsr #29 |
| 2655 |
and x13, x13, #0x1fffffff |
| 2656 |
umull x13, w13, w30 |
| 2657 |
add x4, x4, x13 |
| 2658 |
|
| 2659 |
add x15, x15, x14, lsr #29 |
| 2660 |
and x14, x14, #0x1fffffff |
| 2661 |
umull x14, w14, w30 |
| 2662 |
add x5, x5, x14 |
| 2663 |
|
| 2664 |
add x16, x16, x15, lsr #29 |
| 2665 |
and x15, x15, #0x1fffffff |
| 2666 |
umull x15, w15, w30 |
| 2667 |
add x6, x6, x15 |
| 2668 |
|
| 2669 |
lsr x9, x16, #29 |
| 2670 |
and x16, x16, #0x1fffffff |
| 2671 |
umull x16, w16, w30 |
| 2672 |
add x7, x7, x16 |
| 2673 |
|
| 2674 |
umull x9, w9, w30 |
| 2675 |
add x8, x8, x9 |
| 2676 |
|
| 2677 |
add x5, x5, x4, lsr #29 |
| 2678 |
and x4, x4, 0x1fffffff |
| 2679 |
|
| 2680 |
add x1, x1, x0, lsr #29 |
| 2681 |
and x0, x0, 0x1fffffff |
| 2682 |
|
| 2683 |
add x6, x6, x5, lsr #29 |
| 2684 |
and x5, x5, 0x1fffffff |
| 2685 |
|
| 2686 |
add x2, x2, x1, lsr #29 |
| 2687 |
and x1, x1, 0x1fffffff |
| 2688 |
|
| 2689 |
add x7, x7, x6, lsr #29 |
| 2690 |
and x6, x6, 0x1fffffff |
| 2691 |
|
| 2692 |
add x3, x3, x2, lsr #29 |
| 2693 |
and x2, x2, 0x1fffffff |
| 2694 |
|
| 2695 |
add x8, x8, x7, lsr #29 |
| 2696 |
and x7, x7, 0x1fffffff |
| 2697 |
bfi x6, x7, #32, #29 |
| 2698 |
|
| 2699 |
add x4, x4, x3, lsr #29 |
| 2700 |
and x3, x3, 0x1fffffff |
| 2701 |
bfi x2, x3, #32, #29 |
| 2702 |
|
| 2703 |
bic x10, x8, #0x7fffff |
| 2704 |
add x0, x0, x10, lsr #23 |
| 2705 |
add x0, x0, x10, lsr #22 |
| 2706 |
add x0, x0, x10, lsr #19 |
| 2707 |
and x8, x8, #0x7fffff |
| 2708 |
|
| 2709 |
add x5, x5, x4, lsr #29 |
| 2710 |
and x4, x4, 0x1fffffff |
| 2711 |
bfi x4, x5, #32, #30 |
| 2712 |
|
| 2713 |
add x1, x1, x0, lsr #29 |
| 2714 |
and x0, x0, 0x1fffffff |
| 2715 |
bfi x0, x1, #32, #30 |
| 2716 |
|
| 2717 |
// inputs <Z3,T1> and <X1,T2> |
| 2718 |
add x10, sp, #256 |
| 2719 |
add x11, sp, #400 |
| 2720 |
add x12, sp, #352 |
| 2721 |
|
| 2722 |
ld2 {v20.s, v21.s}[1], [x10], #8 |
| 2723 |
ld2 {v10.s, v11.s}[0], [x11], #8 |
| 2724 |
ld2 {v10.s, v11.s}[1], [x12], #8 |
| 2725 |
|
| 2726 |
ld2 {v22.s, v23.s}[1], [x10], #8 |
| 2727 |
ld2 {v12.s, v13.s}[0], [x11], #8 |
| 2728 |
ld2 {v12.s, v13.s}[1], [x12], #8 |
| 2729 |
|
| 2730 |
ld2 {v24.s, v25.s}[1], [x10], #8 |
| 2731 |
ld2 {v14.s, v15.s}[0], [x11], #8 |
| 2732 |
ld2 {v14.s, v15.s}[1], [x12], #8 |
| 2733 |
|
| 2734 |
ld2 {v26.s, v27.s}[1], [x10], #8 |
| 2735 |
ld2 {v16.s, v17.s}[0], [x11], #8 |
| 2736 |
ld2 {v16.s, v17.s}[1], [x12], #8 |
| 2737 |
|
| 2738 |
ld2 {v28.s, v29.s}[1], [x10], #8 |
| 2739 |
ld2 {v18.s, v19.s}[0], [x11], #8 |
| 2740 |
ld2 {v18.s, v19.s}[1], [x12], #8 |
| 2741 |
|
| 2742 |
// <Z3,X2> ← Mul(<Z3,T1>,<X1,T2>) |
| 2743 |
dup v29.2d, x29 |
| 2744 |
dup v30.2s, w30 |
| 2745 |
|
| 2746 |
umull v0.2d, v10.2s, v20.2s |
| 2747 |
umull v1.2d, v10.2s, v21.2s |
| 2748 |
umull v2.2d, v10.2s, v22.2s |
| 2749 |
umull v3.2d, v10.2s, v23.2s |
| 2750 |
umull v4.2d, v10.2s, v24.2s |
| 2751 |
umull v5.2d, v10.2s, v25.2s |
| 2752 |
umull v6.2d, v10.2s, v26.2s |
| 2753 |
umull v7.2d, v10.2s, v27.2s |
| 2754 |
umull v8.2d, v10.2s, v28.2s |
| 2755 |
|
| 2756 |
umlal v1.2d, v11.2s, v20.2s |
| 2757 |
umlal v2.2d, v11.2s, v21.2s |
| 2758 |
umlal v3.2d, v11.2s, v22.2s |
| 2759 |
umlal v4.2d, v11.2s, v23.2s |
| 2760 |
umlal v5.2d, v11.2s, v24.2s |
| 2761 |
umlal v6.2d, v11.2s, v25.2s |
| 2762 |
umlal v7.2d, v11.2s, v26.2s |
| 2763 |
umlal v8.2d, v11.2s, v27.2s |
| 2764 |
umull v9.2d, v11.2s, v28.2s |
| 2765 |
|
| 2766 |
umlal v2.2d, v12.2s, v20.2s |
| 2767 |
umlal v3.2d, v12.2s, v21.2s |
| 2768 |
umlal v4.2d, v12.2s, v22.2s |
| 2769 |
umlal v5.2d, v12.2s, v23.2s |
| 2770 |
umlal v6.2d, v12.2s, v24.2s |
| 2771 |
umlal v7.2d, v12.2s, v25.2s |
| 2772 |
umlal v8.2d, v12.2s, v26.2s |
| 2773 |
umlal v9.2d, v12.2s, v27.2s |
| 2774 |
umull v10.2d, v12.2s, v28.2s |
| 2775 |
|
| 2776 |
umlal v3.2d, v13.2s, v20.2s |
| 2777 |
umlal v4.2d, v13.2s, v21.2s |
| 2778 |
umlal v5.2d, v13.2s, v22.2s |
| 2779 |
umlal v6.2d, v13.2s, v23.2s |
| 2780 |
umlal v7.2d, v13.2s, v24.2s |
| 2781 |
umlal v8.2d, v13.2s, v25.2s |
| 2782 |
umlal v9.2d, v13.2s, v26.2s |
| 2783 |
umlal v10.2d, v13.2s, v27.2s |
| 2784 |
umull v11.2d, v13.2s, v28.2s |
| 2785 |
|
| 2786 |
umlal v4.2d, v14.2s, v20.2s |
| 2787 |
umlal v5.2d, v14.2s, v21.2s |
| 2788 |
umlal v6.2d, v14.2s, v22.2s |
| 2789 |
umlal v7.2d, v14.2s, v23.2s |
| 2790 |
umlal v8.2d, v14.2s, v24.2s |
| 2791 |
umlal v9.2d, v14.2s, v25.2s |
| 2792 |
umlal v10.2d, v14.2s, v26.2s |
| 2793 |
umlal v11.2d, v14.2s, v27.2s |
| 2794 |
umull v12.2d, v14.2s, v28.2s |
| 2795 |
|
| 2796 |
umlal v5.2d, v15.2s, v20.2s |
| 2797 |
umlal v6.2d, v15.2s, v21.2s |
| 2798 |
umlal v7.2d, v15.2s, v22.2s |
| 2799 |
umlal v8.2d, v15.2s, v23.2s |
| 2800 |
umlal v9.2d, v15.2s, v24.2s |
| 2801 |
umlal v10.2d, v15.2s, v25.2s |
| 2802 |
umlal v11.2d, v15.2s, v26.2s |
| 2803 |
umlal v12.2d, v15.2s, v27.2s |
| 2804 |
umull v13.2d, v15.2s, v28.2s |
| 2805 |
|
| 2806 |
umlal v6.2d, v16.2s, v20.2s |
| 2807 |
umlal v7.2d, v16.2s, v21.2s |
| 2808 |
umlal v8.2d, v16.2s, v22.2s |
| 2809 |
umlal v9.2d, v16.2s, v23.2s |
| 2810 |
umlal v10.2d, v16.2s, v24.2s |
| 2811 |
umlal v11.2d, v16.2s, v25.2s |
| 2812 |
umlal v12.2d, v16.2s, v26.2s |
| 2813 |
umlal v13.2d, v16.2s, v27.2s |
| 2814 |
umull v14.2d, v16.2s, v28.2s |
| 2815 |
|
| 2816 |
umlal v7.2d, v17.2s, v20.2s |
| 2817 |
umlal v8.2d, v17.2s, v21.2s |
| 2818 |
umlal v9.2d, v17.2s, v22.2s |
| 2819 |
umlal v10.2d, v17.2s, v23.2s |
| 2820 |
umlal v11.2d, v17.2s, v24.2s |
| 2821 |
umlal v12.2d, v17.2s, v25.2s |
| 2822 |
umlal v13.2d, v17.2s, v26.2s |
| 2823 |
umlal v14.2d, v17.2s, v27.2s |
| 2824 |
umull v15.2d, v17.2s, v28.2s |
| 2825 |
|
| 2826 |
umlal v8.2d, v18.2s, v20.2s |
| 2827 |
umlal v9.2d, v18.2s, v21.2s |
| 2828 |
umlal v10.2d, v18.2s, v22.2s |
| 2829 |
umlal v11.2d, v18.2s, v23.2s |
| 2830 |
umlal v12.2d, v18.2s, v24.2s |
| 2831 |
umlal v13.2d, v18.2s, v25.2s |
| 2832 |
umlal v14.2d, v18.2s, v26.2s |
| 2833 |
umlal v15.2d, v18.2s, v27.2s |
| 2834 |
umull v16.2d, v18.2s, v28.2s |
| 2835 |
|
| 2836 |
usra v10.2d, v9.2d, #29 |
| 2837 |
and v9.16b, v9.16b, v29.16b |
| 2838 |
xtn v9.2s, v9.2d |
| 2839 |
umull v9.2d, v9.2s, v30.2s |
| 2840 |
add v0.2d, v0.2d, v9.2d |
| 2841 |
|
| 2842 |
usra v11.2d, v10.2d, #29 |
| 2843 |
and v10.16b, v10.16b, v29.16b |
| 2844 |
xtn v10.2s, v10.2d |
| 2845 |
umull v10.2d, v10.2s, v30.2s |
| 2846 |
add v1.2d, v1.2d, v10.2d |
| 2847 |
|
| 2848 |
usra v12.2d, v11.2d, #29 |
| 2849 |
and v11.16b, v11.16b, v29.16b |
| 2850 |
xtn v11.2s, v11.2d |
| 2851 |
umull v11.2d, v11.2s, v30.2s |
| 2852 |
add v2.2d, v2.2d, v11.2d |
| 2853 |
|
| 2854 |
usra v13.2d, v12.2d, #29 |
| 2855 |
and v12.16b, v12.16b, v29.16b |
| 2856 |
xtn v12.2s, v12.2d |
| 2857 |
umull v12.2d, v12.2s, v30.2s |
| 2858 |
add v3.2d, v3.2d, v12.2d |
| 2859 |
|
| 2860 |
usra v14.2d, v13.2d, #29 |
| 2861 |
and v13.16b, v13.16b, v29.16b |
| 2862 |
xtn v13.2s, v13.2d |
| 2863 |
umull v13.2d, v13.2s, v30.2s |
| 2864 |
add v4.2d, v4.2d, v13.2d |
| 2865 |
|
| 2866 |
usra v15.2d, v14.2d, #29 |
| 2867 |
and v14.16b, v14.16b, v29.16b |
| 2868 |
xtn v14.2s, v14.2d |
| 2869 |
umull v14.2d, v14.2s, v30.2s |
| 2870 |
add v5.2d, v5.2d, v14.2d |
| 2871 |
|
| 2872 |
usra v16.2d, v15.2d, #29 |
| 2873 |
and v15.16b, v15.16b, v29.16b |
| 2874 |
xtn v15.2s, v15.2d |
| 2875 |
umull v15.2d, v15.2s, v30.2s |
| 2876 |
add v6.2d, v6.2d, v15.2d |
| 2877 |
|
| 2878 |
ushr v9.2d, v16.2d, #29 |
| 2879 |
and v16.16b, v16.16b, v29.16b |
| 2880 |
xtn v16.2s, v16.2d |
| 2881 |
umull v16.2d, v16.2s, v30.2s |
| 2882 |
add v7.2d, v7.2d, v16.2d |
| 2883 |
|
| 2884 |
xtn v9.2s, v9.2d |
| 2885 |
umull v9.2d, v9.2s, v30.2s |
| 2886 |
add v8.2d, v8.2d, v9.2d |
| 2887 |
|
| 2888 |
lsr x19, x29, #6 |
| 2889 |
dup v30.2d, x19 |
| 2890 |
|
| 2891 |
usra v5.2d, v4.2d, #29 |
| 2892 |
and v4.16b, v4.16b, v29.16b |
| 2893 |
|
| 2894 |
usra v1.2d, v0.2d, #29 |
| 2895 |
and v0.16b, v0.16b, v29.16b |
| 2896 |
|
| 2897 |
usra v6.2d, v5.2d, #29 |
| 2898 |
and v5.16b, v5.16b, v29.16b |
| 2899 |
|
| 2900 |
usra v2.2d, v1.2d, #29 |
| 2901 |
and v1.16b, v1.16b, v29.16b |
| 2902 |
|
| 2903 |
usra v7.2d, v6.2d, #29 |
| 2904 |
and v6.16b, v6.16b, v29.16b |
| 2905 |
|
| 2906 |
usra v3.2d, v2.2d, #29 |
| 2907 |
and v2.16b, v2.16b, v29.16b |
| 2908 |
|
| 2909 |
usra v8.2d, v7.2d, #29 |
| 2910 |
and v7.16b, v7.16b, v29.16b |
| 2911 |
|
| 2912 |
usra v4.2d, v3.2d, #29 |
| 2913 |
and v3.16b, v3.16b, v29.16b |
| 2914 |
|
| 2915 |
bic v10.16b, v8.16b, v30.16b |
| 2916 |
usra v0.2d, v10.2d, #23 |
| 2917 |
usra v0.2d, v10.2d, #22 |
| 2918 |
usra v0.2d, v10.2d, #19 |
| 2919 |
and v8.16b, v8.16b, v30.16b |
| 2920 |
|
| 2921 |
usra v5.2d, v4.2d, #29 |
| 2922 |
and v4.16b, v4.16b, v29.16b |
| 2923 |
|
| 2924 |
usra v1.2d, v0.2d, #29 |
| 2925 |
and v0.16b, v0.16b, v29.16b |
| 2926 |
|
| 2927 |
// Z3 |
| 2928 |
mov v20.s[0], v0.s[0] |
| 2929 |
mov v20.s[1], v1.s[0] |
| 2930 |
mov v22.s[0], v2.s[0] |
| 2931 |
mov v22.s[1], v3.s[0] |
| 2932 |
mov v24.s[0], v4.s[0] |
| 2933 |
mov v24.s[1], v5.s[0] |
| 2934 |
mov v26.s[0], v6.s[0] |
| 2935 |
mov v26.s[1], v7.s[0] |
| 2936 |
mov v28.s[0], v8.s[0] |
| 2937 |
mov v28.s[1], wzr |
| 2938 |
|
| 2939 |
// X2 |
| 2940 |
mov v11.s[0], v0.s[2] |
| 2941 |
mov v11.s[1], v1.s[2] |
| 2942 |
mov v13.s[0], v2.s[2] |
| 2943 |
mov v13.s[1], v3.s[2] |
| 2944 |
mov v15.s[0], v4.s[2] |
| 2945 |
mov v15.s[1], v5.s[2] |
| 2946 |
mov v17.s[0], v6.s[2] |
| 2947 |
mov v17.s[1], v7.s[2] |
| 2948 |
mov v19.s[0], v8.s[2] |
| 2949 |
mov v19.s[1], wzr |
| 2950 |
|
| 2951 |
// Z2 |
| 2952 |
mov v10.d[0], x0 |
| 2953 |
mov v12.d[0], x2 |
| 2954 |
mov v14.d[0], x4 |
| 2955 |
mov v16.d[0], x6 |
| 2956 |
mov v18.d[0], x8 |
| 2957 |
|
| 2958 |
// X3 |
| 2959 |
ldp d21, d23, [sp, #304] |
| 2960 |
ldp d25, d27, [sp, #320] |
| 2961 |
ldr d29, [sp, #336] |
| 2962 |
|
| 2963 |
bpl .L1 |
| 2964 |
|
| 2965 |
ldr x0, [sp, #176] |
| 2966 |
|
| 2967 |
// X2 |
| 2968 |
mov w10, v11.s[0] |
| 2969 |
mov w11, v11.s[1] |
| 2970 |
mov w12, v13.s[0] |
| 2971 |
mov w13, v13.s[1] |
| 2972 |
mov w14, v15.s[0] |
| 2973 |
mov w15, v15.s[1] |
| 2974 |
mov w16, v17.s[0] |
| 2975 |
mov w17, v17.s[1] |
| 2976 |
mov w18, v19.s[0] |
| 2977 |
|
| 2978 |
stp w13, w17, [x0, #0] |
| 2979 |
stp w14, w18, [x0, #8] |
| 2980 |
stp w15, w10, [x0, #16] |
| 2981 |
stp w16, w11, [x0, #24] |
| 2982 |
stp w12, wzr, [x0, #32] |
| 2983 |
|
| 2984 |
// Z2 |
| 2985 |
mov w10, v10.s[0] |
| 2986 |
mov w11, v10.s[1] |
| 2987 |
mov w12, v12.s[0] |
| 2988 |
mov w13, v12.s[1] |
| 2989 |
mov w14, v14.s[0] |
| 2990 |
mov w15, v14.s[1] |
| 2991 |
mov w16, v16.s[0] |
| 2992 |
mov w17, v16.s[1] |
| 2993 |
mov w18, v18.s[0] |
| 2994 |
|
| 2995 |
stp w13, w17, [x0, #40] |
| 2996 |
stp w14, w18, [x0, #48] |
| 2997 |
stp w15, w10, [x0, #56] |
| 2998 |
stp w16, w11, [x0, #64] |
| 2999 |
stp w12, wzr, [x0, #72] |
| 3000 |
|
| 3001 |
ldp d14, d15, [sp, #160] |
| 3002 |
ldp d12, d13, [sp, #144] |
| 3003 |
ldp d10, d11, [sp, #128] |
| 3004 |
ldp d8, d9, [sp, #112] |
| 3005 |
ldp x29, x30, [sp, #96] |
| 3006 |
ldp x27, x28, [sp, #80] |
| 3007 |
ldp x25, x26, [sp, #64] |
| 3008 |
ldp x23, x24, [sp, #48] |
| 3009 |
ldp x21, x22, [sp, #32] |
| 3010 |
ldp x19, x20, [sp, #16] |
| 3011 |
add sp, sp, #464 |
| 3012 |
|
| 3013 |
ret |
| 3014 |
#endif |
| 3015 |
.section .note.GNU-stack,"",@progbits |