| 1 |
#include "crypto_asm_hidden.h" |
| 2 |
// linker define mladder |
| 3 |
|
| 4 |
/* Assembly for Montgomery ladder */ |
| 5 |
|
| 6 |
.p2align 4 |
| 7 |
ASM_HIDDEN _CRYPTO_SHARED_NAMESPACE(mladder) |
| 8 |
.globl _CRYPTO_SHARED_NAMESPACE(mladder) |
| 9 |
ASM_HIDDEN CRYPTO_SHARED_NAMESPACE(mladder) |
| 10 |
.globl CRYPTO_SHARED_NAMESPACE(mladder) |
| 11 |
|
| 12 |
_CRYPTO_SHARED_NAMESPACE(mladder): |
| 13 |
CRYPTO_SHARED_NAMESPACE(mladder): |
| 14 |
|
| 15 |
sub sp, sp, #464 |
| 16 |
stp x19, x20, [sp, #16] |
| 17 |
stp x21, x22, [sp, #32] |
| 18 |
stp x23, x24, [sp, #48] |
| 19 |
stp x25, x26, [sp, #64] |
| 20 |
stp x27, x28, [sp, #80] |
| 21 |
stp x29, x30, [sp, #96] |
| 22 |
stp d8, d9, [sp, #112] |
| 23 |
stp d10, d11, [sp, #128] |
| 24 |
stp d12, d13, [sp, #144] |
| 25 |
stp d14, d15, [sp, #160] |
| 26 |
|
| 27 |
// clamp scalar |
| 28 |
ldr x3, [x2, #0] |
| 29 |
and x3, x3, #0xfffffffffffffff8 |
| 30 |
str x3, [x2, #0] |
| 31 |
ldr x4, [x2, #24] |
| 32 |
orr x4, x4, #0x4000000000000000 |
| 33 |
str x4, [x2, #24] |
| 34 |
|
| 35 |
stp x0, x2, [sp, #176] |
| 36 |
|
| 37 |
// load point |
| 38 |
ldp x4, x5, [x1, #0] |
| 39 |
ldp x6, x7, [x1, #16] |
| 40 |
|
| 41 |
// X1 |
| 42 |
and w8, w4, #0x1fffffff |
| 43 |
ubfx x9, x4, #29, #29 |
| 44 |
|
| 45 |
lsr x10, x4, #58 |
| 46 |
orr w10, w10, w5, lsl #6 |
| 47 |
and w10, w10, #0x1fffffff |
| 48 |
ubfx x11, x5, #23, #29 |
| 49 |
|
| 50 |
lsr x12, x5, #52 |
| 51 |
orr w12, w12, w6, lsl #12 |
| 52 |
and w12, w12, #0x1fffffff |
| 53 |
ubfx x13, x6, #17, #29 |
| 54 |
|
| 55 |
lsr x14, x6, #46 |
| 56 |
orr w14, w14, w7, lsl #18 |
| 57 |
and w14, w14, #0x1fffffff |
| 58 |
ubfx x15, x7, #11, #29 |
| 59 |
|
| 60 |
ubfx x16, x7, #40, #23 |
| 61 |
|
| 62 |
add x0, sp, #400 |
| 63 |
stp w8, w9, [x0, #0] |
| 64 |
stp w10, w11, [x0, #8] |
| 65 |
stp w12, w13, [x0, #16] |
| 66 |
stp w14, w15, [x0, #24] |
| 67 |
stp w16, wzr, [x0, #32] |
| 68 |
|
| 69 |
mov x20, #1 |
| 70 |
// X2 ← 1 |
| 71 |
mov v11.d[0], x20 |
| 72 |
mov v13.d[0], xzr |
| 73 |
mov v15.d[0], xzr |
| 74 |
mov v17.d[0], xzr |
| 75 |
mov v19.d[0], xzr |
| 76 |
|
| 77 |
// Z2 ← 0 |
| 78 |
mov v10.d[0], xzr |
| 79 |
mov v12.d[0], xzr |
| 80 |
mov v14.d[0], xzr |
| 81 |
mov v16.d[0], xzr |
| 82 |
mov v18.d[0], xzr |
| 83 |
|
| 84 |
// X3 ← X1 |
| 85 |
mov v21.s[0], w8 |
| 86 |
mov v21.s[1], w9 |
| 87 |
mov v23.s[0], w10 |
| 88 |
mov v23.s[1], w11 |
| 89 |
mov v25.s[0], w12 |
| 90 |
mov v25.s[1], w13 |
| 91 |
mov v27.s[0], w14 |
| 92 |
mov v27.s[1], w15 |
| 93 |
mov v29.s[0], w16 |
| 94 |
mov v29.s[1], wzr |
| 95 |
|
| 96 |
// Z3 ← 1 |
| 97 |
mov v20.d[0], x20 |
| 98 |
mov v22.d[0], xzr |
| 99 |
mov v24.d[0], xzr |
| 100 |
mov v26.d[0], xzr |
| 101 |
mov v28.d[0], xzr |
| 102 |
|
| 103 |
mov w30, #1216 |
| 104 |
dup v31.2s, w30 |
| 105 |
mov w29, #0x1fffffff |
| 106 |
dup v30.2d, x29 |
| 107 |
|
| 108 |
mov w5, #254 |
| 109 |
stp w5, wzr, [sp, #192] |
| 110 |
str xzr, [sp, #200] |
| 111 |
|
| 112 |
movz x1, #0xffda |
| 113 |
movk x1, #0x3fff, lsl 16 |
| 114 |
movk x1, #0xfffe, lsl 32 |
| 115 |
movk x1, #0x3fff, lsl 48 |
| 116 |
|
| 117 |
movz x2, #0xfffe |
| 118 |
movk x2, #0x3fff, lsl 16 |
| 119 |
movk x2, #0xfffe, lsl 32 |
| 120 |
movk x2, #0x3fff, lsl 48 |
| 121 |
|
| 122 |
movz x3, #0xfffe |
| 123 |
movk x3, #0x00ff, lsl 16 |
| 124 |
|
| 125 |
stp x2, x1, [sp, #0] |
| 126 |
str x3, [sp, #448] |
| 127 |
|
| 128 |
mov w1, #0xda |
| 129 |
strb w1, [sp, #440] |
| 130 |
|
| 131 |
// Montgomery ladder loop |
| 132 |
.L0: |
| 133 |
|
| 134 |
ldr d7, [sp, #8] |
| 135 |
ldr d8, [sp, #0] |
| 136 |
ldr d9, [sp, #448] |
| 137 |
|
| 138 |
// T1 = X2 + Z2, T2 = X2 - Z2 |
| 139 |
add v0.2s, v11.2s, v10.2s |
| 140 |
add v1.2s, v13.2s, v12.2s |
| 141 |
add v2.2s, v15.2s, v14.2s |
| 142 |
add v3.2s, v17.2s, v16.2s |
| 143 |
add v4.2s, v19.2s, v18.2s |
| 144 |
|
| 145 |
add v11.2s, v7.2s, v11.2s |
| 146 |
add v13.2s, v8.2s, v13.2s |
| 147 |
add v15.2s, v8.2s, v15.2s |
| 148 |
add v17.2s, v8.2s, v17.2s |
| 149 |
add v19.2s, v9.2s, v19.2s |
| 150 |
|
| 151 |
sub v11.2s, v11.2s, v10.2s |
| 152 |
sub v13.2s, v13.2s, v12.2s |
| 153 |
sub v15.2s, v15.2s, v14.2s |
| 154 |
sub v17.2s, v17.2s, v16.2s |
| 155 |
sub v19.2s, v19.2s, v18.2s |
| 156 |
|
| 157 |
// T4 = X3 - Z3, T3 = X3 + Z3 |
| 158 |
add v10.2s, v7.2s, v21.2s |
| 159 |
add v12.2s, v8.2s, v23.2s |
| 160 |
add v14.2s, v8.2s, v25.2s |
| 161 |
add v16.2s, v8.2s, v27.2s |
| 162 |
add v18.2s, v9.2s, v29.2s |
| 163 |
|
| 164 |
add v5.2s, v21.2s, v20.2s |
| 165 |
add v6.2s, v23.2s, v22.2s |
| 166 |
add v7.2s, v25.2s, v24.2s |
| 167 |
add v8.2s, v27.2s, v26.2s |
| 168 |
add v9.2s, v29.2s, v28.2s |
| 169 |
|
| 170 |
sub v21.2s, v10.2s, v20.2s |
| 171 |
sub v23.2s, v12.2s, v22.2s |
| 172 |
sub v25.2s, v14.2s, v24.2s |
| 173 |
sub v27.2s, v16.2s, v26.2s |
| 174 |
sub v29.2s, v18.2s, v28.2s |
| 175 |
|
| 176 |
// get current scalar bit |
| 177 |
ldr x2, [sp, #184] |
| 178 |
ldp x5, x6, [sp, #192] |
| 179 |
|
| 180 |
bic x3, x5, #0x3f |
| 181 |
lsr x3, x3, #3 |
| 182 |
ldr x4, [x2, x3] |
| 183 |
lsr x4, x4, x5 |
| 184 |
and w4, w4, #1 |
| 185 |
|
| 186 |
// compare current with previous scalar bit |
| 187 |
cmp w4, w6 |
| 188 |
|
| 189 |
// CSelect(T1,T3,b) |
| 190 |
fcsel d10, d5, d0, ne |
| 191 |
fcsel d12, d6, d1, ne |
| 192 |
fcsel d14, d7, d2, ne |
| 193 |
fcsel d16, d8, d3, ne |
| 194 |
fcsel d18, d9, d4, ne |
| 195 |
|
| 196 |
// save T1 resulted from CSelect |
| 197 |
mov x10, v10.d[0] |
| 198 |
mov x12, v12.d[0] |
| 199 |
mov x14, v14.d[0] |
| 200 |
mov x16, v16.d[0] |
| 201 |
mov x18, v18.d[0] |
| 202 |
|
| 203 |
lsr x11, x10, #32 |
| 204 |
lsr x13, x12, #32 |
| 205 |
lsr x15, x14, #32 |
| 206 |
lsr x17, x16, #32 |
| 207 |
|
| 208 |
// CSelect(T2,T4,b) |
| 209 |
fcsel d20, d21, d11, ne |
| 210 |
fcsel d22, d23, d13, ne |
| 211 |
fcsel d24, d25, d15, ne |
| 212 |
fcsel d26, d27, d17, ne |
| 213 |
fcsel d28, d29, d19, ne |
| 214 |
|
| 215 |
// save T2 resulted from CSelect |
| 216 |
stp d20, d22, [sp, #208] |
| 217 |
stp d24, d26, [sp, #224] |
| 218 |
str d28, [sp, #240] |
| 219 |
|
| 220 |
// update previous scalar bit |
| 221 |
subs w5, w5, #1 |
| 222 |
stp x5, x4, [sp, #192] |
| 223 |
|
| 224 |
// <T1,T2> = <X2 + Z2,X2 - Z2> |
| 225 |
trn1 v10.2s, v0.2s, v11.2s |
| 226 |
trn2 v11.2s, v0.2s, v11.2s |
| 227 |
trn1 v12.2s, v1.2s, v13.2s |
| 228 |
trn2 v13.2s, v1.2s, v13.2s |
| 229 |
trn1 v14.2s, v2.2s, v15.2s |
| 230 |
trn2 v15.2s, v2.2s, v15.2s |
| 231 |
trn1 v16.2s, v3.2s, v17.2s |
| 232 |
trn2 v17.2s, v3.2s, v17.2s |
| 233 |
trn1 v18.2s, v4.2s, v19.2s |
| 234 |
|
| 235 |
// <T4,T3> = <X3 - Z3,X3 + Z3> |
| 236 |
trn1 v20.2s, v21.2s, v5.2s |
| 237 |
trn2 v21.2s, v21.2s, v5.2s |
| 238 |
trn1 v22.2s, v23.2s, v6.2s |
| 239 |
trn2 v23.2s, v23.2s, v6.2s |
| 240 |
trn1 v24.2s, v25.2s, v7.2s |
| 241 |
trn2 v25.2s, v25.2s, v7.2s |
| 242 |
trn1 v26.2s, v27.2s, v8.2s |
| 243 |
trn2 v27.2s, v27.2s, v8.2s |
| 244 |
trn1 v28.2s, v29.2s, v9.2s |
| 245 |
|
| 246 |
// <T5,T6> ← Mul(<T1,T2>,<T4,T3>) |
| 247 |
dup v29.2d, x29 |
| 248 |
dup v30.2s, w30 |
| 249 |
|
| 250 |
umull v0.2d, v10.2s, v20.2s |
| 251 |
umull v1.2d, v10.2s, v21.2s |
| 252 |
umull v2.2d, v10.2s, v22.2s |
| 253 |
umull v3.2d, v10.2s, v23.2s |
| 254 |
umull v4.2d, v10.2s, v24.2s |
| 255 |
umull v5.2d, v10.2s, v25.2s |
| 256 |
umull v6.2d, v10.2s, v26.2s |
| 257 |
umull v7.2d, v10.2s, v27.2s |
| 258 |
umull v8.2d, v10.2s, v28.2s |
| 259 |
|
| 260 |
umlal v1.2d, v11.2s, v20.2s |
| 261 |
umlal v2.2d, v11.2s, v21.2s |
| 262 |
umlal v3.2d, v11.2s, v22.2s |
| 263 |
umlal v4.2d, v11.2s, v23.2s |
| 264 |
umlal v5.2d, v11.2s, v24.2s |
| 265 |
umlal v6.2d, v11.2s, v25.2s |
| 266 |
umlal v7.2d, v11.2s, v26.2s |
| 267 |
umlal v8.2d, v11.2s, v27.2s |
| 268 |
umull v9.2d, v11.2s, v28.2s |
| 269 |
|
| 270 |
umlal v2.2d, v12.2s, v20.2s |
| 271 |
umlal v3.2d, v12.2s, v21.2s |
| 272 |
umlal v4.2d, v12.2s, v22.2s |
| 273 |
umlal v5.2d, v12.2s, v23.2s |
| 274 |
umlal v6.2d, v12.2s, v24.2s |
| 275 |
umlal v7.2d, v12.2s, v25.2s |
| 276 |
umlal v8.2d, v12.2s, v26.2s |
| 277 |
umlal v9.2d, v12.2s, v27.2s |
| 278 |
umull v10.2d, v12.2s, v28.2s |
| 279 |
|
| 280 |
umlal v3.2d, v13.2s, v20.2s |
| 281 |
umlal v4.2d, v13.2s, v21.2s |
| 282 |
umlal v5.2d, v13.2s, v22.2s |
| 283 |
umlal v6.2d, v13.2s, v23.2s |
| 284 |
umlal v7.2d, v13.2s, v24.2s |
| 285 |
umlal v8.2d, v13.2s, v25.2s |
| 286 |
umlal v9.2d, v13.2s, v26.2s |
| 287 |
umlal v10.2d, v13.2s, v27.2s |
| 288 |
umull v11.2d, v13.2s, v28.2s |
| 289 |
|
| 290 |
umlal v4.2d, v14.2s, v20.2s |
| 291 |
umlal v5.2d, v14.2s, v21.2s |
| 292 |
umlal v6.2d, v14.2s, v22.2s |
| 293 |
umlal v7.2d, v14.2s, v23.2s |
| 294 |
umlal v8.2d, v14.2s, v24.2s |
| 295 |
umlal v9.2d, v14.2s, v25.2s |
| 296 |
umlal v10.2d, v14.2s, v26.2s |
| 297 |
umlal v11.2d, v14.2s, v27.2s |
| 298 |
umull v12.2d, v14.2s, v28.2s |
| 299 |
|
| 300 |
umlal v5.2d, v15.2s, v20.2s |
| 301 |
umlal v6.2d, v15.2s, v21.2s |
| 302 |
umlal v7.2d, v15.2s, v22.2s |
| 303 |
umlal v8.2d, v15.2s, v23.2s |
| 304 |
umlal v9.2d, v15.2s, v24.2s |
| 305 |
umlal v10.2d, v15.2s, v25.2s |
| 306 |
umlal v11.2d, v15.2s, v26.2s |
| 307 |
umlal v12.2d, v15.2s, v27.2s |
| 308 |
umull v13.2d, v15.2s, v28.2s |
| 309 |
|
| 310 |
umlal v6.2d, v16.2s, v20.2s |
| 311 |
umlal v7.2d, v16.2s, v21.2s |
| 312 |
umlal v8.2d, v16.2s, v22.2s |
| 313 |
umlal v9.2d, v16.2s, v23.2s |
| 314 |
umlal v10.2d, v16.2s, v24.2s |
| 315 |
umlal v11.2d, v16.2s, v25.2s |
| 316 |
umlal v12.2d, v16.2s, v26.2s |
| 317 |
umlal v13.2d, v16.2s, v27.2s |
| 318 |
umull v14.2d, v16.2s, v28.2s |
| 319 |
|
| 320 |
umlal v7.2d, v17.2s, v20.2s |
| 321 |
umlal v8.2d, v17.2s, v21.2s |
| 322 |
umlal v9.2d, v17.2s, v22.2s |
| 323 |
umlal v10.2d, v17.2s, v23.2s |
| 324 |
umlal v11.2d, v17.2s, v24.2s |
| 325 |
umlal v12.2d, v17.2s, v25.2s |
| 326 |
umlal v13.2d, v17.2s, v26.2s |
| 327 |
umlal v14.2d, v17.2s, v27.2s |
| 328 |
umull v15.2d, v17.2s, v28.2s |
| 329 |
|
| 330 |
umlal v8.2d, v18.2s, v20.2s |
| 331 |
umlal v9.2d, v18.2s, v21.2s |
| 332 |
umlal v10.2d, v18.2s, v22.2s |
| 333 |
umlal v11.2d, v18.2s, v23.2s |
| 334 |
umlal v12.2d, v18.2s, v24.2s |
| 335 |
umlal v13.2d, v18.2s, v25.2s |
| 336 |
umlal v14.2d, v18.2s, v26.2s |
| 337 |
umlal v15.2d, v18.2s, v27.2s |
| 338 |
umull v16.2d, v18.2s, v28.2s |
| 339 |
|
| 340 |
usra v10.2d, v9.2d, #29 |
| 341 |
and v9.16b, v9.16b, v29.16b |
| 342 |
xtn v9.2s, v9.2d |
| 343 |
umull v9.2d, v9.2s, v30.2s |
| 344 |
add v0.2d, v0.2d, v9.2d |
| 345 |
|
| 346 |
usra v11.2d, v10.2d, #29 |
| 347 |
and v10.16b, v10.16b, v29.16b |
| 348 |
xtn v10.2s, v10.2d |
| 349 |
umull v10.2d, v10.2s, v30.2s |
| 350 |
add v1.2d, v1.2d, v10.2d |
| 351 |
|
| 352 |
usra v12.2d, v11.2d, #29 |
| 353 |
and v11.16b, v11.16b, v29.16b |
| 354 |
xtn v11.2s, v11.2d |
| 355 |
umull v11.2d, v11.2s, v30.2s |
| 356 |
add v2.2d, v2.2d, v11.2d |
| 357 |
|
| 358 |
usra v13.2d, v12.2d, #29 |
| 359 |
and v12.16b, v12.16b, v29.16b |
| 360 |
xtn v12.2s, v12.2d |
| 361 |
umull v12.2d, v12.2s, v30.2s |
| 362 |
add v3.2d, v3.2d, v12.2d |
| 363 |
|
| 364 |
usra v14.2d, v13.2d, #29 |
| 365 |
and v13.16b, v13.16b, v29.16b |
| 366 |
xtn v13.2s, v13.2d |
| 367 |
umull v13.2d, v13.2s, v30.2s |
| 368 |
add v4.2d, v4.2d, v13.2d |
| 369 |
|
| 370 |
usra v15.2d, v14.2d, #29 |
| 371 |
and v14.16b, v14.16b, v29.16b |
| 372 |
xtn v14.2s, v14.2d |
| 373 |
umull v14.2d, v14.2s, v30.2s |
| 374 |
add v5.2d, v5.2d, v14.2d |
| 375 |
|
| 376 |
usra v16.2d, v15.2d, #29 |
| 377 |
and v15.16b, v15.16b, v29.16b |
| 378 |
xtn v15.2s, v15.2d |
| 379 |
umull v15.2d, v15.2s, v30.2s |
| 380 |
add v6.2d, v6.2d, v15.2d |
| 381 |
|
| 382 |
ushr v9.2d, v16.2d, #29 |
| 383 |
and v16.16b, v16.16b, v29.16b |
| 384 |
xtn v16.2s, v16.2d |
| 385 |
umull v16.2d, v16.2s, v30.2s |
| 386 |
add v7.2d, v7.2d, v16.2d |
| 387 |
|
| 388 |
xtn v9.2s, v9.2d |
| 389 |
umull v9.2d, v9.2s, v30.2s |
| 390 |
add v8.2d, v8.2d, v9.2d |
| 391 |
|
| 392 |
lsr x19, x29, #6 |
| 393 |
dup v30.2d, x19 |
| 394 |
|
| 395 |
usra v5.2d, v4.2d, #29 |
| 396 |
and v4.16b, v4.16b, v29.16b |
| 397 |
|
| 398 |
usra v1.2d, v0.2d, #29 |
| 399 |
and v0.16b, v0.16b, v29.16b |
| 400 |
|
| 401 |
usra v6.2d, v5.2d, #29 |
| 402 |
and v5.16b, v5.16b, v29.16b |
| 403 |
|
| 404 |
usra v2.2d, v1.2d, #29 |
| 405 |
and v1.16b, v1.16b, v29.16b |
| 406 |
|
| 407 |
usra v7.2d, v6.2d, #29 |
| 408 |
and v6.16b, v6.16b, v29.16b |
| 409 |
|
| 410 |
usra v3.2d, v2.2d, #29 |
| 411 |
and v2.16b, v2.16b, v29.16b |
| 412 |
|
| 413 |
usra v8.2d, v7.2d, #29 |
| 414 |
and v7.16b, v7.16b, v29.16b |
| 415 |
|
| 416 |
usra v4.2d, v3.2d, #29 |
| 417 |
and v3.16b, v3.16b, v29.16b |
| 418 |
|
| 419 |
bic v10.16b, v8.16b, v30.16b |
| 420 |
usra v0.2d, v10.2d, #23 |
| 421 |
usra v0.2d, v10.2d, #22 |
| 422 |
usra v0.2d, v10.2d, #19 |
| 423 |
and v8.16b, v8.16b, v30.16b |
| 424 |
|
| 425 |
usra v5.2d, v4.2d, #29 |
| 426 |
and v4.16b, v4.16b, v29.16b |
| 427 |
|
| 428 |
usra v1.2d, v0.2d, #29 |
| 429 |
and v0.16b, v0.16b, v29.16b |
| 430 |
|
| 431 |
// T1 ← T1^2 |
| 432 |
add w20, w10, w10 |
| 433 |
add w21, w11, w11 |
| 434 |
add w22, w12, w12 |
| 435 |
add w23, w13, w13 |
| 436 |
add w24, w14, w14 |
| 437 |
add w25, w15, w15 |
| 438 |
add w26, w16, w16 |
| 439 |
add w27, w17, w17 |
| 440 |
|
| 441 |
umull x0, w10, w10 |
| 442 |
umull x1, w20, w11 |
| 443 |
umull x2, w20, w12 |
| 444 |
umull x3, w20, w13 |
| 445 |
umull x4, w20, w14 |
| 446 |
umull x5, w20, w15 |
| 447 |
umull x6, w20, w16 |
| 448 |
umull x7, w20, w17 |
| 449 |
umull x8, w20, w18 |
| 450 |
|
| 451 |
umaddl x2, w11, w11, x2 |
| 452 |
umaddl x3, w21, w12, x3 |
| 453 |
umaddl x4, w21, w13, x4 |
| 454 |
umaddl x5, w21, w14, x5 |
| 455 |
umaddl x6, w21, w15, x6 |
| 456 |
umaddl x7, w21, w16, x7 |
| 457 |
umaddl x8, w21, w17, x8 |
| 458 |
umull x9, w21, w18 |
| 459 |
|
| 460 |
umaddl x4, w12, w12, x4 |
| 461 |
umaddl x5, w22, w13, x5 |
| 462 |
umaddl x6, w22, w14, x6 |
| 463 |
umaddl x7, w22, w15, x7 |
| 464 |
umaddl x8, w22, w16, x8 |
| 465 |
umaddl x9, w22, w17, x9 |
| 466 |
umull x10, w22, w18 |
| 467 |
|
| 468 |
umaddl x6, w13, w13, x6 |
| 469 |
umaddl x7, w23, w14, x7 |
| 470 |
umaddl x8, w23, w15, x8 |
| 471 |
umaddl x9, w23, w16, x9 |
| 472 |
umaddl x10, w23, w17, x10 |
| 473 |
umull x11, w23, w18 |
| 474 |
|
| 475 |
umaddl x8, w14, w14, x8 |
| 476 |
umaddl x9, w24, w15, x9 |
| 477 |
umaddl x10, w24, w16, x10 |
| 478 |
umaddl x11, w24, w17, x11 |
| 479 |
umull x12, w24, w18 |
| 480 |
|
| 481 |
umaddl x10, w15, w15, x10 |
| 482 |
umaddl x11, w25, w16, x11 |
| 483 |
umaddl x12, w25, w17, x12 |
| 484 |
umull x13, w25, w18 |
| 485 |
|
| 486 |
add x10, x10, x9, lsr #29 |
| 487 |
and x9, x9, #0x1fffffff |
| 488 |
umull x9, w9, w30 |
| 489 |
add x0, x0, x9 |
| 490 |
|
| 491 |
add x11, x11, x10, lsr #29 |
| 492 |
and x10, x10, #0x1fffffff |
| 493 |
umull x10, w10, w30 |
| 494 |
add x1, x1, x10 |
| 495 |
|
| 496 |
umaddl x12, w16, w16, x12 |
| 497 |
umaddl x13, w26, w17, x13 |
| 498 |
umull x14, w26, w18 |
| 499 |
|
| 500 |
add x12, x12, x11, lsr #29 |
| 501 |
and x11, x11, #0x1fffffff |
| 502 |
umull x11, w11, w30 |
| 503 |
add x2, x2, x11 |
| 504 |
|
| 505 |
add x13, x13, x12, lsr #29 |
| 506 |
and x12, x12, #0x1fffffff |
| 507 |
umull x12, w12, w30 |
| 508 |
add x3, x3, x12 |
| 509 |
|
| 510 |
umaddl x14, w17, w17, x14 |
| 511 |
umull x15, w27, w18 |
| 512 |
|
| 513 |
add x14, x14, x13, lsr #29 |
| 514 |
and x13, x13, #0x1fffffff |
| 515 |
umull x13, w13, w30 |
| 516 |
add x4, x4, x13 |
| 517 |
|
| 518 |
add x15, x15, x14, lsr #29 |
| 519 |
and x14, x14, #0x1fffffff |
| 520 |
umull x14, w14, w30 |
| 521 |
add x5, x5, x14 |
| 522 |
|
| 523 |
umull x16, w18, w18 |
| 524 |
|
| 525 |
add x16, x16, x15, lsr #29 |
| 526 |
and x15, x15, #0x1fffffff |
| 527 |
umull x15, w15, w30 |
| 528 |
add x6, x6, x15 |
| 529 |
|
| 530 |
lsr x9, x16, #29 |
| 531 |
and x16, x16, #0x1fffffff |
| 532 |
umull x16, w16, w30 |
| 533 |
add x7, x7, x16 |
| 534 |
|
| 535 |
umull x9, w9, w30 |
| 536 |
add x8, x8, x9 |
| 537 |
|
| 538 |
add x5, x5, x4, lsr #29 |
| 539 |
and x4, x4, 0x1fffffff |
| 540 |
|
| 541 |
add x1, x1, x0, lsr #29 |
| 542 |
and x0, x0, 0x1fffffff |
| 543 |
|
| 544 |
add x6, x6, x5, lsr #29 |
| 545 |
and x5, x5, 0x1fffffff |
| 546 |
|
| 547 |
add x2, x2, x1, lsr #29 |
| 548 |
and x1, x1, 0x1fffffff |
| 549 |
|
| 550 |
add x7, x7, x6, lsr #29 |
| 551 |
and x6, x6, 0x1fffffff |
| 552 |
|
| 553 |
add x3, x3, x2, lsr #29 |
| 554 |
and x2, x2, 0x1fffffff |
| 555 |
|
| 556 |
add x8, x8, x7, lsr #29 |
| 557 |
and x7, x7, 0x1fffffff |
| 558 |
bfi x6, x7, #32, #29 |
| 559 |
|
| 560 |
add x4, x4, x3, lsr #29 |
| 561 |
and x3, x3, 0x1fffffff |
| 562 |
bfi x2, x3, #32, #29 |
| 563 |
|
| 564 |
bic x10, x8, #0x7fffff |
| 565 |
add x0, x0, x10, lsr #23 |
| 566 |
add x0, x0, x10, lsr #22 |
| 567 |
add x0, x0, x10, lsr #19 |
| 568 |
and x8, x8, #0x7fffff |
| 569 |
|
| 570 |
add x5, x5, x4, lsr #29 |
| 571 |
and x4, x4, 0x1fffffff |
| 572 |
bfi x4, x5, #32, #30 |
| 573 |
|
| 574 |
add x1, x1, x0, lsr #29 |
| 575 |
and x0, x0, 0x1fffffff |
| 576 |
bfi x0, x1, #32, #30 |
| 577 |
|
| 578 |
stp x0, x2, [sp, #256] |
| 579 |
stp x4, x6, [sp, #272] |
| 580 |
str x8, [sp, #288] |
| 581 |
|
| 582 |
// X3 ← T5 + T6, Z3 ← T5 - T6 |
| 583 |
uzp1 v0.4s, v0.4s, v1.4s |
| 584 |
uzp1 v1.4s, v2.4s, v3.4s |
| 585 |
uzp1 v2.4s, v0.4s, v1.4s |
| 586 |
uzp2 v3.4s, v0.4s, v1.4s |
| 587 |
|
| 588 |
uzp1 v4.4s, v4.4s, v5.4s |
| 589 |
uzp1 v5.4s, v6.4s, v7.4s |
| 590 |
uzp1 v6.4s, v4.4s, v5.4s |
| 591 |
uzp2 v7.4s, v4.4s, v5.4s |
| 592 |
|
| 593 |
trn1 v8.4s, v8.4s, v9.4s |
| 594 |
mov v9.d[0], v8.d[1] |
| 595 |
|
| 596 |
// X3 ← T5 + T6 |
| 597 |
add v1.4s, v2.4s, v3.4s |
| 598 |
add v4.4s, v6.4s, v7.4s |
| 599 |
add v5.4s, v8.4s, v9.4s |
| 600 |
|
| 601 |
// Z3 ← T5 - T6 |
| 602 |
ld1r {v10.2d}, [sp] |
| 603 |
add v6.4s, v6.4s, v10.4s |
| 604 |
ldr b11, [sp, #440] |
| 605 |
mov v10.b[0], v11.b[0] |
| 606 |
add v2.4s, v2.4s, v10.4s |
| 607 |
ldr d10, [sp, #448] |
| 608 |
add v8.4s, v8.4s, v10.4s |
| 609 |
|
| 610 |
sub v2.4s, v2.4s, v3.4s |
| 611 |
sub v6.4s, v6.4s, v7.4s |
| 612 |
sub v8.4s, v8.4s, v9.4s |
| 613 |
|
| 614 |
// <Z3,X3> ← <T5 - T6,T5 + T6> |
| 615 |
zip1 v10.4s, v2.4s, v1.4s |
| 616 |
zip2 v12.4s, v2.4s, v1.4s |
| 617 |
zip1 v14.4s, v6.4s, v4.4s |
| 618 |
zip2 v16.4s, v6.4s, v4.4s |
| 619 |
zip1 v18.4s, v8.4s, v5.4s |
| 620 |
|
| 621 |
mov v11.d[0], v10.d[1] |
| 622 |
mov v13.d[0], v12.d[1] |
| 623 |
mov v15.d[0], v14.d[1] |
| 624 |
mov v17.d[0], v16.d[1] |
| 625 |
mov v19.d[0], v18.d[1] |
| 626 |
|
| 627 |
// <Z3,X3> ← Sqr(<Z3,X3>) |
| 628 |
dup v29.2d, x29 |
| 629 |
dup v30.2s, w30 |
| 630 |
|
| 631 |
add v20.2d, v10.2d, v10.2d |
| 632 |
add v21.2d, v11.2d, v11.2d |
| 633 |
add v22.2d, v12.2d, v12.2d |
| 634 |
add v23.2d, v13.2d, v13.2d |
| 635 |
add v24.2d, v14.2d, v14.2d |
| 636 |
add v25.2d, v15.2d, v15.2d |
| 637 |
add v26.2d, v16.2d, v16.2d |
| 638 |
add v27.2d, v17.2d, v17.2d |
| 639 |
|
| 640 |
umull v0.2d, v10.2s, v10.2s |
| 641 |
umull v1.2d, v20.2s, v11.2s |
| 642 |
umull v2.2d, v20.2s, v12.2s |
| 643 |
umull v3.2d, v20.2s, v13.2s |
| 644 |
umull v4.2d, v20.2s, v14.2s |
| 645 |
umull v5.2d, v20.2s, v15.2s |
| 646 |
umull v6.2d, v20.2s, v16.2s |
| 647 |
umull v7.2d, v20.2s, v17.2s |
| 648 |
umull v8.2d, v20.2s, v18.2s |
| 649 |
|
| 650 |
umlal v2.2d, v11.2s, v11.2s |
| 651 |
umlal v3.2d, v21.2s, v12.2s |
| 652 |
umlal v4.2d, v21.2s, v13.2s |
| 653 |
umlal v5.2d, v21.2s, v14.2s |
| 654 |
umlal v6.2d, v21.2s, v15.2s |
| 655 |
umlal v7.2d, v21.2s, v16.2s |
| 656 |
umlal v8.2d, v21.2s, v17.2s |
| 657 |
umull v9.2d, v21.2s, v18.2s |
| 658 |
|
| 659 |
umlal v4.2d, v12.2s, v12.2s |
| 660 |
umlal v5.2d, v22.2s, v13.2s |
| 661 |
umlal v6.2d, v22.2s, v14.2s |
| 662 |
umlal v7.2d, v22.2s, v15.2s |
| 663 |
umlal v8.2d, v22.2s, v16.2s |
| 664 |
umlal v9.2d, v22.2s, v17.2s |
| 665 |
umull v10.2d, v22.2s, v18.2s |
| 666 |
|
| 667 |
umlal v6.2d, v13.2s, v13.2s |
| 668 |
umlal v8.2d, v23.2s, v15.2s |
| 669 |
umlal v9.2d, v23.2s, v16.2s |
| 670 |
umlal v10.2d, v23.2s, v17.2s |
| 671 |
umull v11.2d, v23.2s, v18.2s |
| 672 |
|
| 673 |
umlal v8.2d, v14.2s, v14.2s |
| 674 |
umlal v9.2d, v24.2s, v15.2s |
| 675 |
umlal v10.2d, v24.2s, v16.2s |
| 676 |
umlal v11.2d, v24.2s, v17.2s |
| 677 |
umull v12.2d, v24.2s, v18.2s |
| 678 |
|
| 679 |
umlal v10.2d, v15.2s, v15.2s |
| 680 |
umlal v11.2d, v25.2s, v16.2s |
| 681 |
umlal v12.2d, v25.2s, v17.2s |
| 682 |
umull v13.2d, v25.2s, v18.2s |
| 683 |
|
| 684 |
usra v10.2d, v9.2d, #29 |
| 685 |
and v9.16b, v9.16b, v29.16b |
| 686 |
xtn v9.2s, v9.2d |
| 687 |
umull v9.2d, v9.2s, v30.2s |
| 688 |
add v0.2d, v0.2d, v9.2d |
| 689 |
|
| 690 |
usra v11.2d, v10.2d, #29 |
| 691 |
and v10.16b, v10.16b, v29.16b |
| 692 |
xtn v10.2s, v10.2d |
| 693 |
umull v10.2d, v10.2s, v30.2s |
| 694 |
add v1.2d, v1.2d, v10.2d |
| 695 |
|
| 696 |
umlal v12.2d, v16.2s, v16.2s |
| 697 |
umlal v13.2d, v26.2s, v17.2s |
| 698 |
umull v24.2d, v26.2s, v18.2s |
| 699 |
|
| 700 |
usra v12.2d, v11.2d, #29 |
| 701 |
and v11.16b, v11.16b, v29.16b |
| 702 |
xtn v11.2s, v11.2d |
| 703 |
umull v11.2d, v11.2s, v30.2s |
| 704 |
add v2.2d, v2.2d, v11.2d |
| 705 |
|
| 706 |
usra v13.2d, v12.2d, #29 |
| 707 |
and v12.16b, v12.16b, v29.16b |
| 708 |
xtn v12.2s, v12.2d |
| 709 |
umull v12.2d, v12.2s, v30.2s |
| 710 |
add v3.2d, v3.2d, v12.2d |
| 711 |
|
| 712 |
umlal v24.2d, v17.2s, v17.2s |
| 713 |
umull v15.2d, v27.2s, v18.2s |
| 714 |
|
| 715 |
usra v24.2d, v13.2d, #29 |
| 716 |
and v13.16b, v13.16b, v29.16b |
| 717 |
xtn v13.2s, v13.2d |
| 718 |
umull v13.2d, v13.2s, v30.2s |
| 719 |
add v4.2d, v4.2d, v13.2d |
| 720 |
|
| 721 |
usra v15.2d, v24.2d, #29 |
| 722 |
and v24.16b, v24.16b, v29.16b |
| 723 |
xtn v24.2s, v24.2d |
| 724 |
umull v24.2d, v24.2s, v30.2s |
| 725 |
add v5.2d, v5.2d, v24.2d |
| 726 |
|
| 727 |
umull v16.2d, v18.2s, v18.2s |
| 728 |
|
| 729 |
usra v16.2d, v15.2d, #29 |
| 730 |
and v15.16b, v15.16b, v29.16b |
| 731 |
xtn v15.2s, v15.2d |
| 732 |
umull v15.2d, v15.2s, v30.2s |
| 733 |
add v6.2d, v6.2d, v15.2d |
| 734 |
|
| 735 |
ushr v9.2d, v16.2d, #29 |
| 736 |
and v16.16b, v16.16b, v29.16b |
| 737 |
xtn v16.2s, v16.2d |
| 738 |
umull v16.2d, v16.2s, v30.2s |
| 739 |
add v7.2d, v7.2d, v16.2d |
| 740 |
|
| 741 |
xtn v9.2s, v9.2d |
| 742 |
umull v9.2d, v9.2s, v30.2s |
| 743 |
add v8.2d, v8.2d, v9.2d |
| 744 |
|
| 745 |
lsr x19, x29, #6 |
| 746 |
dup v30.2d, x19 |
| 747 |
|
| 748 |
usra v5.2d, v4.2d, #29 |
| 749 |
and v4.16b, v4.16b, v29.16b |
| 750 |
|
| 751 |
usra v1.2d, v0.2d, #29 |
| 752 |
and v0.16b, v0.16b, v29.16b |
| 753 |
|
| 754 |
usra v6.2d, v5.2d, #29 |
| 755 |
and v25.16b, v5.16b, v29.16b |
| 756 |
|
| 757 |
usra v2.2d, v1.2d, #29 |
| 758 |
and v21.16b, v1.16b, v29.16b |
| 759 |
|
| 760 |
usra v7.2d, v6.2d, #29 |
| 761 |
and v26.16b, v6.16b, v29.16b |
| 762 |
|
| 763 |
usra v3.2d, v2.2d, #29 |
| 764 |
and v22.16b, v2.16b, v29.16b |
| 765 |
|
| 766 |
usra v8.2d, v7.2d, #29 |
| 767 |
and v7.16b, v7.16b, v29.16b |
| 768 |
|
| 769 |
umlal v7.2d, v23.2s, v14.2s |
| 770 |
usra v8.2d, v7.2d, #29 |
| 771 |
and v27.16b, v7.16b, v29.16b |
| 772 |
|
| 773 |
usra v4.2d, v3.2d, #29 |
| 774 |
and v23.16b, v3.16b, v29.16b |
| 775 |
|
| 776 |
bic v10.16b, v8.16b, v30.16b |
| 777 |
usra v0.2d, v10.2d, #23 |
| 778 |
usra v0.2d, v10.2d, #22 |
| 779 |
usra v0.2d, v10.2d, #19 |
| 780 |
and v28.16b, v8.16b, v30.16b |
| 781 |
|
| 782 |
usra v25.2d, v4.2d, #29 |
| 783 |
and v24.16b, v4.16b, v29.16b |
| 784 |
|
| 785 |
usra v21.2d, v0.2d, #29 |
| 786 |
and v20.16b, v0.16b, v29.16b |
| 787 |
|
| 788 |
zip2 v0.4s, v20.4s, v21.4s |
| 789 |
zip2 v1.4s, v22.4s, v23.4s |
| 790 |
zip2 v2.4s, v24.4s, v25.4s |
| 791 |
zip2 v3.4s, v26.4s, v27.4s |
| 792 |
zip2 v4.4s, v28.4s, v29.4s |
| 793 |
|
| 794 |
stp d0, d1, [sp, #304] |
| 795 |
stp d2, d3, [sp, #320] |
| 796 |
str d4, [sp, #336] |
| 797 |
|
| 798 |
// T2 ← T2^2 |
| 799 |
ldp w10, w11, [sp, #208] |
| 800 |
ldp w12, w13, [sp, #216] |
| 801 |
ldp w14, w15, [sp, #224] |
| 802 |
ldp w16, w17, [sp, #232] |
| 803 |
ldr w18, [sp, #240] |
| 804 |
|
| 805 |
add w20, w10, w10 |
| 806 |
add w21, w11, w11 |
| 807 |
add w22, w12, w12 |
| 808 |
add w23, w13, w13 |
| 809 |
add w24, w14, w14 |
| 810 |
add w25, w15, w15 |
| 811 |
add w26, w16, w16 |
| 812 |
add w27, w17, w17 |
| 813 |
|
| 814 |
umull x0, w10, w10 |
| 815 |
umull x1, w20, w11 |
| 816 |
umull x2, w20, w12 |
| 817 |
umull x3, w20, w13 |
| 818 |
umull x4, w20, w14 |
| 819 |
umull x5, w20, w15 |
| 820 |
umull x6, w20, w16 |
| 821 |
umull x7, w20, w17 |
| 822 |
umull x8, w20, w18 |
| 823 |
|
| 824 |
umaddl x2, w11, w11, x2 |
| 825 |
umaddl x3, w21, w12, x3 |
| 826 |
umaddl x4, w21, w13, x4 |
| 827 |
umaddl x5, w21, w14, x5 |
| 828 |
umaddl x6, w21, w15, x6 |
| 829 |
umaddl x7, w21, w16, x7 |
| 830 |
umaddl x8, w21, w17, x8 |
| 831 |
umull x9, w21, w18 |
| 832 |
|
| 833 |
umaddl x4, w12, w12, x4 |
| 834 |
umaddl x5, w22, w13, x5 |
| 835 |
umaddl x6, w22, w14, x6 |
| 836 |
umaddl x7, w22, w15, x7 |
| 837 |
umaddl x8, w22, w16, x8 |
| 838 |
umaddl x9, w22, w17, x9 |
| 839 |
umull x10, w22, w18 |
| 840 |
|
| 841 |
umaddl x6, w13, w13, x6 |
| 842 |
umaddl x8, w23, w15, x8 |
| 843 |
umaddl x9, w23, w16, x9 |
| 844 |
umaddl x10, w23, w17, x10 |
| 845 |
umull x11, w23, w18 |
| 846 |
|
| 847 |
umaddl x8, w14, w14, x8 |
| 848 |
umaddl x9, w24, w15, x9 |
| 849 |
umaddl x10, w24, w16, x10 |
| 850 |
umaddl x11, w24, w17, x11 |
| 851 |
umull x12, w24, w18 |
| 852 |
|
| 853 |
umaddl x10, w15, w15, x10 |
| 854 |
umaddl x11, w25, w16, x11 |
| 855 |
umaddl x12, w25, w17, x12 |
| 856 |
umull x13, w25, w18 |
| 857 |
|
| 858 |
add x10, x10, x9, lsr #29 |
| 859 |
and x9, x9, #0x1fffffff |
| 860 |
umull x9, w9, w30 |
| 861 |
add x0, x0, x9 |
| 862 |
|
| 863 |
add x11, x11, x10, lsr #29 |
| 864 |
and x10, x10, #0x1fffffff |
| 865 |
umull x10, w10, w30 |
| 866 |
add x1, x1, x10 |
| 867 |
|
| 868 |
umaddl x12, w16, w16, x12 |
| 869 |
umaddl x13, w26, w17, x13 |
| 870 |
umull x24, w26, w18 |
| 871 |
|
| 872 |
add x12, x12, x11, lsr #29 |
| 873 |
and x11, x11, #0x1fffffff |
| 874 |
umull x11, w11, w30 |
| 875 |
add x2, x2, x11 |
| 876 |
|
| 877 |
add x13, x13, x12, lsr #29 |
| 878 |
and x12, x12, #0x1fffffff |
| 879 |
umull x12, w12, w30 |
| 880 |
add x3, x3, x12 |
| 881 |
|
| 882 |
umaddl x24, w17, w17, x24 |
| 883 |
umull x15, w27, w18 |
| 884 |
|
| 885 |
add x24, x24, x13, lsr #29 |
| 886 |
and x13, x13, #0x1fffffff |
| 887 |
umull x13, w13, w30 |
| 888 |
add x4, x4, x13 |
| 889 |
|
| 890 |
add x15, x15, x24, lsr #29 |
| 891 |
and x24, x24, #0x1fffffff |
| 892 |
umull x24, w24, w30 |
| 893 |
add x5, x5, x24 |
| 894 |
|
| 895 |
umull x16, w18, w18 |
| 896 |
|
| 897 |
add x16, x16, x15, lsr #29 |
| 898 |
and x15, x15, #0x1fffffff |
| 899 |
umull x15, w15, w30 |
| 900 |
add x6, x6, x15 |
| 901 |
|
| 902 |
lsr x9, x16, #29 |
| 903 |
and x16, x16, #0x1fffffff |
| 904 |
umull x16, w16, w30 |
| 905 |
add x7, x7, x16 |
| 906 |
|
| 907 |
umull x9, w9, w30 |
| 908 |
add x8, x8, x9 |
| 909 |
|
| 910 |
add x5, x5, x4, lsr #29 |
| 911 |
and x4, x4, 0x1fffffff |
| 912 |
|
| 913 |
add x1, x1, x0, lsr #29 |
| 914 |
and x0, x0, 0x1fffffff |
| 915 |
|
| 916 |
add x6, x6, x5, lsr #29 |
| 917 |
and x5, x5, 0x1fffffff |
| 918 |
|
| 919 |
add x2, x2, x1, lsr #29 |
| 920 |
and x1, x1, 0x1fffffff |
| 921 |
|
| 922 |
add x7, x7, x6, lsr #29 |
| 923 |
and x6, x6, 0x1fffffff |
| 924 |
|
| 925 |
add x3, x3, x2, lsr #29 |
| 926 |
and x2, x2, 0x1fffffff |
| 927 |
|
| 928 |
add x8, x8, x7, lsr #29 |
| 929 |
and x7, x7, 0x1fffffff |
| 930 |
|
| 931 |
umaddl x7, w23, w14, x7 |
| 932 |
add x8, x8, x7, lsr #29 |
| 933 |
and x7, x7, 0x1fffffff |
| 934 |
bfi x6, x7, #32, #29 |
| 935 |
|
| 936 |
add x4, x4, x3, lsr #29 |
| 937 |
and x3, x3, 0x1fffffff |
| 938 |
bfi x2, x3, #32, #29 |
| 939 |
|
| 940 |
bic x10, x8, #0x7fffff |
| 941 |
add x0, x0, x10, lsr #23 |
| 942 |
add x0, x0, x10, lsr #22 |
| 943 |
add x0, x0, x10, lsr #19 |
| 944 |
and x8, x8, #0x7fffff |
| 945 |
|
| 946 |
add x5, x5, x4, lsr #29 |
| 947 |
and x4, x4, 0x1fffffff |
| 948 |
bfi x4, x5, #32, #30 |
| 949 |
|
| 950 |
add x1, x1, x0, lsr #29 |
| 951 |
and x0, x0, 0x1fffffff |
| 952 |
bfi x0, x1, #32, #30 |
| 953 |
|
| 954 |
stp x0, x2, [sp, #352] |
| 955 |
stp x4, x6, [sp, #368] |
| 956 |
str x8, [sp, #384] |
| 957 |
|
| 958 |
// Z2 ← T1 - T2 |
| 959 |
ldp x11, x13, [sp, #256] |
| 960 |
ldp x15, x17, [sp, #272] |
| 961 |
ldr x19, [sp, #288] |
| 962 |
ldp x22, x21, [sp, #0] |
| 963 |
|
| 964 |
add x11, x11, x21 |
| 965 |
add x13, x13, x22 |
| 966 |
add x15, x15, x22 |
| 967 |
add x17, x17, x22 |
| 968 |
ldr x22, [sp, #448] |
| 969 |
add x19, x19, x22 |
| 970 |
|
| 971 |
sub x10, x11, x0 |
| 972 |
sub x12, x13, x2 |
| 973 |
sub x14, x15, x4 |
| 974 |
sub x16, x17, x6 |
| 975 |
sub x18, x19, x8 |
| 976 |
|
| 977 |
lsr x11, x10, #32 |
| 978 |
lsr x13, x12, #32 |
| 979 |
lsr x15, x14, #32 |
| 980 |
lsr x17, x16, #32 |
| 981 |
|
| 982 |
// T2 ← aZ2 + T2 |
| 983 |
movz x20, #0xdb42 |
| 984 |
movk x20, #0x0001, lsl 16 |
| 985 |
mov w0, w0 |
| 986 |
umaddl x0, w10, w20, x0 |
| 987 |
umaddl x21, w11, w20, x1 |
| 988 |
mov w2, w2 |
| 989 |
umaddl x22, w12, w20, x2 |
| 990 |
umaddl x23, w13, w20, x3 |
| 991 |
mov w4, w4 |
| 992 |
umaddl x24, w14, w20, x4 |
| 993 |
umaddl x25, w15, w20, x5 |
| 994 |
mov w6, w6 |
| 995 |
umaddl x26, w16, w20, x6 |
| 996 |
umaddl x27, w17, w20, x7 |
| 997 |
umaddl x28, w18, w20, x8 |
| 998 |
|
| 999 |
add x25, x25, x24, lsr #29 |
| 1000 |
and x24, x24, 0x1fffffff |
| 1001 |
|
| 1002 |
add x21, x21, x0, lsr #29 |
| 1003 |
and x20, x0, 0x1fffffff |
| 1004 |
|
| 1005 |
add x26, x26, x25, lsr #29 |
| 1006 |
and x25, x25, 0x1fffffff |
| 1007 |
|
| 1008 |
add x22, x22, x21, lsr #29 |
| 1009 |
and x21, x21, 0x1fffffff |
| 1010 |
|
| 1011 |
add x27, x27, x26, lsr #29 |
| 1012 |
and x26, x26, 0x1fffffff |
| 1013 |
|
| 1014 |
add x23, x23, x22, lsr #29 |
| 1015 |
and x22, x22, 0x1fffffff |
| 1016 |
|
| 1017 |
add x28, x28, x27, lsr #29 |
| 1018 |
and x27, x27, 0x1fffffff |
| 1019 |
|
| 1020 |
add x24, x24, x23, lsr #29 |
| 1021 |
and x23, x23, 0x1fffffff |
| 1022 |
|
| 1023 |
bic x7, x28, #0x7fffff |
| 1024 |
add x20, x20, x7, lsr #23 |
| 1025 |
add x20, x20, x7, lsr #22 |
| 1026 |
add x20, x20, x7, lsr #19 |
| 1027 |
and x28, x28, #0x7fffff |
| 1028 |
|
| 1029 |
add x25, x25, x24, lsr #29 |
| 1030 |
and x24, x24, 0x1fffffff |
| 1031 |
|
| 1032 |
add x21, x21, x20, lsr #29 |
| 1033 |
and x20, x20, 0x1fffffff |
| 1034 |
|
| 1035 |
// Z2 ← Z2 · T2 |
| 1036 |
umull x0, w10, w20 |
| 1037 |
umull x1, w10, w21 |
| 1038 |
umull x2, w10, w22 |
| 1039 |
umull x3, w10, w23 |
| 1040 |
umull x4, w10, w24 |
| 1041 |
umull x5, w10, w25 |
| 1042 |
umull x6, w10, w26 |
| 1043 |
umull x7, w10, w27 |
| 1044 |
umull x8, w10, w28 |
| 1045 |
|
| 1046 |
umaddl x1, w11, w20, x1 |
| 1047 |
umaddl x2, w11, w21, x2 |
| 1048 |
umaddl x3, w11, w22, x3 |
| 1049 |
umaddl x4, w11, w23, x4 |
| 1050 |
umaddl x5, w11, w24, x5 |
| 1051 |
umaddl x6, w11, w25, x6 |
| 1052 |
umaddl x7, w11, w26, x7 |
| 1053 |
umaddl x8, w11, w27, x8 |
| 1054 |
umull x9, w11, w28 |
| 1055 |
|
| 1056 |
umaddl x2, w12, w20, x2 |
| 1057 |
umaddl x3, w12, w21, x3 |
| 1058 |
umaddl x4, w12, w22, x4 |
| 1059 |
umaddl x5, w12, w23, x5 |
| 1060 |
umaddl x6, w12, w24, x6 |
| 1061 |
umaddl x7, w12, w25, x7 |
| 1062 |
umaddl x8, w12, w26, x8 |
| 1063 |
umaddl x9, w12, w27, x9 |
| 1064 |
umull x10, w12, w28 |
| 1065 |
|
| 1066 |
umaddl x3, w13, w20, x3 |
| 1067 |
umaddl x4, w13, w21, x4 |
| 1068 |
umaddl x5, w13, w22, x5 |
| 1069 |
umaddl x6, w13, w23, x6 |
| 1070 |
umaddl x7, w13, w24, x7 |
| 1071 |
umaddl x8, w13, w25, x8 |
| 1072 |
umaddl x9, w13, w26, x9 |
| 1073 |
umaddl x10, w13, w27, x10 |
| 1074 |
umull x11, w13, w28 |
| 1075 |
|
| 1076 |
umaddl x4, w14, w20, x4 |
| 1077 |
umaddl x5, w14, w21, x5 |
| 1078 |
umaddl x6, w14, w22, x6 |
| 1079 |
umaddl x7, w14, w23, x7 |
| 1080 |
umaddl x8, w14, w24, x8 |
| 1081 |
umaddl x9, w14, w25, x9 |
| 1082 |
umaddl x10, w14, w26, x10 |
| 1083 |
umaddl x11, w14, w27, x11 |
| 1084 |
umull x12, w14, w28 |
| 1085 |
|
| 1086 |
umaddl x5, w15, w20, x5 |
| 1087 |
umaddl x6, w15, w21, x6 |
| 1088 |
umaddl x7, w15, w22, x7 |
| 1089 |
umaddl x8, w15, w23, x8 |
| 1090 |
umaddl x9, w15, w24, x9 |
| 1091 |
umaddl x10, w15, w25, x10 |
| 1092 |
umaddl x11, w15, w26, x11 |
| 1093 |
umaddl x12, w15, w27, x12 |
| 1094 |
umull x13, w15, w28 |
| 1095 |
|
| 1096 |
umaddl x6, w16, w20, x6 |
| 1097 |
umaddl x7, w16, w21, x7 |
| 1098 |
umaddl x8, w16, w22, x8 |
| 1099 |
umaddl x9, w16, w23, x9 |
| 1100 |
umaddl x10, w16, w24, x10 |
| 1101 |
umaddl x11, w16, w25, x11 |
| 1102 |
umaddl x12, w16, w26, x12 |
| 1103 |
umaddl x13, w16, w27, x13 |
| 1104 |
umull x14, w16, w28 |
| 1105 |
|
| 1106 |
umaddl x7, w17, w20, x7 |
| 1107 |
umaddl x8, w17, w21, x8 |
| 1108 |
umaddl x9, w17, w22, x9 |
| 1109 |
umaddl x10, w17, w23, x10 |
| 1110 |
umaddl x11, w17, w24, x11 |
| 1111 |
umaddl x12, w17, w25, x12 |
| 1112 |
umaddl x13, w17, w26, x13 |
| 1113 |
umaddl x14, w17, w27, x14 |
| 1114 |
umull x15, w17, w28 |
| 1115 |
|
| 1116 |
umaddl x8, w18, w20, x8 |
| 1117 |
umaddl x9, w18, w21, x9 |
| 1118 |
umaddl x10, w18, w22, x10 |
| 1119 |
umaddl x11, w18, w23, x11 |
| 1120 |
umaddl x12, w18, w24, x12 |
| 1121 |
umaddl x13, w18, w25, x13 |
| 1122 |
umaddl x14, w18, w26, x14 |
| 1123 |
umaddl x15, w18, w27, x15 |
| 1124 |
umull x16, w18, w28 |
| 1125 |
|
| 1126 |
add x10, x10, x9, lsr #29 |
| 1127 |
and x9, x9, #0x1fffffff |
| 1128 |
umull x9, w9, w30 |
| 1129 |
add x0, x0, x9 |
| 1130 |
|
| 1131 |
add x11, x11, x10, lsr #29 |
| 1132 |
and x10, x10, #0x1fffffff |
| 1133 |
umull x10, w10, w30 |
| 1134 |
add x1, x1, x10 |
| 1135 |
|
| 1136 |
add x12, x12, x11, lsr #29 |
| 1137 |
and x11, x11, #0x1fffffff |
| 1138 |
umull x11, w11, w30 |
| 1139 |
add x2, x2, x11 |
| 1140 |
|
| 1141 |
add x13, x13, x12, lsr #29 |
| 1142 |
and x12, x12, #0x1fffffff |
| 1143 |
umull x12, w12, w30 |
| 1144 |
add x3, x3, x12 |
| 1145 |
|
| 1146 |
add x14, x14, x13, lsr #29 |
| 1147 |
and x13, x13, #0x1fffffff |
| 1148 |
umull x13, w13, w30 |
| 1149 |
add x4, x4, x13 |
| 1150 |
|
| 1151 |
add x15, x15, x14, lsr #29 |
| 1152 |
and x14, x14, #0x1fffffff |
| 1153 |
umull x14, w14, w30 |
| 1154 |
add x5, x5, x14 |
| 1155 |
|
| 1156 |
add x16, x16, x15, lsr #29 |
| 1157 |
and x15, x15, #0x1fffffff |
| 1158 |
umull x15, w15, w30 |
| 1159 |
add x6, x6, x15 |
| 1160 |
|
| 1161 |
lsr x9, x16, #29 |
| 1162 |
and x16, x16, #0x1fffffff |
| 1163 |
umull x16, w16, w30 |
| 1164 |
add x7, x7, x16 |
| 1165 |
|
| 1166 |
umull x9, w9, w30 |
| 1167 |
add x8, x8, x9 |
| 1168 |
|
| 1169 |
add x5, x5, x4, lsr #29 |
| 1170 |
and x4, x4, 0x1fffffff |
| 1171 |
|
| 1172 |
add x1, x1, x0, lsr #29 |
| 1173 |
and x0, x0, 0x1fffffff |
| 1174 |
|
| 1175 |
add x6, x6, x5, lsr #29 |
| 1176 |
and x5, x5, 0x1fffffff |
| 1177 |
|
| 1178 |
add x2, x2, x1, lsr #29 |
| 1179 |
and x1, x1, 0x1fffffff |
| 1180 |
|
| 1181 |
add x7, x7, x6, lsr #29 |
| 1182 |
and x6, x6, 0x1fffffff |
| 1183 |
|
| 1184 |
add x3, x3, x2, lsr #29 |
| 1185 |
and x2, x2, 0x1fffffff |
| 1186 |
|
| 1187 |
add x8, x8, x7, lsr #29 |
| 1188 |
and x7, x7, 0x1fffffff |
| 1189 |
bfi x6, x7, #32, #29 |
| 1190 |
|
| 1191 |
add x4, x4, x3, lsr #29 |
| 1192 |
and x3, x3, 0x1fffffff |
| 1193 |
bfi x2, x3, #32, #29 |
| 1194 |
|
| 1195 |
bic x10, x8, #0x7fffff |
| 1196 |
add x0, x0, x10, lsr #23 |
| 1197 |
add x0, x0, x10, lsr #22 |
| 1198 |
add x0, x0, x10, lsr #19 |
| 1199 |
and x8, x8, #0x7fffff |
| 1200 |
|
| 1201 |
add x5, x5, x4, lsr #29 |
| 1202 |
and x4, x4, 0x1fffffff |
| 1203 |
bfi x4, x5, #32, #30 |
| 1204 |
|
| 1205 |
add x1, x1, x0, lsr #29 |
| 1206 |
and x0, x0, 0x1fffffff |
| 1207 |
bfi x0, x1, #32, #30 |
| 1208 |
|
| 1209 |
// inputs <Z3,T1> and <X1,T2> |
| 1210 |
add x10, sp, #256 |
| 1211 |
add x11, sp, #400 |
| 1212 |
add x12, sp, #352 |
| 1213 |
|
| 1214 |
ld2 {v20.s, v21.s}[1], [x10], #8 |
| 1215 |
ld2 {v10.s, v11.s}[0], [x11], #8 |
| 1216 |
ld2 {v10.s, v11.s}[1], [x12], #8 |
| 1217 |
|
| 1218 |
ld2 {v22.s, v23.s}[1], [x10], #8 |
| 1219 |
ld2 {v12.s, v13.s}[0], [x11], #8 |
| 1220 |
ld2 {v12.s, v13.s}[1], [x12], #8 |
| 1221 |
|
| 1222 |
ld2 {v24.s, v25.s}[1], [x10], #8 |
| 1223 |
ld2 {v14.s, v15.s}[0], [x11], #8 |
| 1224 |
ld2 {v14.s, v15.s}[1], [x12], #8 |
| 1225 |
|
| 1226 |
ld2 {v26.s, v27.s}[1], [x10], #8 |
| 1227 |
ld2 {v16.s, v17.s}[0], [x11], #8 |
| 1228 |
ld2 {v16.s, v17.s}[1], [x12], #8 |
| 1229 |
|
| 1230 |
ld2 {v28.s, v29.s}[1], [x10], #8 |
| 1231 |
ld2 {v18.s, v19.s}[0], [x11], #8 |
| 1232 |
ld2 {v18.s, v19.s}[1], [x12], #8 |
| 1233 |
|
| 1234 |
// <Z3,X2> ← Mul(<Z3,T1>,<X1,T2>) |
| 1235 |
dup v29.2d, x29 |
| 1236 |
dup v30.2s, w30 |
| 1237 |
|
| 1238 |
umull v0.2d, v10.2s, v20.2s |
| 1239 |
umull v1.2d, v10.2s, v21.2s |
| 1240 |
umull v2.2d, v10.2s, v22.2s |
| 1241 |
umull v3.2d, v10.2s, v23.2s |
| 1242 |
umull v4.2d, v10.2s, v24.2s |
| 1243 |
umull v5.2d, v10.2s, v25.2s |
| 1244 |
umull v6.2d, v10.2s, v26.2s |
| 1245 |
umull v7.2d, v10.2s, v27.2s |
| 1246 |
umull v8.2d, v10.2s, v28.2s |
| 1247 |
|
| 1248 |
umlal v1.2d, v11.2s, v20.2s |
| 1249 |
umlal v2.2d, v11.2s, v21.2s |
| 1250 |
umlal v3.2d, v11.2s, v22.2s |
| 1251 |
umlal v4.2d, v11.2s, v23.2s |
| 1252 |
umlal v5.2d, v11.2s, v24.2s |
| 1253 |
umlal v6.2d, v11.2s, v25.2s |
| 1254 |
umlal v7.2d, v11.2s, v26.2s |
| 1255 |
umlal v8.2d, v11.2s, v27.2s |
| 1256 |
umull v9.2d, v11.2s, v28.2s |
| 1257 |
|
| 1258 |
umlal v2.2d, v12.2s, v20.2s |
| 1259 |
umlal v3.2d, v12.2s, v21.2s |
| 1260 |
umlal v4.2d, v12.2s, v22.2s |
| 1261 |
umlal v5.2d, v12.2s, v23.2s |
| 1262 |
umlal v6.2d, v12.2s, v24.2s |
| 1263 |
umlal v7.2d, v12.2s, v25.2s |
| 1264 |
umlal v8.2d, v12.2s, v26.2s |
| 1265 |
umlal v9.2d, v12.2s, v27.2s |
| 1266 |
umull v10.2d, v12.2s, v28.2s |
| 1267 |
|
| 1268 |
umlal v3.2d, v13.2s, v20.2s |
| 1269 |
umlal v4.2d, v13.2s, v21.2s |
| 1270 |
umlal v5.2d, v13.2s, v22.2s |
| 1271 |
umlal v6.2d, v13.2s, v23.2s |
| 1272 |
umlal v7.2d, v13.2s, v24.2s |
| 1273 |
umlal v8.2d, v13.2s, v25.2s |
| 1274 |
umlal v9.2d, v13.2s, v26.2s |
| 1275 |
umlal v10.2d, v13.2s, v27.2s |
| 1276 |
umull v11.2d, v13.2s, v28.2s |
| 1277 |
|
| 1278 |
umlal v4.2d, v14.2s, v20.2s |
| 1279 |
umlal v5.2d, v14.2s, v21.2s |
| 1280 |
umlal v6.2d, v14.2s, v22.2s |
| 1281 |
umlal v7.2d, v14.2s, v23.2s |
| 1282 |
umlal v8.2d, v14.2s, v24.2s |
| 1283 |
umlal v9.2d, v14.2s, v25.2s |
| 1284 |
umlal v10.2d, v14.2s, v26.2s |
| 1285 |
umlal v11.2d, v14.2s, v27.2s |
| 1286 |
umull v12.2d, v14.2s, v28.2s |
| 1287 |
|
| 1288 |
umlal v5.2d, v15.2s, v20.2s |
| 1289 |
umlal v6.2d, v15.2s, v21.2s |
| 1290 |
umlal v7.2d, v15.2s, v22.2s |
| 1291 |
umlal v8.2d, v15.2s, v23.2s |
| 1292 |
umlal v9.2d, v15.2s, v24.2s |
| 1293 |
umlal v10.2d, v15.2s, v25.2s |
| 1294 |
umlal v11.2d, v15.2s, v26.2s |
| 1295 |
umlal v12.2d, v15.2s, v27.2s |
| 1296 |
umull v13.2d, v15.2s, v28.2s |
| 1297 |
|
| 1298 |
umlal v6.2d, v16.2s, v20.2s |
| 1299 |
umlal v7.2d, v16.2s, v21.2s |
| 1300 |
umlal v8.2d, v16.2s, v22.2s |
| 1301 |
umlal v9.2d, v16.2s, v23.2s |
| 1302 |
umlal v10.2d, v16.2s, v24.2s |
| 1303 |
umlal v11.2d, v16.2s, v25.2s |
| 1304 |
umlal v12.2d, v16.2s, v26.2s |
| 1305 |
umlal v13.2d, v16.2s, v27.2s |
| 1306 |
umull v14.2d, v16.2s, v28.2s |
| 1307 |
|
| 1308 |
umlal v7.2d, v17.2s, v20.2s |
| 1309 |
umlal v8.2d, v17.2s, v21.2s |
| 1310 |
umlal v9.2d, v17.2s, v22.2s |
| 1311 |
umlal v10.2d, v17.2s, v23.2s |
| 1312 |
umlal v11.2d, v17.2s, v24.2s |
| 1313 |
umlal v12.2d, v17.2s, v25.2s |
| 1314 |
umlal v13.2d, v17.2s, v26.2s |
| 1315 |
umlal v14.2d, v17.2s, v27.2s |
| 1316 |
umull v15.2d, v17.2s, v28.2s |
| 1317 |
|
| 1318 |
umlal v8.2d, v18.2s, v20.2s |
| 1319 |
umlal v9.2d, v18.2s, v21.2s |
| 1320 |
umlal v10.2d, v18.2s, v22.2s |
| 1321 |
umlal v11.2d, v18.2s, v23.2s |
| 1322 |
umlal v12.2d, v18.2s, v24.2s |
| 1323 |
umlal v13.2d, v18.2s, v25.2s |
| 1324 |
umlal v14.2d, v18.2s, v26.2s |
| 1325 |
umlal v15.2d, v18.2s, v27.2s |
| 1326 |
umull v16.2d, v18.2s, v28.2s |
| 1327 |
|
| 1328 |
usra v10.2d, v9.2d, #29 |
| 1329 |
and v9.16b, v9.16b, v29.16b |
| 1330 |
xtn v9.2s, v9.2d |
| 1331 |
umull v9.2d, v9.2s, v30.2s |
| 1332 |
add v0.2d, v0.2d, v9.2d |
| 1333 |
|
| 1334 |
usra v11.2d, v10.2d, #29 |
| 1335 |
and v10.16b, v10.16b, v29.16b |
| 1336 |
xtn v10.2s, v10.2d |
| 1337 |
umull v10.2d, v10.2s, v30.2s |
| 1338 |
add v1.2d, v1.2d, v10.2d |
| 1339 |
|
| 1340 |
usra v12.2d, v11.2d, #29 |
| 1341 |
and v11.16b, v11.16b, v29.16b |
| 1342 |
xtn v11.2s, v11.2d |
| 1343 |
umull v11.2d, v11.2s, v30.2s |
| 1344 |
add v2.2d, v2.2d, v11.2d |
| 1345 |
|
| 1346 |
usra v13.2d, v12.2d, #29 |
| 1347 |
and v12.16b, v12.16b, v29.16b |
| 1348 |
xtn v12.2s, v12.2d |
| 1349 |
umull v12.2d, v12.2s, v30.2s |
| 1350 |
add v3.2d, v3.2d, v12.2d |
| 1351 |
|
| 1352 |
usra v14.2d, v13.2d, #29 |
| 1353 |
and v13.16b, v13.16b, v29.16b |
| 1354 |
xtn v13.2s, v13.2d |
| 1355 |
umull v13.2d, v13.2s, v30.2s |
| 1356 |
add v4.2d, v4.2d, v13.2d |
| 1357 |
|
| 1358 |
usra v15.2d, v14.2d, #29 |
| 1359 |
and v14.16b, v14.16b, v29.16b |
| 1360 |
xtn v14.2s, v14.2d |
| 1361 |
umull v14.2d, v14.2s, v30.2s |
| 1362 |
add v5.2d, v5.2d, v14.2d |
| 1363 |
|
| 1364 |
usra v16.2d, v15.2d, #29 |
| 1365 |
and v15.16b, v15.16b, v29.16b |
| 1366 |
xtn v15.2s, v15.2d |
| 1367 |
umull v15.2d, v15.2s, v30.2s |
| 1368 |
add v6.2d, v6.2d, v15.2d |
| 1369 |
|
| 1370 |
ushr v9.2d, v16.2d, #29 |
| 1371 |
and v16.16b, v16.16b, v29.16b |
| 1372 |
xtn v16.2s, v16.2d |
| 1373 |
umull v16.2d, v16.2s, v30.2s |
| 1374 |
add v7.2d, v7.2d, v16.2d |
| 1375 |
|
| 1376 |
xtn v9.2s, v9.2d |
| 1377 |
umull v9.2d, v9.2s, v30.2s |
| 1378 |
add v8.2d, v8.2d, v9.2d |
| 1379 |
|
| 1380 |
lsr x19, x29, #6 |
| 1381 |
dup v30.2d, x19 |
| 1382 |
|
| 1383 |
usra v5.2d, v4.2d, #29 |
| 1384 |
and v4.16b, v4.16b, v29.16b |
| 1385 |
|
| 1386 |
usra v1.2d, v0.2d, #29 |
| 1387 |
and v0.16b, v0.16b, v29.16b |
| 1388 |
|
| 1389 |
usra v6.2d, v5.2d, #29 |
| 1390 |
and v5.16b, v5.16b, v29.16b |
| 1391 |
|
| 1392 |
usra v2.2d, v1.2d, #29 |
| 1393 |
and v1.16b, v1.16b, v29.16b |
| 1394 |
|
| 1395 |
usra v7.2d, v6.2d, #29 |
| 1396 |
and v6.16b, v6.16b, v29.16b |
| 1397 |
|
| 1398 |
usra v3.2d, v2.2d, #29 |
| 1399 |
and v2.16b, v2.16b, v29.16b |
| 1400 |
|
| 1401 |
usra v8.2d, v7.2d, #29 |
| 1402 |
and v7.16b, v7.16b, v29.16b |
| 1403 |
|
| 1404 |
usra v4.2d, v3.2d, #29 |
| 1405 |
and v3.16b, v3.16b, v29.16b |
| 1406 |
|
| 1407 |
bic v10.16b, v8.16b, v30.16b |
| 1408 |
usra v0.2d, v10.2d, #23 |
| 1409 |
usra v0.2d, v10.2d, #22 |
| 1410 |
usra v0.2d, v10.2d, #19 |
| 1411 |
and v8.16b, v8.16b, v30.16b |
| 1412 |
|
| 1413 |
usra v5.2d, v4.2d, #29 |
| 1414 |
and v4.16b, v4.16b, v29.16b |
| 1415 |
|
| 1416 |
usra v1.2d, v0.2d, #29 |
| 1417 |
and v0.16b, v0.16b, v29.16b |
| 1418 |
|
| 1419 |
// Z3 |
| 1420 |
mov v20.s[0], v0.s[0] |
| 1421 |
mov v20.s[1], v1.s[0] |
| 1422 |
mov v22.s[0], v2.s[0] |
| 1423 |
mov v22.s[1], v3.s[0] |
| 1424 |
mov v24.s[0], v4.s[0] |
| 1425 |
mov v24.s[1], v5.s[0] |
| 1426 |
mov v26.s[0], v6.s[0] |
| 1427 |
mov v26.s[1], v7.s[0] |
| 1428 |
mov v28.s[0], v8.s[0] |
| 1429 |
mov v28.s[1], wzr |
| 1430 |
|
| 1431 |
// X2 |
| 1432 |
mov v11.s[0], v0.s[2] |
| 1433 |
mov v11.s[1], v1.s[2] |
| 1434 |
mov v13.s[0], v2.s[2] |
| 1435 |
mov v13.s[1], v3.s[2] |
| 1436 |
mov v15.s[0], v4.s[2] |
| 1437 |
mov v15.s[1], v5.s[2] |
| 1438 |
mov v17.s[0], v6.s[2] |
| 1439 |
mov v17.s[1], v7.s[2] |
| 1440 |
mov v19.s[0], v8.s[2] |
| 1441 |
mov v19.s[1], wzr |
| 1442 |
|
| 1443 |
// Z2 |
| 1444 |
mov v10.d[0], x0 |
| 1445 |
mov v12.d[0], x2 |
| 1446 |
mov v14.d[0], x4 |
| 1447 |
mov v16.d[0], x6 |
| 1448 |
mov v18.d[0], x8 |
| 1449 |
|
| 1450 |
// X3 |
| 1451 |
ldp d21, d23, [sp, #304] |
| 1452 |
ldp d25, d27, [sp, #320] |
| 1453 |
ldr d29, [sp, #336] |
| 1454 |
|
| 1455 |
bpl .L0 |
| 1456 |
|
| 1457 |
ldr x0, [sp, #176] |
| 1458 |
|
| 1459 |
// X2 |
| 1460 |
mov w10, v11.s[0] |
| 1461 |
mov w11, v11.s[1] |
| 1462 |
mov w12, v13.s[0] |
| 1463 |
mov w13, v13.s[1] |
| 1464 |
mov w14, v15.s[0] |
| 1465 |
mov w15, v15.s[1] |
| 1466 |
mov w16, v17.s[0] |
| 1467 |
mov w17, v17.s[1] |
| 1468 |
mov w18, v19.s[0] |
| 1469 |
|
| 1470 |
stp w13, w17, [x0, #0] |
| 1471 |
stp w14, w18, [x0, #8] |
| 1472 |
stp w15, w10, [x0, #16] |
| 1473 |
stp w16, w11, [x0, #24] |
| 1474 |
stp w12, wzr, [x0, #32] |
| 1475 |
|
| 1476 |
// Z2 |
| 1477 |
mov w10, v10.s[0] |
| 1478 |
mov w11, v10.s[1] |
| 1479 |
mov w12, v12.s[0] |
| 1480 |
mov w13, v12.s[1] |
| 1481 |
mov w14, v14.s[0] |
| 1482 |
mov w15, v14.s[1] |
| 1483 |
mov w16, v16.s[0] |
| 1484 |
mov w17, v16.s[1] |
| 1485 |
mov w18, v18.s[0] |
| 1486 |
|
| 1487 |
stp w13, w17, [x0, #40] |
| 1488 |
stp w14, w18, [x0, #48] |
| 1489 |
stp w15, w10, [x0, #56] |
| 1490 |
stp w16, w11, [x0, #64] |
| 1491 |
stp w12, wzr, [x0, #72] |
| 1492 |
|
| 1493 |
ldp d14, d15, [sp, #160] |
| 1494 |
ldp d12, d13, [sp, #144] |
| 1495 |
ldp d10, d11, [sp, #128] |
| 1496 |
ldp d8, d9, [sp, #112] |
| 1497 |
ldp x29, x30, [sp, #96] |
| 1498 |
ldp x27, x28, [sp, #80] |
| 1499 |
ldp x25, x26, [sp, #64] |
| 1500 |
ldp x23, x24, [sp, #48] |
| 1501 |
ldp x21, x22, [sp, #32] |
| 1502 |
ldp x19, x20, [sp, #16] |
| 1503 |
add sp, sp, #464 |
| 1504 |
|
| 1505 |
ret |
| 1506 |
.section .note.GNU-stack,"",@progbits |