| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 __ movdqu(Operand(ebx, ecx, times_4, 10000), xmm0); | 435 __ movdqu(Operand(ebx, ecx, times_4, 10000), xmm0); |
| 436 | 436 |
| 437 __ addsd(xmm1, xmm0); | 437 __ addsd(xmm1, xmm0); |
| 438 __ addsd(xmm1, Operand(ebx, ecx, times_4, 10000)); | 438 __ addsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 439 __ mulsd(xmm1, xmm0); | 439 __ mulsd(xmm1, xmm0); |
| 440 __ mulsd(xmm1, Operand(ebx, ecx, times_4, 10000)); | 440 __ mulsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 441 __ subsd(xmm1, xmm0); | 441 __ subsd(xmm1, xmm0); |
| 442 __ subsd(xmm1, Operand(ebx, ecx, times_4, 10000)); | 442 __ subsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 443 __ divsd(xmm1, xmm0); | 443 __ divsd(xmm1, xmm0); |
| 444 __ divsd(xmm1, Operand(ebx, ecx, times_4, 10000)); | 444 __ divsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 445 __ minsd(xmm1, xmm0); |
| 446 __ minsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 447 __ maxsd(xmm1, xmm0); |
| 448 __ maxsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 445 __ ucomisd(xmm0, xmm1); | 449 __ ucomisd(xmm0, xmm1); |
| 446 __ cmpltsd(xmm0, xmm1); | 450 __ cmpltsd(xmm0, xmm1); |
| 447 | 451 |
| 448 __ andpd(xmm0, xmm1); | 452 __ andpd(xmm0, xmm1); |
| 449 __ psllq(xmm0, 17); | 453 __ psllq(xmm0, 17); |
| 450 __ psllq(xmm0, xmm1); | 454 __ psllq(xmm0, xmm1); |
| 451 __ psrlq(xmm0, 17); | 455 __ psrlq(xmm0, 17); |
| 452 __ psrlq(xmm0, xmm1); | 456 __ psrlq(xmm0, xmm1); |
| 453 __ por(xmm0, xmm1); | 457 __ por(xmm0, xmm1); |
| 454 | 458 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 if (CpuFeatures::IsSupported(AVX)) { | 496 if (CpuFeatures::IsSupported(AVX)) { |
| 493 CpuFeatureScope scope(&assm, AVX); | 497 CpuFeatureScope scope(&assm, AVX); |
| 494 __ vaddsd(xmm0, xmm1, xmm2); | 498 __ vaddsd(xmm0, xmm1, xmm2); |
| 495 __ vaddsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); | 499 __ vaddsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 496 __ vmulsd(xmm0, xmm1, xmm2); | 500 __ vmulsd(xmm0, xmm1, xmm2); |
| 497 __ vmulsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); | 501 __ vmulsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 498 __ vsubsd(xmm0, xmm1, xmm2); | 502 __ vsubsd(xmm0, xmm1, xmm2); |
| 499 __ vsubsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); | 503 __ vsubsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 500 __ vdivsd(xmm0, xmm1, xmm2); | 504 __ vdivsd(xmm0, xmm1, xmm2); |
| 501 __ vdivsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); | 505 __ vdivsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 506 __ vminsd(xmm0, xmm1, xmm2); |
| 507 __ vminsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 508 __ vmaxsd(xmm0, xmm1, xmm2); |
| 509 __ vmaxsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 502 } | 510 } |
| 503 } | 511 } |
| 504 | 512 |
| 505 // FMA3 instruction | 513 // FMA3 instruction |
| 506 { | 514 { |
| 507 if (CpuFeatures::IsSupported(FMA3)) { | 515 if (CpuFeatures::IsSupported(FMA3)) { |
| 508 CpuFeatureScope scope(&assm, FMA3); | 516 CpuFeatureScope scope(&assm, FMA3); |
| 509 __ vfmadd132sd(xmm0, xmm1, xmm2); | 517 __ vfmadd132sd(xmm0, xmm1, xmm2); |
| 510 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); | 518 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 511 __ vfmadd213sd(xmm0, xmm1, xmm2); | 519 __ vfmadd213sd(xmm0, xmm1, xmm2); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 #ifdef OBJECT_PRINT | 595 #ifdef OBJECT_PRINT |
| 588 OFStream os(stdout); | 596 OFStream os(stdout); |
| 589 code->Print(os); | 597 code->Print(os); |
| 590 byte* begin = code->instruction_start(); | 598 byte* begin = code->instruction_start(); |
| 591 byte* end = begin + code->instruction_size(); | 599 byte* end = begin + code->instruction_size(); |
| 592 disasm::Disassembler::Disassemble(stdout, begin, end); | 600 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 593 #endif | 601 #endif |
| 594 } | 602 } |
| 595 | 603 |
| 596 #undef __ | 604 #undef __ |
| OLD | NEW |