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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 | 560 |
561 __ vandps(xmm0, xmm9, xmm2); | 561 __ vandps(xmm0, xmm9, xmm2); |
562 __ vandps(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); | 562 __ vandps(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); |
563 __ vxorps(xmm0, xmm1, xmm9); | 563 __ vxorps(xmm0, xmm1, xmm9); |
564 __ vxorps(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 564 __ vxorps(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
565 | 565 |
566 __ vandpd(xmm0, xmm9, xmm2); | 566 __ vandpd(xmm0, xmm9, xmm2); |
567 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); | 567 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); |
568 __ vxorpd(xmm0, xmm1, xmm9); | 568 __ vxorpd(xmm0, xmm1, xmm9); |
569 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 569 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
| 570 |
| 571 __ vpcmpeqd(xmm0, xmm15, xmm5); |
| 572 __ vpcmpeqd(xmm15, xmm0, Operand(rbx, rcx, times_4, 10000)); |
| 573 __ vpsllq(xmm0, xmm15, 21); |
| 574 __ vpsrlq(xmm15, xmm0, 21); |
570 } | 575 } |
571 } | 576 } |
572 | 577 |
573 // FMA3 instruction | 578 // FMA3 instruction |
574 { | 579 { |
575 if (CpuFeatures::IsSupported(FMA3)) { | 580 if (CpuFeatures::IsSupported(FMA3)) { |
576 CpuFeatureScope scope(&assm, FMA3); | 581 CpuFeatureScope scope(&assm, FMA3); |
577 __ vfmadd132sd(xmm0, xmm1, xmm2); | 582 __ vfmadd132sd(xmm0, xmm1, xmm2); |
578 __ vfmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); | 583 __ vfmadd132sd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); |
579 __ vfmadd213sd(xmm0, xmm1, xmm2); | 584 __ vfmadd213sd(xmm0, xmm1, xmm2); |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 #ifdef OBJECT_PRINT | 759 #ifdef OBJECT_PRINT |
755 OFStream os(stdout); | 760 OFStream os(stdout); |
756 code->Print(os); | 761 code->Print(os); |
757 byte* begin = code->instruction_start(); | 762 byte* begin = code->instruction_start(); |
758 byte* end = begin + code->instruction_size(); | 763 byte* end = begin + code->instruction_size(); |
759 disasm::Disassembler::Disassemble(stdout, begin, end); | 764 disasm::Disassembler::Disassemble(stdout, begin, end); |
760 #endif | 765 #endif |
761 } | 766 } |
762 | 767 |
763 #undef __ | 768 #undef __ |
OLD | NEW |