security/nss/lib/freebl/mpi/mpcpucache_amd64.s

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 / This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 / License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 / file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 .file "mpcpucache.c"
michael@0 6 / .section .rodata.str1.1,"aMS",@progbits,1
michael@0 7 .section .rodata
michael@0 8 .LC0:
michael@0 9 .string "GenuineIntel"
michael@0 10 .LC1:
michael@0 11 .string "AuthenticAMD"
michael@0 12 .LC2:
michael@0 13 .string "CyrixInstead"
michael@0 14 .LC3:
michael@0 15 .string "CentaurHauls"
michael@0 16 .LC4:
michael@0 17 .string "NexGenDriven"
michael@0 18 .LC5:
michael@0 19 .string "GenuineTMx86"
michael@0 20 .LC6:
michael@0 21 .string "RiseRiseRise"
michael@0 22 .LC7:
michael@0 23 .string "UMC UMC UMC "
michael@0 24 .LC8:
michael@0 25 .string "Sis Sis Sis "
michael@0 26 .LC9:
michael@0 27 .string "Geode by NSC"
michael@0 28 .section .data.rel.ro.local,"aw",@progbits
michael@0 29 .align 32
michael@0 30 .type manMap, @object
michael@0 31 .size manMap, 80
michael@0 32 manMap:
michael@0 33 .quad .LC0
michael@0 34 .quad .LC1
michael@0 35 .quad .LC2
michael@0 36 .quad .LC3
michael@0 37 .quad .LC4
michael@0 38 .quad .LC5
michael@0 39 .quad .LC6
michael@0 40 .quad .LC7
michael@0 41 .quad .LC8
michael@0 42 .quad .LC9
michael@0 43 .section .rodata
michael@0 44 .align 32
michael@0 45 .type CacheMap, @object
michael@0 46 .size CacheMap, 512
michael@0 47 CacheMap:
michael@0 48 .byte 0
michael@0 49 .byte 0
michael@0 50 .byte 3
michael@0 51 .byte 0
michael@0 52 .byte 3
michael@0 53 .byte 0
michael@0 54 .byte 4
michael@0 55 .byte 0
michael@0 56 .byte 4
michael@0 57 .zero 1
michael@0 58 .byte 1
michael@0 59 .byte 0
michael@0 60 .byte 7
michael@0 61 .byte 32
michael@0 62 .byte 1
michael@0 63 .byte 0
michael@0 64 .byte 7
michael@0 65 .byte 32
michael@0 66 .byte 1
michael@0 67 .byte 0
michael@0 68 .byte 8
michael@0 69 .byte 32
michael@0 70 .byte 1
michael@0 71 .byte 0
michael@0 72 .byte 8
michael@0 73 .byte 32
michael@0 74 .byte 1
michael@0 75 .byte 0
michael@0 76 .byte 1
michael@0 77 .byte 0
michael@0 78 .byte 1
michael@0 79 .byte 0
michael@0 80 .byte 1
michael@0 81 .byte 0
michael@0 82 .byte 1
michael@0 83 .byte 0
michael@0 84 .byte 1
michael@0 85 .byte 0
michael@0 86 .byte 1
michael@0 87 .byte 0
michael@0 88 .byte 1
michael@0 89 .byte 0
michael@0 90 .byte 1
michael@0 91 .byte 0
michael@0 92 .byte 1
michael@0 93 .byte 0
michael@0 94 .byte 1
michael@0 95 .byte 0
michael@0 96 .byte 1
michael@0 97 .byte 0
michael@0 98 .byte 1
michael@0 99 .byte 0
michael@0 100 .byte 1
michael@0 101 .byte 0
michael@0 102 .byte 1
michael@0 103 .byte 0
michael@0 104 .byte 1
michael@0 105 .byte 0
michael@0 106 .byte 1
michael@0 107 .byte 0
michael@0 108 .byte 1
michael@0 109 .byte 0
michael@0 110 .byte 1
michael@0 111 .byte 0
michael@0 112 .byte 1
michael@0 113 .byte 0
michael@0 114 .byte 1
michael@0 115 .byte 0
michael@0 116 .byte 12
michael@0 117 .byte 64
michael@0 118 .byte 12
michael@0 119 .byte 64
michael@0 120 .byte 1
michael@0 121 .byte 0
michael@0 122 .byte 12
michael@0 123 .byte 64
michael@0 124 .byte 1
michael@0 125 .byte 0
michael@0 126 .byte 1
michael@0 127 .byte 0
michael@0 128 .byte 1
michael@0 129 .byte 0
michael@0 130 .byte 12
michael@0 131 .byte 64
michael@0 132 .byte 1
michael@0 133 .byte 0
michael@0 134 .byte 1
michael@0 135 .byte 0
michael@0 136 .byte 8
michael@0 137 .byte 64
michael@0 138 .byte 1
michael@0 139 .byte 0
michael@0 140 .byte 1
michael@0 141 .byte 0
michael@0 142 .byte 1
michael@0 143 .byte 0
michael@0 144 .byte 7
michael@0 145 .byte 64
michael@0 146 .byte 1
michael@0 147 .byte 0
michael@0 148 .byte 1
michael@0 149 .byte 0
michael@0 150 .byte 1
michael@0 151 .byte 0
michael@0 152 .byte 1
michael@0 153 .byte 0
michael@0 154 .byte 1
michael@0 155 .byte 0
michael@0 156 .byte 1
michael@0 157 .byte 0
michael@0 158 .byte 1
michael@0 159 .byte 0
michael@0 160 .byte 1
michael@0 161 .byte 0
michael@0 162 .byte 9
michael@0 163 .byte 64
michael@0 164 .byte 1
michael@0 165 .byte 0
michael@0 166 .byte 9
michael@0 167 .byte 64
michael@0 168 .byte 9
michael@0 169 .byte 64
michael@0 170 .byte 1
michael@0 171 .byte 0
michael@0 172 .byte 1
michael@0 173 .byte 0
michael@0 174 .byte 1
michael@0 175 .byte 0
michael@0 176 .byte 9
michael@0 177 .byte 0
michael@0 178 .byte 9
michael@0 179 .byte 32
michael@0 180 .byte 9
michael@0 181 .byte 32
michael@0 182 .byte 9
michael@0 183 .byte 32
michael@0 184 .byte 9
michael@0 185 .byte 32
michael@0 186 .byte 9
michael@0 187 .byte 32
michael@0 188 .byte 1
michael@0 189 .byte 0
michael@0 190 .byte 1
michael@0 191 .byte 0
michael@0 192 .byte 1
michael@0 193 .byte 0
michael@0 194 .byte 1
michael@0 195 .byte 0
michael@0 196 .byte 1
michael@0 197 .byte 0
michael@0 198 .byte 1
michael@0 199 .byte 0
michael@0 200 .byte 1
michael@0 201 .byte 0
michael@0 202 .byte 1
michael@0 203 .byte 0
michael@0 204 .byte 1
michael@0 205 .byte 0
michael@0 206 .byte 1
michael@0 207 .byte 0
michael@0 208 .byte 3
michael@0 209 .byte 0
michael@0 210 .byte 3
michael@0 211 .byte 0
michael@0 212 .byte 3
michael@0 213 .byte 0
michael@0 214 .byte 1
michael@0 215 .byte 0
michael@0 216 .byte 1
michael@0 217 .byte 0
michael@0 218 .byte 1
michael@0 219 .byte 0
michael@0 220 .byte 1
michael@0 221 .byte 0
michael@0 222 .byte 1
michael@0 223 .byte 0
michael@0 224 .byte 1
michael@0 225 .byte 0
michael@0 226 .byte 1
michael@0 227 .byte 0
michael@0 228 .byte 1
michael@0 229 .byte 0
michael@0 230 .byte 4
michael@0 231 .byte 0
michael@0 232 .byte 4
michael@0 233 .byte 0
michael@0 234 .byte 4
michael@0 235 .byte 0
michael@0 236 .byte 1
michael@0 237 .byte 0
michael@0 238 .byte 1
michael@0 239 .byte 0
michael@0 240 .byte 1
michael@0 241 .byte 0
michael@0 242 .byte 1
michael@0 243 .byte 0
michael@0 244 .byte 1
michael@0 245 .byte 0
michael@0 246 .byte 1
michael@0 247 .byte 0
michael@0 248 .byte 1
michael@0 249 .byte 0
michael@0 250 .byte 1
michael@0 251 .byte 0
michael@0 252 .byte 8
michael@0 253 .byte 64
michael@0 254 .byte 8
michael@0 255 .byte 64
michael@0 256 .byte 8
michael@0 257 .byte 64
michael@0 258 .byte 1
michael@0 259 .byte 0
michael@0 260 .byte 1
michael@0 261 .byte 0
michael@0 262 .byte 1
michael@0 263 .byte 0
michael@0 264 .byte 1
michael@0 265 .byte 0
michael@0 266 .byte 1
michael@0 267 .byte 0
michael@0 268 .byte 1
michael@0 269 .byte 0
michael@0 270 .byte 1
michael@0 271 .byte 0
michael@0 272 .byte 5
michael@0 273 .byte 1
michael@0 274 .byte 5
michael@0 275 .byte 1
michael@0 276 .byte 5
michael@0 277 .byte 1
michael@0 278 .byte 1
michael@0 279 .byte 0
michael@0 280 .byte 1
michael@0 281 .byte 0
michael@0 282 .byte 1
michael@0 283 .byte 0
michael@0 284 .byte 1
michael@0 285 .byte 0
michael@0 286 .byte 1
michael@0 287 .byte 0
michael@0 288 .byte 1
michael@0 289 .byte 0
michael@0 290 .byte 9
michael@0 291 .byte 64
michael@0 292 .byte 9
michael@0 293 .byte 64
michael@0 294 .byte 9
michael@0 295 .byte 64
michael@0 296 .byte 9
michael@0 297 .byte 64
michael@0 298 .byte 1
michael@0 299 .byte 0
michael@0 300 .byte 1
michael@0 301 .byte 0
michael@0 302 .byte 1
michael@0 303 .byte 0
michael@0 304 .byte 1
michael@0 305 .byte 0
michael@0 306 .byte 1
michael@0 307 .byte 0
michael@0 308 .byte 9
michael@0 309 .byte 32
michael@0 310 .byte 9
michael@0 311 .byte 32
michael@0 312 .byte 9
michael@0 313 .byte 32
michael@0 314 .byte 9
michael@0 315 .byte 32
michael@0 316 .byte 9
michael@0 317 .byte 64
michael@0 318 .byte 9
michael@0 319 .byte 64
michael@0 320 .byte 1
michael@0 321 .byte 0
michael@0 322 .byte 1
michael@0 323 .byte 0
michael@0 324 .byte 1
michael@0 325 .byte 0
michael@0 326 .byte 1
michael@0 327 .byte 0
michael@0 328 .byte 1
michael@0 329 .byte 0
michael@0 330 .byte 1
michael@0 331 .byte 0
michael@0 332 .byte 1
michael@0 333 .byte 0
michael@0 334 .byte 1
michael@0 335 .byte 0
michael@0 336 .byte 1
michael@0 337 .byte 0
michael@0 338 .byte 1
michael@0 339 .byte 0
michael@0 340 .byte 1
michael@0 341 .byte 0
michael@0 342 .byte 1
michael@0 343 .byte 0
michael@0 344 .byte 1
michael@0 345 .byte 0
michael@0 346 .byte 1
michael@0 347 .byte 0
michael@0 348 .byte 1
michael@0 349 .byte 0
michael@0 350 .byte 1
michael@0 351 .byte 0
michael@0 352 .byte 1
michael@0 353 .byte 0
michael@0 354 .byte 1
michael@0 355 .byte 0
michael@0 356 .byte 1
michael@0 357 .byte 0
michael@0 358 .byte 1
michael@0 359 .byte 0
michael@0 360 .byte 1
michael@0 361 .byte 0
michael@0 362 .byte 1
michael@0 363 .byte 0
michael@0 364 .byte 1
michael@0 365 .byte 0
michael@0 366 .byte 1
michael@0 367 .byte 0
michael@0 368 .byte 1
michael@0 369 .byte 0
michael@0 370 .byte 1
michael@0 371 .byte 0
michael@0 372 .byte 1
michael@0 373 .byte 0
michael@0 374 .byte 1
michael@0 375 .byte 0
michael@0 376 .byte 1
michael@0 377 .byte 0
michael@0 378 .byte 1
michael@0 379 .byte 0
michael@0 380 .byte 1
michael@0 381 .byte 0
michael@0 382 .byte 1
michael@0 383 .byte 0
michael@0 384 .byte 1
michael@0 385 .byte 0
michael@0 386 .byte 1
michael@0 387 .byte 0
michael@0 388 .byte 1
michael@0 389 .byte 0
michael@0 390 .byte 1
michael@0 391 .byte 0
michael@0 392 .byte 1
michael@0 393 .byte 0
michael@0 394 .byte 1
michael@0 395 .byte 0
michael@0 396 .byte 1
michael@0 397 .byte 0
michael@0 398 .byte 1
michael@0 399 .byte 0
michael@0 400 .byte 3
michael@0 401 .byte 0
michael@0 402 .byte 1
michael@0 403 .byte 0
michael@0 404 .byte 1
michael@0 405 .byte 0
michael@0 406 .byte 4
michael@0 407 .byte 0
michael@0 408 .byte 1
michael@0 409 .byte 0
michael@0 410 .byte 1
michael@0 411 .byte 0
michael@0 412 .byte 1
michael@0 413 .byte 0
michael@0 414 .byte 1
michael@0 415 .byte 0
michael@0 416 .byte 1
michael@0 417 .byte 0
michael@0 418 .byte 1
michael@0 419 .byte 0
michael@0 420 .byte 1
michael@0 421 .byte 0
michael@0 422 .byte 1
michael@0 423 .byte 0
michael@0 424 .byte 1
michael@0 425 .byte 0
michael@0 426 .byte 1
michael@0 427 .byte 0
michael@0 428 .byte 1
michael@0 429 .byte 0
michael@0 430 .byte 1
michael@0 431 .byte 0
michael@0 432 .byte 1
michael@0 433 .byte 0
michael@0 434 .byte 1
michael@0 435 .byte 0
michael@0 436 .byte 1
michael@0 437 .byte 0
michael@0 438 .byte 1
michael@0 439 .byte 0
michael@0 440 .byte 1
michael@0 441 .byte 0
michael@0 442 .byte 1
michael@0 443 .byte 0
michael@0 444 .byte 1
michael@0 445 .byte 0
michael@0 446 .byte 1
michael@0 447 .byte 0
michael@0 448 .byte 1
michael@0 449 .byte 0
michael@0 450 .byte 1
michael@0 451 .byte 0
michael@0 452 .byte 1
michael@0 453 .byte 0
michael@0 454 .byte 1
michael@0 455 .byte 0
michael@0 456 .byte 1
michael@0 457 .byte 0
michael@0 458 .byte 1
michael@0 459 .byte 0
michael@0 460 .byte 1
michael@0 461 .byte 0
michael@0 462 .byte 1
michael@0 463 .byte 0
michael@0 464 .byte 1
michael@0 465 .byte 0
michael@0 466 .byte 1
michael@0 467 .byte 0
michael@0 468 .byte 1
michael@0 469 .byte 0
michael@0 470 .byte 1
michael@0 471 .byte 0
michael@0 472 .byte 1
michael@0 473 .byte 0
michael@0 474 .byte 1
michael@0 475 .byte 0
michael@0 476 .byte 1
michael@0 477 .byte 0
michael@0 478 .byte 1
michael@0 479 .byte 0
michael@0 480 .byte 1
michael@0 481 .byte 0
michael@0 482 .byte 1
michael@0 483 .byte 0
michael@0 484 .byte 1
michael@0 485 .byte 0
michael@0 486 .byte 1
michael@0 487 .byte 0
michael@0 488 .byte 1
michael@0 489 .byte 0
michael@0 490 .byte 1
michael@0 491 .byte 0
michael@0 492 .byte 1
michael@0 493 .byte 0
michael@0 494 .byte 1
michael@0 495 .byte 0
michael@0 496 .byte 1
michael@0 497 .byte 0
michael@0 498 .byte 1
michael@0 499 .byte 0
michael@0 500 .byte 1
michael@0 501 .byte 0
michael@0 502 .byte 1
michael@0 503 .byte 0
michael@0 504 .byte 1
michael@0 505 .byte 0
michael@0 506 .byte 1
michael@0 507 .byte 0
michael@0 508 .byte 1
michael@0 509 .byte 0
michael@0 510 .byte 1
michael@0 511 .byte 0
michael@0 512 .byte 1
michael@0 513 .byte 0
michael@0 514 .byte 1
michael@0 515 .byte 0
michael@0 516 .byte 1
michael@0 517 .byte 0
michael@0 518 .byte 1
michael@0 519 .byte 0
michael@0 520 .byte 1
michael@0 521 .byte 0
michael@0 522 .byte 1
michael@0 523 .byte 0
michael@0 524 .byte 1
michael@0 525 .byte 0
michael@0 526 .byte 1
michael@0 527 .byte 0
michael@0 528 .byte 1
michael@0 529 .byte 0
michael@0 530 .byte 1
michael@0 531 .byte 0
michael@0 532 .byte 1
michael@0 533 .byte 0
michael@0 534 .byte 1
michael@0 535 .byte 0
michael@0 536 .byte 1
michael@0 537 .byte 0
michael@0 538 .byte 1
michael@0 539 .byte 0
michael@0 540 .byte 1
michael@0 541 .byte 0
michael@0 542 .byte 1
michael@0 543 .byte 0
michael@0 544 .byte 1
michael@0 545 .byte 0
michael@0 546 .byte 1
michael@0 547 .byte 0
michael@0 548 .byte 1
michael@0 549 .byte 0
michael@0 550 .byte 1
michael@0 551 .byte 0
michael@0 552 .byte 1
michael@0 553 .byte 0
michael@0 554 .byte 1
michael@0 555 .byte 0
michael@0 556 .byte 1
michael@0 557 .byte 0
michael@0 558 .byte 1
michael@0 559 .byte 0
michael@0 560 .text
michael@0 561 .align 16
michael@0 562 .globl freebl_cpuid
michael@0 563 .type freebl_cpuid, @function
michael@0 564 freebl_cpuid:
michael@0 565 .LFB2:
michael@0 566 movq %rdx, %r10
michael@0 567 pushq %rbx
michael@0 568 .LCFI0:
michael@0 569 movq %rcx, %r11
michael@0 570 movq %rdi, %rax
michael@0 571 /APP
michael@0 572 cpuid
michael@0 573
michael@0 574 /NO_APP
michael@0 575 movq %rax, (%rsi)
michael@0 576 movq %rbx, (%r10)
michael@0 577 popq %rbx
michael@0 578 movq %rcx, (%r11)
michael@0 579 movq %rdx, (%r8)
michael@0 580 ret
michael@0 581 .LFE2:
michael@0 582 .size freebl_cpuid, .-freebl_cpuid
michael@0 583 .align 16
michael@0 584 .type getIntelCacheEntryLineSize, @function
michael@0 585 getIntelCacheEntryLineSize:
michael@0 586 .LFB3:
michael@0 587 leaq CacheMap(%rip), %r9
michael@0 588 movq %rdx, %r10
michael@0 589 movzbl 1(%r9,%rdi,2), %ecx
michael@0 590 movzbl (%r9,%rdi,2), %r8d
michael@0 591 testb %cl, %cl
michael@0 592 je .L2
michael@0 593 cmpl $6, %r8d
michael@0 594 sete %dl
michael@0 595 cmpl $8, %r8d
michael@0 596 sete %al
michael@0 597 orl %edx, %eax
michael@0 598 testb $1, %al
michael@0 599 je .L4
michael@0 600 movl $1, (%rsi)
michael@0 601 .L9:
michael@0 602 movzbl %cl, %eax
michael@0 603 movq %rax, (%r10)
michael@0 604 ret
michael@0 605 .align 16
michael@0 606 .L4:
michael@0 607 movl (%rsi), %r11d
michael@0 608 cmpl $1, %r11d
michael@0 609 jg .L11
michael@0 610 .L6:
michael@0 611 cmpl $2, %r11d
michael@0 612 jle .L2
michael@0 613 cmpl $12, %r8d
michael@0 614 sete %dl
michael@0 615 cmpl $14, %r8d
michael@0 616 sete %al
michael@0 617 orl %edx, %eax
michael@0 618 testb $1, %al
michael@0 619 je .L2
michael@0 620 movzbq 1(%r9,%rdi,2), %rax
michael@0 621 movl $3, (%rsi)
michael@0 622 movq %rax, (%r10)
michael@0 623 .align 16
michael@0 624 .L2:
michael@0 625 rep ; ret
michael@0 626 .align 16
michael@0 627 .L11:
michael@0 628 cmpl $9, %r8d
michael@0 629 sete %dl
michael@0 630 cmpl $11, %r8d
michael@0 631 sete %al
michael@0 632 orl %edx, %eax
michael@0 633 testb $1, %al
michael@0 634 je .L6
michael@0 635 movl $2, (%rsi)
michael@0 636 jmp .L9
michael@0 637 .LFE3:
michael@0 638 .size getIntelCacheEntryLineSize, .-getIntelCacheEntryLineSize
michael@0 639 .align 16
michael@0 640 .type getIntelRegisterCacheLineSize, @function
michael@0 641 getIntelRegisterCacheLineSize:
michael@0 642 .LFB4:
michael@0 643 pushq %rbp
michael@0 644 .LCFI1:
michael@0 645 movq %rsp, %rbp
michael@0 646 .LCFI2:
michael@0 647 movq %rbx, -24(%rbp)
michael@0 648 .LCFI3:
michael@0 649 movq %rdi, %rbx
michael@0 650 shrq $24, %rdi
michael@0 651 movq %r12, -16(%rbp)
michael@0 652 .LCFI4:
michael@0 653 movq %r13, -8(%rbp)
michael@0 654 .LCFI5:
michael@0 655 andl $255, %edi
michael@0 656 subq $24, %rsp
michael@0 657 .LCFI6:
michael@0 658 movq %rsi, %r13
michael@0 659 movq %rdx, %r12
michael@0 660 call getIntelCacheEntryLineSize
michael@0 661 movq %rbx, %rdi
michael@0 662 movq %r12, %rdx
michael@0 663 movq %r13, %rsi
michael@0 664 shrq $16, %rdi
michael@0 665 andl $255, %edi
michael@0 666 call getIntelCacheEntryLineSize
michael@0 667 movq %rbx, %rdi
michael@0 668 movq %r12, %rdx
michael@0 669 movq %r13, %rsi
michael@0 670 shrq $8, %rdi
michael@0 671 andl $255, %ebx
michael@0 672 andl $255, %edi
michael@0 673 call getIntelCacheEntryLineSize
michael@0 674 movq %r12, %rdx
michael@0 675 movq %r13, %rsi
michael@0 676 movq %rbx, %rdi
michael@0 677 movq 8(%rsp), %r12
michael@0 678 movq (%rsp), %rbx
michael@0 679 movq 16(%rsp), %r13
michael@0 680 leave
michael@0 681 jmp getIntelCacheEntryLineSize
michael@0 682 .LFE4:
michael@0 683 .size getIntelRegisterCacheLineSize, .-getIntelRegisterCacheLineSize
michael@0 684 .align 16
michael@0 685 .globl s_mpi_getProcessorLineSize
michael@0 686 .type s_mpi_getProcessorLineSize, @function
michael@0 687 s_mpi_getProcessorLineSize:
michael@0 688 .LFB7:
michael@0 689 pushq %rbp
michael@0 690 .LCFI7:
michael@0 691 xorl %edi, %edi
michael@0 692 movq %rsp, %rbp
michael@0 693 .LCFI8:
michael@0 694 pushq %r15
michael@0 695 .LCFI9:
michael@0 696 leaq -136(%rbp), %r8
michael@0 697 leaq -144(%rbp), %rcx
michael@0 698 leaq -152(%rbp), %rdx
michael@0 699 pushq %r14
michael@0 700 .LCFI10:
michael@0 701 leaq -160(%rbp), %rsi
michael@0 702 leaq -128(%rbp), %r14
michael@0 703 pushq %r13
michael@0 704 .LCFI11:
michael@0 705 leaq manMap(%rip), %r13
michael@0 706 pushq %r12
michael@0 707 .LCFI12:
michael@0 708 movl $9, %r12d
michael@0 709 pushq %rbx
michael@0 710 .LCFI13:
michael@0 711 xorl %ebx, %ebx
michael@0 712 subq $200, %rsp
michael@0 713 .LCFI14:
michael@0 714 call freebl_cpuid
michael@0 715 movq -152(%rbp), %rax
michael@0 716 movq -160(%rbp), %r15
michael@0 717 movb $0, -116(%rbp)
michael@0 718 movl %eax, -128(%rbp)
michael@0 719 movq -136(%rbp), %rax
michael@0 720 movl %eax, -124(%rbp)
michael@0 721 movq -144(%rbp), %rax
michael@0 722 movl %eax, -120(%rbp)
michael@0 723 .align 16
michael@0 724 .L18:
michael@0 725 movslq %ebx,%rax
michael@0 726 movq %r14, %rsi
michael@0 727 movq (%r13,%rax,8), %rdi
michael@0 728 call strcmp@PLT
michael@0 729 testl %eax, %eax
michael@0 730 cmove %ebx, %r12d
michael@0 731 incl %ebx
michael@0 732 cmpl $9, %ebx
michael@0 733 jle .L18
michael@0 734 testl %r12d, %r12d
michael@0 735 jne .L19
michael@0 736 xorl %eax, %eax
michael@0 737 decl %r15d
michael@0 738 movl $4, -204(%rbp)
michael@0 739 movq $0, -200(%rbp)
michael@0 740 jle .L21
michael@0 741 leaq -168(%rbp), %r8
michael@0 742 leaq -176(%rbp), %rcx
michael@0 743 leaq -184(%rbp), %rdx
michael@0 744 leaq -192(%rbp), %rsi
michael@0 745 movl $2, %edi
michael@0 746 xorl %ebx, %ebx
michael@0 747 call freebl_cpuid
michael@0 748 movq -192(%rbp), %rdi
michael@0 749 movl %edi, %r12d
michael@0 750 andl $15, %r12d
michael@0 751 cmpl %r12d, %ebx
michael@0 752 jl .L30
michael@0 753 jmp .L38
michael@0 754 .align 16
michael@0 755 .L25:
michael@0 756 movq -184(%rbp), %rdi
michael@0 757 testl $2147483648, %edi
michael@0 758 je .L40
michael@0 759 .L26:
michael@0 760 movq -176(%rbp), %rdi
michael@0 761 testl $2147483648, %edi
michael@0 762 je .L41
michael@0 763 .L27:
michael@0 764 movq -168(%rbp), %rdi
michael@0 765 testl $2147483648, %edi
michael@0 766 je .L42
michael@0 767 .L28:
michael@0 768 incl %ebx
michael@0 769 cmpl %r12d, %ebx
michael@0 770 je .L24
michael@0 771 leaq -168(%rbp), %r8
michael@0 772 leaq -176(%rbp), %rcx
michael@0 773 leaq -184(%rbp), %rdx
michael@0 774 leaq -192(%rbp), %rsi
michael@0 775 movl $2, %edi
michael@0 776 call freebl_cpuid
michael@0 777 .L24:
michael@0 778 cmpl %r12d, %ebx
michael@0 779 jge .L38
michael@0 780 movq -192(%rbp), %rdi
michael@0 781 .L30:
michael@0 782 testl $2147483648, %edi
michael@0 783 jne .L25
michael@0 784 leaq -200(%rbp), %rdx
michael@0 785 leaq -204(%rbp), %rsi
michael@0 786 andl $4294967040, %edi
michael@0 787 call getIntelRegisterCacheLineSize
michael@0 788 movq -184(%rbp), %rdi
michael@0 789 testl $2147483648, %edi
michael@0 790 jne .L26
michael@0 791 .L40:
michael@0 792 leaq -200(%rbp), %rdx
michael@0 793 leaq -204(%rbp), %rsi
michael@0 794 call getIntelRegisterCacheLineSize
michael@0 795 movq -176(%rbp), %rdi
michael@0 796 testl $2147483648, %edi
michael@0 797 jne .L27
michael@0 798 .L41:
michael@0 799 leaq -200(%rbp), %rdx
michael@0 800 leaq -204(%rbp), %rsi
michael@0 801 call getIntelRegisterCacheLineSize
michael@0 802 movq -168(%rbp), %rdi
michael@0 803 testl $2147483648, %edi
michael@0 804 jne .L28
michael@0 805 .L42:
michael@0 806 leaq -200(%rbp), %rdx
michael@0 807 leaq -204(%rbp), %rsi
michael@0 808 call getIntelRegisterCacheLineSize
michael@0 809 jmp .L28
michael@0 810 .L38:
michael@0 811 movq -200(%rbp), %rax
michael@0 812 .L21:
michael@0 813 movq %rax, %rdx
michael@0 814 movl $32, %eax
michael@0 815 testq %rdx, %rdx
michael@0 816 cmoveq %rax, %rdx
michael@0 817 addq $200, %rsp
michael@0 818 popq %rbx
michael@0 819 popq %r12
michael@0 820 popq %r13
michael@0 821 popq %r14
michael@0 822 popq %r15
michael@0 823 leave
michael@0 824 movq %rdx, %rax
michael@0 825 ret
michael@0 826 .L19:
michael@0 827 leaq -216(%rbp), %r8
michael@0 828 leaq -224(%rbp), %rcx
michael@0 829 leaq -232(%rbp), %rdx
michael@0 830 leaq -240(%rbp), %rsi
michael@0 831 movl $2147483648, %edi
michael@0 832 xorl %ebx, %ebx
michael@0 833 call freebl_cpuid
michael@0 834 movl $2147483652, %eax
michael@0 835 cmpq %rax, -240(%rbp)
michael@0 836 ja .L43
michael@0 837 .L32:
michael@0 838 movq %rbx, %rdx
michael@0 839 movl $32, %eax
michael@0 840 testq %rdx, %rdx
michael@0 841 cmoveq %rax, %rdx
michael@0 842 addq $200, %rsp
michael@0 843 popq %rbx
michael@0 844 popq %r12
michael@0 845 popq %r13
michael@0 846 popq %r14
michael@0 847 popq %r15
michael@0 848 leave
michael@0 849 movq %rdx, %rax
michael@0 850 ret
michael@0 851 .L43:
michael@0 852 leaq -216(%rbp), %r8
michael@0 853 leaq -224(%rbp), %rcx
michael@0 854 leaq -232(%rbp), %rdx
michael@0 855 leaq -240(%rbp), %rsi
michael@0 856 movl $2147483653, %edi
michael@0 857 call freebl_cpuid
michael@0 858 movzbq -224(%rbp), %rbx
michael@0 859 jmp .L32
michael@0 860 .LFE7:
michael@0 861 .size s_mpi_getProcessorLineSize, .-s_mpi_getProcessorLineSize

mercurial