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

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

Issue 2847683002: [ia32] Add cmpps/vcmpps for eq/lt/le/neq (Closed)
Patch Set: Created 3 years, 7 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 | « src/ia32/disasm-ia32.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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 __ subps(xmm1, Operand(ebx, ecx, times_4, 10000)); 422 __ subps(xmm1, Operand(ebx, ecx, times_4, 10000));
423 __ mulps(xmm1, xmm0); 423 __ mulps(xmm1, xmm0);
424 __ mulps(xmm1, Operand(ebx, ecx, times_4, 10000)); 424 __ mulps(xmm1, Operand(ebx, ecx, times_4, 10000));
425 __ divps(xmm1, xmm0); 425 __ divps(xmm1, xmm0);
426 __ divps(xmm1, Operand(ebx, ecx, times_4, 10000)); 426 __ divps(xmm1, Operand(ebx, ecx, times_4, 10000));
427 __ minps(xmm1, xmm0); 427 __ minps(xmm1, xmm0);
428 __ minps(xmm1, Operand(ebx, ecx, times_4, 10000)); 428 __ minps(xmm1, Operand(ebx, ecx, times_4, 10000));
429 __ maxps(xmm1, xmm0); 429 __ maxps(xmm1, xmm0);
430 __ maxps(xmm1, Operand(ebx, ecx, times_4, 10000)); 430 __ maxps(xmm1, Operand(ebx, ecx, times_4, 10000));
431 431
432 __ cmpeqps(xmm5, xmm1);
433 __ cmpeqps(xmm5, Operand(ebx, ecx, times_4, 10000));
434 __ cmpltps(xmm5, xmm1);
435 __ cmpltps(xmm5, Operand(ebx, ecx, times_4, 10000));
436 __ cmpleps(xmm5, xmm1);
437 __ cmpleps(xmm5, Operand(ebx, ecx, times_4, 10000));
438 __ cmpneqps(xmm5, xmm1);
439 __ cmpneqps(xmm5, Operand(ebx, ecx, times_4, 10000));
440
432 __ ucomiss(xmm0, xmm1); 441 __ ucomiss(xmm0, xmm1);
433 __ ucomiss(xmm0, Operand(ebx, ecx, times_4, 10000)); 442 __ ucomiss(xmm0, Operand(ebx, ecx, times_4, 10000));
434 } 443 }
435 { 444 {
436 __ cvttss2si(edx, Operand(ebx, ecx, times_4, 10000)); 445 __ cvttss2si(edx, Operand(ebx, ecx, times_4, 10000));
437 __ cvtsi2sd(xmm1, Operand(ebx, ecx, times_4, 10000)); 446 __ cvtsi2sd(xmm1, Operand(ebx, ecx, times_4, 10000));
438 __ cvtss2sd(xmm1, Operand(ebx, ecx, times_4, 10000)); 447 __ cvtss2sd(xmm1, Operand(ebx, ecx, times_4, 10000));
439 __ cvtss2sd(xmm1, xmm0); 448 __ cvtss2sd(xmm1, xmm0);
440 __ movsd(xmm1, Operand(ebx, ecx, times_4, 10000)); 449 __ movsd(xmm1, Operand(ebx, ecx, times_4, 10000));
441 __ movsd(Operand(ebx, ecx, times_4, 10000), xmm1); 450 __ movsd(Operand(ebx, ecx, times_4, 10000), xmm1);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 __ vmulps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 569 __ vmulps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
561 __ vsubps(xmm0, xmm1, xmm2); 570 __ vsubps(xmm0, xmm1, xmm2);
562 __ vsubps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 571 __ vsubps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
563 __ vminps(xmm0, xmm1, xmm2); 572 __ vminps(xmm0, xmm1, xmm2);
564 __ vminps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 573 __ vminps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
565 __ vdivps(xmm0, xmm1, xmm2); 574 __ vdivps(xmm0, xmm1, xmm2);
566 __ vdivps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 575 __ vdivps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
567 __ vmaxps(xmm0, xmm1, xmm2); 576 __ vmaxps(xmm0, xmm1, xmm2);
568 __ vmaxps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 577 __ vmaxps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
569 578
579 __ vcmpeqps(xmm5, xmm4, xmm1);
580 __ vcmpeqps(xmm5, xmm4, Operand(ebx, ecx, times_4, 10000));
581 __ vcmpltps(xmm5, xmm4, xmm1);
582 __ vcmpltps(xmm5, xmm4, Operand(ebx, ecx, times_4, 10000));
583 __ vcmpleps(xmm5, xmm4, xmm1);
584 __ vcmpleps(xmm5, xmm4, Operand(ebx, ecx, times_4, 10000));
585 __ vcmpneqps(xmm5, xmm4, xmm1);
586 __ vcmpneqps(xmm5, xmm4, Operand(ebx, ecx, times_4, 10000));
587
570 __ vandpd(xmm0, xmm1, xmm2); 588 __ vandpd(xmm0, xmm1, xmm2);
571 __ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 589 __ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
572 __ vxorpd(xmm0, xmm1, xmm2); 590 __ vxorpd(xmm0, xmm1, xmm2);
573 __ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 591 __ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
574 __ vaddpd(xmm0, xmm1, xmm2); 592 __ vaddpd(xmm0, xmm1, xmm2);
575 __ vaddpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 593 __ vaddpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
576 __ vmulpd(xmm0, xmm1, xmm2); 594 __ vmulpd(xmm0, xmm1, xmm2);
577 __ vmulpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 595 __ vmulpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
578 __ vsubpd(xmm0, xmm1, xmm2); 596 __ vsubpd(xmm0, xmm1, xmm2);
579 __ vsubpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 597 __ vsubpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 #ifdef OBJECT_PRINT 788 #ifdef OBJECT_PRINT
771 OFStream os(stdout); 789 OFStream os(stdout);
772 code->Print(os); 790 code->Print(os);
773 byte* begin = code->instruction_start(); 791 byte* begin = code->instruction_start();
774 byte* end = begin + code->instruction_size(); 792 byte* end = begin + code->instruction_size();
775 disasm::Disassembler::Disassemble(stdout, begin, end); 793 disasm::Disassembler::Disassemble(stdout, begin, end);
776 #endif 794 #endif
777 } 795 }
778 796
779 #undef __ 797 #undef __
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698