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

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

Issue 1424773002: Add ADC (immediate) instruction to ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 // Moved to ARM32::AssemberARM32::add() 219 // Moved to ARM32::AssemberARM32::add()
220 void Assembler::adds(Register rd, Register rn, Operand o, Condition cond) { 220 void Assembler::adds(Register rd, Register rn, Operand o, Condition cond) {
221 EmitType01(cond, o.type(), ADD, 1, rn, rd, o); 221 EmitType01(cond, o.type(), ADD, 1, rn, rd, o);
222 } 222 }
223 223
224 // Moved to ARM32::AssemberARM32::sub() 224 // Moved to ARM32::AssemberARM32::sub()
225 void Assembler::subs(Register rd, Register rn, Operand o, Condition cond) { 225 void Assembler::subs(Register rd, Register rn, Operand o, Condition cond) {
226 EmitType01(cond, o.type(), SUB, 1, rn, rd, o); 226 EmitType01(cond, o.type(), SUB, 1, rn, rd, o);
227 } 227 }
228 #endif
229 228
229 // Moved to ARM32::AssemberARM32::adc()
230 void Assembler::adc(Register rd, Register rn, Operand o, Condition cond) { 230 void Assembler::adc(Register rd, Register rn, Operand o, Condition cond) {
231 EmitType01(cond, o.type(), ADC, 0, rn, rd, o); 231 EmitType01(cond, o.type(), ADC, 0, rn, rd, o);
232 } 232 }
233 233
234 234 // Moved to ARM32::AssemberARM32::adc()
235 void Assembler::adcs(Register rd, Register rn, Operand o, Condition cond) { 235 void Assembler::adcs(Register rd, Register rn, Operand o, Condition cond) {
236 EmitType01(cond, o.type(), ADC, 1, rn, rd, o); 236 EmitType01(cond, o.type(), ADC, 1, rn, rd, o);
237 } 237 }
238 #endif
238 239
239 240
240 void Assembler::sbc(Register rd, Register rn, Operand o, Condition cond) { 241 void Assembler::sbc(Register rd, Register rn, Operand o, Condition cond) {
241 EmitType01(cond, o.type(), SBC, 0, rn, rd, o); 242 EmitType01(cond, o.type(), SBC, 0, rn, rd, o);
242 } 243 }
243 244
244 245
245 void Assembler::sbcs(Register rd, Register rn, Operand o, Condition cond) { 246 void Assembler::sbcs(Register rd, Register rn, Operand o, Condition cond) {
246 EmitType01(cond, o.type(), SBC, 1, rn, rd, o); 247 EmitType01(cond, o.type(), SBC, 1, rn, rd, o);
247 } 248 }
(...skipping 3418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3666 3667
3667 3668
3668 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3669 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3669 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3670 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3670 return fpu_reg_names[reg]; 3671 return fpu_reg_names[reg];
3671 } 3672 }
3672 3673
3673 } // namespace dart 3674 } // namespace dart
3674 3675
3675 #endif // defined TARGET_ARCH_ARM 3676 #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