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

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

Issue 1072343002: [x86] Introduce vandps/vandpd/vxorps/vxorpd. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 8 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/x64/disasm-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 __ vmulss(xmm0, xmm1, xmm2); 518 __ vmulss(xmm0, xmm1, xmm2);
519 __ vmulss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 519 __ vmulss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
520 __ vsubss(xmm0, xmm1, xmm2); 520 __ vsubss(xmm0, xmm1, xmm2);
521 __ vsubss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 521 __ vsubss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
522 __ vdivss(xmm0, xmm1, xmm2); 522 __ vdivss(xmm0, xmm1, xmm2);
523 __ vdivss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 523 __ vdivss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
524 __ vminss(xmm0, xmm1, xmm2); 524 __ vminss(xmm0, xmm1, xmm2);
525 __ vminss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 525 __ vminss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
526 __ vmaxss(xmm0, xmm1, xmm2); 526 __ vmaxss(xmm0, xmm1, xmm2);
527 __ vmaxss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 527 __ vmaxss(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
528
529 __ vandps(xmm0, xmm1, xmm2);
530 __ vandps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
531 __ vxorps(xmm0, xmm1, xmm2);
532 __ vxorps(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
533
534 __ vandpd(xmm0, xmm1, xmm2);
535 __ vandpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
536 __ vxorpd(xmm0, xmm1, xmm2);
537 __ vxorpd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
528 } 538 }
529 } 539 }
530 540
531 // FMA3 instruction 541 // FMA3 instruction
532 { 542 {
533 if (CpuFeatures::IsSupported(FMA3)) { 543 if (CpuFeatures::IsSupported(FMA3)) {
534 CpuFeatureScope scope(&assm, FMA3); 544 CpuFeatureScope scope(&assm, FMA3);
535 __ vfmadd132sd(xmm0, xmm1, xmm2); 545 __ vfmadd132sd(xmm0, xmm1, xmm2);
536 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); 546 __ vfmadd132sd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000));
537 __ vfmadd213sd(xmm0, xmm1, xmm2); 547 __ vfmadd213sd(xmm0, xmm1, xmm2);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 #ifdef OBJECT_PRINT 683 #ifdef OBJECT_PRINT
674 OFStream os(stdout); 684 OFStream os(stdout);
675 code->Print(os); 685 code->Print(os);
676 byte* begin = code->instruction_start(); 686 byte* begin = code->instruction_start();
677 byte* end = begin + code->instruction_size(); 687 byte* end = begin + code->instruction_size();
678 disasm::Disassembler::Disassemble(stdout, begin, end); 688 disasm::Disassembler::Disassemble(stdout, begin, end);
679 #endif 689 #endif
680 } 690 }
681 691
682 #undef __ 692 #undef __
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698