| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 if (CpuFeatures::IsSupported(SSE4_1)) { | 493 if (CpuFeatures::IsSupported(SSE4_1)) { |
| 494 CpuFeatureScope scope(&assm, SSE4_1); | 494 CpuFeatureScope scope(&assm, SSE4_1); |
| 495 __ insertps(xmm5, xmm1, 123); | 495 __ insertps(xmm5, xmm1, 123); |
| 496 __ extractps(rax, xmm1, 0); | 496 __ extractps(rax, xmm1, 0); |
| 497 __ pextrd(rbx, xmm15, 0); | 497 __ pextrd(rbx, xmm15, 0); |
| 498 __ pextrd(r12, xmm0, 1); | 498 __ pextrd(r12, xmm0, 1); |
| 499 __ pinsrd(xmm9, r9, 0); | 499 __ pinsrd(xmm9, r9, 0); |
| 500 __ pinsrd(xmm5, Operand(rax, 4), 1); | 500 __ pinsrd(xmm5, Operand(rax, 4), 1); |
| 501 | 501 |
| 502 __ cmpps(xmm5, xmm1, 1); | 502 __ cmpps(xmm5, xmm1, 1); |
| 503 __ cmpps(xmm5, Operand(rbx, rcx, times_4, 10000), 1); |
| 503 __ cmpeqps(xmm5, xmm1); | 504 __ cmpeqps(xmm5, xmm1); |
| 505 __ cmpeqps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 504 __ cmpltps(xmm5, xmm1); | 506 __ cmpltps(xmm5, xmm1); |
| 507 __ cmpltps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 505 __ cmpleps(xmm5, xmm1); | 508 __ cmpleps(xmm5, xmm1); |
| 509 __ cmpleps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 506 __ cmpneqps(xmm5, xmm1); | 510 __ cmpneqps(xmm5, xmm1); |
| 511 __ cmpneqps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 507 __ cmpnltps(xmm5, xmm1); | 512 __ cmpnltps(xmm5, xmm1); |
| 513 __ cmpnltps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 508 __ cmpnleps(xmm5, xmm1); | 514 __ cmpnleps(xmm5, xmm1); |
| 515 __ cmpnleps(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 516 __ cmppd(xmm5, xmm1, 1); |
| 517 __ cmppd(xmm5, Operand(rbx, rcx, times_4, 10000), 1); |
| 518 __ cmpeqpd(xmm5, xmm1); |
| 519 __ cmpeqpd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 520 __ cmpltpd(xmm5, xmm1); |
| 521 __ cmpltpd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 522 __ cmplepd(xmm5, xmm1); |
| 523 __ cmplepd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 524 __ cmpneqpd(xmm5, xmm1); |
| 525 __ cmpneqpd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 526 __ cmpnltpd(xmm5, xmm1); |
| 527 __ cmpnltpd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 528 __ cmpnlepd(xmm5, xmm1); |
| 529 __ cmpnlepd(xmm5, Operand(rbx, rcx, times_4, 10000)); |
| 509 | 530 |
| 510 __ minps(xmm5, xmm1); | 531 __ minps(xmm5, xmm1); |
| 511 __ minps(xmm5, Operand(rdx, 4)); | 532 __ minps(xmm5, Operand(rdx, 4)); |
| 512 __ maxps(xmm5, xmm1); | 533 __ maxps(xmm5, xmm1); |
| 513 __ maxps(xmm5, Operand(rdx, 4)); | 534 __ maxps(xmm5, Operand(rdx, 4)); |
| 514 __ rcpps(xmm5, xmm1); | 535 __ rcpps(xmm5, xmm1); |
| 515 __ rcpps(xmm5, Operand(rdx, 4)); | 536 __ rcpps(xmm5, Operand(rdx, 4)); |
| 516 __ sqrtps(xmm5, xmm1); | 537 __ sqrtps(xmm5, xmm1); |
| 517 __ sqrtps(xmm5, Operand(rdx, 4)); | 538 __ sqrtps(xmm5, Operand(rdx, 4)); |
| 518 __ movups(xmm5, xmm1); | 539 __ movups(xmm5, xmm1); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); | 642 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); |
| 622 __ vorpd(xmm0, xmm1, xmm9); | 643 __ vorpd(xmm0, xmm1, xmm9); |
| 623 __ vorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 644 __ vorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
| 624 __ vxorpd(xmm0, xmm1, xmm9); | 645 __ vxorpd(xmm0, xmm1, xmm9); |
| 625 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 646 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
| 626 | 647 |
| 627 __ vpcmpeqd(xmm0, xmm15, xmm5); | 648 __ vpcmpeqd(xmm0, xmm15, xmm5); |
| 628 __ vpcmpeqd(xmm15, xmm0, Operand(rbx, rcx, times_4, 10000)); | 649 __ vpcmpeqd(xmm15, xmm0, Operand(rbx, rcx, times_4, 10000)); |
| 629 __ vpsllq(xmm0, xmm15, 21); | 650 __ vpsllq(xmm0, xmm15, 21); |
| 630 __ vpsrlq(xmm15, xmm0, 21); | 651 __ vpsrlq(xmm15, xmm0, 21); |
| 652 |
| 653 __ vcmpps(xmm5, xmm4, xmm1, 1); |
| 654 __ vcmpps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000), 1); |
| 655 __ vcmpeqps(xmm5, xmm4, xmm1); |
| 656 __ vcmpeqps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 657 __ vcmpltps(xmm5, xmm4, xmm1); |
| 658 __ vcmpltps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 659 __ vcmpleps(xmm5, xmm4, xmm1); |
| 660 __ vcmpleps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 661 __ vcmpneqps(xmm5, xmm4, xmm1); |
| 662 __ vcmpneqps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 663 __ vcmpnltps(xmm5, xmm4, xmm1); |
| 664 __ vcmpnltps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 665 __ vcmpnleps(xmm5, xmm4, xmm1); |
| 666 __ vcmpnleps(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 667 __ vcmppd(xmm5, xmm4, xmm1, 1); |
| 668 __ vcmppd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000), 1); |
| 669 __ vcmpeqpd(xmm5, xmm4, xmm1); |
| 670 __ vcmpeqpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 671 __ vcmpltpd(xmm5, xmm4, xmm1); |
| 672 __ vcmpltpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 673 __ vcmplepd(xmm5, xmm4, xmm1); |
| 674 __ vcmplepd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 675 __ vcmpneqpd(xmm5, xmm4, xmm1); |
| 676 __ vcmpneqpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 677 __ vcmpnltpd(xmm5, xmm4, xmm1); |
| 678 __ vcmpnltpd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 679 __ vcmpnlepd(xmm5, xmm4, xmm1); |
| 680 __ vcmpnlepd(xmm5, xmm4, Operand(rbx, rcx, times_4, 10000)); |
| 631 } | 681 } |
| 632 } | 682 } |
| 633 | 683 |
| 634 // FMA3 instruction | 684 // FMA3 instruction |
| 635 { | 685 { |
| 636 if (CpuFeatures::IsSupported(FMA3)) { | 686 if (CpuFeatures::IsSupported(FMA3)) { |
| 637 CpuFeatureScope scope(&assm, FMA3); | 687 CpuFeatureScope scope(&assm, FMA3); |
| 638 __ vfmadd132sd(xmm0, xmm1, xmm2); | 688 __ vfmadd132sd(xmm0, xmm1, xmm2); |
| 639 __ vfmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 689 __ vfmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
| 640 __ vfmadd213sd(xmm0, xmm1, xmm2); | 690 __ vfmadd213sd(xmm0, xmm1, xmm2); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 #ifdef OBJECT_PRINT | 884 #ifdef OBJECT_PRINT |
| 835 OFStream os(stdout); | 885 OFStream os(stdout); |
| 836 code->Print(os); | 886 code->Print(os); |
| 837 byte* begin = code->instruction_start(); | 887 byte* begin = code->instruction_start(); |
| 838 byte* end = begin + code->instruction_size(); | 888 byte* end = begin + code->instruction_size(); |
| 839 disasm::Disassembler::Disassemble(stdout, begin, end); | 889 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 840 #endif | 890 #endif |
| 841 } | 891 } |
| 842 | 892 |
| 843 #undef __ | 893 #undef __ |
| OLD | NEW |