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

Side by Side Diff: src/ppc/disasm-ppc.cc

Issue 1413833013: PPC64: Implemented the Word64Popcnt TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/ppc/constants-ppc.h ('k') | src/ppc/simulator-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A Disassembler object is used to disassemble a block of code instruction by 5 // A Disassembler object is used to disassemble a block of code instruction by
6 // instruction. The default implementation of the NameConverter object can be 6 // instruction. The default implementation of the NameConverter object can be
7 // overriden to modify register names or to do symbol lookup on addresses. 7 // overriden to modify register names or to do symbol lookup on addresses.
8 // 8 //
9 // The example below will disassemble a block of code and print it to stdout. 9 // The example below will disassemble a block of code and print it to stdout.
10 // 10 //
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 return; 606 return;
607 } 607 }
608 case STFDUX: { 608 case STFDUX: {
609 Format(instr, "stfdux 'rs, 'ra, 'rb"); 609 Format(instr, "stfdux 'rs, 'ra, 'rb");
610 return; 610 return;
611 } 611 }
612 case POPCNTW: { 612 case POPCNTW: {
613 Format(instr, "popcntw 'ra, 'rs"); 613 Format(instr, "popcntw 'ra, 'rs");
614 return; 614 return;
615 } 615 }
616 #if V8_TARGET_ARCH_PPC64
617 case POPCNTD: {
618 Format(instr, "popcntd 'ra, 'rs");
619 return;
620 }
621 #endif
616 } 622 }
617 623
618 switch (instr->Bits(10, 2) << 2) { 624 switch (instr->Bits(10, 2) << 2) {
619 case SRADIX: { 625 case SRADIX: {
620 Format(instr, "sradi'. 'ra,'rs,'sh"); 626 Format(instr, "sradi'. 'ra,'rs,'sh");
621 return; 627 return;
622 } 628 }
623 } 629 }
624 630
625 // ?? are all of these xo_form? 631 // ?? are all of these xo_form?
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 pc += d.InstructionDecode(buffer, pc); 1412 pc += d.InstructionDecode(buffer, pc);
1407 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc, 1413 v8::internal::PrintF(f, "%p %08x %s\n", prev_pc,
1408 *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1414 *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1409 } 1415 }
1410 } 1416 }
1411 1417
1412 1418
1413 } // namespace disasm 1419 } // namespace disasm
1414 1420
1415 #endif // V8_TARGET_ARCH_PPC 1421 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/constants-ppc.h ('k') | src/ppc/simulator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698