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

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

Issue 605113002: MIPS: Add cvt_d_s to disassembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 break; 548 break;
549 case C_ULE_D: 549 case C_ULE_D:
550 Format(instr, "c.ule.d 'fs, 'ft, 'Cc"); 550 Format(instr, "c.ule.d 'fs, 'ft, 'Cc");
551 break; 551 break;
552 default: 552 default:
553 Format(instr, "unknown.cop1.d"); 553 Format(instr, "unknown.cop1.d");
554 break; 554 break;
555 } 555 }
556 break; 556 break;
557 case S: 557 case S:
558 UNIMPLEMENTED_MIPS(); 558 switch (instr->FunctionFieldRaw()) {
559 case CVT_D_S:
560 Format(instr, "cvt.d.s 'fd, 'fs");
561 break;
562 default:
563 UNIMPLEMENTED_MIPS();
564 }
559 break; 565 break;
560 case W: 566 case W:
561 switch (instr->FunctionFieldRaw()) { 567 switch (instr->FunctionFieldRaw()) {
562 case CVT_S_W: // Convert word to float (single). 568 case CVT_S_W: // Convert word to float (single).
563 Format(instr, "cvt.s.w 'fd, 'fs"); 569 Format(instr, "cvt.s.w 'fd, 'fs");
564 break; 570 break;
565 case CVT_D_W: // Convert word to double. 571 case CVT_D_W: // Convert word to double.
566 Format(instr, "cvt.d.w 'fd, 'fs"); 572 Format(instr, "cvt.d.w 'fd, 'fs");
567 break; 573 break;
568 default: 574 default:
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1344 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1350 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1345 } 1351 }
1346 } 1352 }
1347 1353
1348 1354
1349 #undef UNSUPPORTED 1355 #undef UNSUPPORTED
1350 1356
1351 } // namespace disasm 1357 } // namespace disasm
1352 1358
1353 #endif // V8_TARGET_ARCH_MIPS 1359 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698