Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: test/cctest/test-disasm-x64.cc

Issue 1411023002: [x64] Emit vmovmskpd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/test-assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 __ vucomiss(xmm9, xmm1); 511 __ vucomiss(xmm9, xmm1);
512 __ vucomiss(xmm8, Operand(rbx, rdx, times_2, 10981)); 512 __ vucomiss(xmm8, Operand(rbx, rdx, times_2, 10981));
513 513
514 __ vmovd(xmm5, rdi); 514 __ vmovd(xmm5, rdi);
515 __ vmovd(xmm9, Operand(rbx, rcx, times_4, 10000)); 515 __ vmovd(xmm9, Operand(rbx, rcx, times_4, 10000));
516 __ vmovd(r9, xmm6); 516 __ vmovd(r9, xmm6);
517 __ vmovq(xmm5, rdi); 517 __ vmovq(xmm5, rdi);
518 __ vmovq(xmm9, Operand(rbx, rcx, times_4, 10000)); 518 __ vmovq(xmm9, Operand(rbx, rcx, times_4, 10000));
519 __ vmovq(r9, xmm6); 519 __ vmovq(r9, xmm6);
520 520
521 __ vmovapd(xmm7, xmm0);
522 __ vmovsd(xmm6, xmm2); 521 __ vmovsd(xmm6, xmm2);
523 __ vmovsd(xmm9, Operand(rbx, rcx, times_4, 10000)); 522 __ vmovsd(xmm9, Operand(rbx, rcx, times_4, 10000));
524 __ vmovsd(Operand(rbx, rcx, times_4, 10000), xmm0); 523 __ vmovsd(Operand(rbx, rcx, times_4, 10000), xmm0);
525 524
526 __ vaddsd(xmm0, xmm1, xmm2); 525 __ vaddsd(xmm0, xmm1, xmm2);
527 __ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 526 __ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
528 __ vmulsd(xmm0, xmm1, xmm2); 527 __ vmulsd(xmm0, xmm1, xmm2);
529 __ vmulsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 528 __ vmulsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
530 __ vsubsd(xmm0, xmm1, xmm2); 529 __ vsubsd(xmm0, xmm1, xmm2);
531 __ vsubsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 530 __ vsubsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
532 __ vdivsd(xmm0, xmm1, xmm2); 531 __ vdivsd(xmm0, xmm1, xmm2);
533 __ vdivsd(xmm0, xmm1, Operand(rbx, rcx, times_2, 10000)); 532 __ vdivsd(xmm0, xmm1, Operand(rbx, rcx, times_2, 10000));
534 __ vminsd(xmm8, xmm1, xmm2); 533 __ vminsd(xmm8, xmm1, xmm2);
535 __ vminsd(xmm9, xmm1, Operand(rbx, rcx, times_8, 10000)); 534 __ vminsd(xmm9, xmm1, Operand(rbx, rcx, times_8, 10000));
536 __ vmaxsd(xmm8, xmm1, xmm2); 535 __ vmaxsd(xmm8, xmm1, xmm2);
537 __ vmaxsd(xmm9, xmm1, Operand(rbx, rcx, times_1, 10000)); 536 __ vmaxsd(xmm9, xmm1, Operand(rbx, rcx, times_1, 10000));
538 __ vucomisd(xmm9, xmm1); 537 __ vucomisd(xmm9, xmm1);
539 __ vucomisd(xmm8, Operand(rbx, rdx, times_2, 10981)); 538 __ vucomisd(xmm8, Operand(rbx, rdx, times_2, 10981));
540 539
541 __ vcvtlsi2sd(xmm5, xmm9, rcx); 540 __ vcvtlsi2sd(xmm5, xmm9, rcx);
542 __ vcvtlsi2sd(xmm9, xmm3, Operand(rbx, r9, times_4, 10000)); 541 __ vcvtlsi2sd(xmm9, xmm3, Operand(rbx, r9, times_4, 10000));
543 __ vcvttsd2si(r9, xmm6); 542 __ vcvttsd2si(r9, xmm6);
544 __ vcvttsd2si(rax, Operand(rbx, r9, times_4, 10000)); 543 __ vcvttsd2si(rax, Operand(rbx, r9, times_4, 10000));
545 __ vcvttsd2siq(rdi, xmm9); 544 __ vcvttsd2siq(rdi, xmm9);
546 __ vcvttsd2siq(r8, Operand(r9, rbx, times_4, 10000)); 545 __ vcvttsd2siq(r8, Operand(r9, rbx, times_4, 10000));
547 546
547 __ vmovapd(xmm7, xmm0);
548 __ vmovmskpd(r9, xmm4);
549
548 __ vandps(xmm0, xmm9, xmm2); 550 __ vandps(xmm0, xmm9, xmm2);
549 __ vandps(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); 551 __ vandps(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000));
550 __ vxorps(xmm0, xmm1, xmm9); 552 __ vxorps(xmm0, xmm1, xmm9);
551 __ vxorps(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 553 __ vxorps(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
552 554
553 __ vandpd(xmm0, xmm9, xmm2); 555 __ vandpd(xmm0, xmm9, xmm2);
554 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000)); 556 __ vandpd(xmm9, xmm1, Operand(rbx, rcx, times_4, 10000));
555 __ vxorpd(xmm0, xmm1, xmm9); 557 __ vxorpd(xmm0, xmm1, xmm9);
556 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000)); 558 __ vxorpd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
557 } 559 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 #ifdef OBJECT_PRINT 743 #ifdef OBJECT_PRINT
742 OFStream os(stdout); 744 OFStream os(stdout);
743 code->Print(os); 745 code->Print(os);
744 byte* begin = code->instruction_start(); 746 byte* begin = code->instruction_start();
745 byte* end = begin + code->instruction_size(); 747 byte* end = begin + code->instruction_size();
746 disasm::Disassembler::Disassemble(stdout, begin, end); 748 disasm::Disassembler::Disassemble(stdout, begin, end);
747 #endif 749 #endif
748 } 750 }
749 751
750 #undef __ 752 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698