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

Side by Side Diff: src/DartARM32/assembler_arm.cc

Issue 1427023004: Add UDIV to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove tabs. 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/DartARM32/assembler_arm.h ('k') | src/IceAssemblerARM32.h » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe
6 // Please update the (git) revision if we merge changes from Dart. 6 // Please update the (git) revision if we merge changes from Dart.
7 // https://code.google.com/p/dart/wiki/GettingTheSource 7 // https://code.google.com/p/dart/wiki/GettingTheSource
8 8
9 #include "vm/globals.h" // NOLINT 9 #include "vm/globals.h" // NOLINT
10 #if defined(TARGET_ARCH_ARM) 10 #if defined(TARGET_ARCH_ARM)
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 // TODO(kschimpf): Why not also: B15 | B14 | B13 | B12? 462 // TODO(kschimpf): Why not also: B15 | B14 | B13 | B12?
463 B26 | B25 | B24 | B20 | B4 | 463 B26 | B25 | B24 | B20 | B4 |
464 (static_cast<int32_t>(rm) << kDivRmShift); 464 (static_cast<int32_t>(rm) << kDivRmShift);
465 Emit(encoding); 465 Emit(encoding);
466 } 466 }
467 467
468 // Moved to ARM32::AssemblerARM32::sdiv() 468 // Moved to ARM32::AssemblerARM32::sdiv()
469 void Assembler::sdiv(Register rd, Register rn, Register rm, Condition cond) { 469 void Assembler::sdiv(Register rd, Register rn, Register rm, Condition cond) {
470 EmitDivOp(cond, 0, rd, rn, rm); 470 EmitDivOp(cond, 0, rd, rn, rm);
471 } 471 }
472 #endif
473 472
473 // Moved to ARM32::AssemblerARM32::udiv()
474 void Assembler::udiv(Register rd, Register rn, Register rm, Condition cond) { 474 void Assembler::udiv(Register rd, Register rn, Register rm, Condition cond) {
475 EmitDivOp(cond, B21 , rd, rn, rm); 475 EmitDivOp(cond, B21 , rd, rn, rm);
476 } 476 }
477 477
478
479 #if 0
480 // Moved to ARM32::AssemblerARM32::ldr() 478 // Moved to ARM32::AssemblerARM32::ldr()
481 void Assembler::ldr(Register rd, Address ad, Condition cond) { 479 void Assembler::ldr(Register rd, Address ad, Condition cond) {
482 EmitMemOp(cond, true, false, rd, ad); 480 EmitMemOp(cond, true, false, rd, ad);
483 } 481 }
484 482
485 // Moved to ARM32::AssemblerARM32::str() 483 // Moved to ARM32::AssemblerARM32::str()
486 void Assembler::str(Register rd, Address ad, Condition cond) { 484 void Assembler::str(Register rd, Address ad, Condition cond) {
487 EmitMemOp(cond, false, false, rd, ad); 485 EmitMemOp(cond, false, false, rd, ad);
488 } 486 }
489 487
(...skipping 3187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3677 3675
3678 3676
3679 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3677 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3680 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3678 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3681 return fpu_reg_names[reg]; 3679 return fpu_reg_names[reg];
3682 } 3680 }
3683 3681
3684 } // namespace dart 3682 } // namespace dart
3685 3683
3686 #endif // defined TARGET_ARCH_ARM 3684 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/DartARM32/assembler_arm.h ('k') | src/IceAssemblerARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698