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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1388323003: Add "sub immediate" instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove tabs. Created 5 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
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/add.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===// 1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 (void)Func; 323 (void)Func;
324 UnimplementedError(Func->getContext()->getFlags()); 324 UnimplementedError(Func->getContext()->getFlags());
325 } 325 }
326 326
327 template <> 327 template <>
328 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { 328 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const {
329 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 329 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
330 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 330 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
331 } 331 }
332 332
333 template <>
334 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const {
335 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
336 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
337 }
338
333 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) 339 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget)
334 : InstARM32(Func, InstARM32::Call, 1, Dest) { 340 : InstARM32(Func, InstARM32::Call, 1, Dest) {
335 HasSideEffects = true; 341 HasSideEffects = true;
336 addSource(CallTarget); 342 addSource(CallTarget);
337 } 343 }
338 344
339 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) 345 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target)
340 : InstARM32(Func, InstARM32::Label, 0, nullptr), 346 : InstARM32(Func, InstARM32::Label, 0, nullptr),
341 Number(Target->makeNextLabelNumber()) {} 347 Number(Target->makeNextLabelNumber()) {}
342 348
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 template class InstARM32ThreeAddrGPR<InstARM32::Sbc>; 1453 template class InstARM32ThreeAddrGPR<InstARM32::Sbc>;
1448 template class InstARM32ThreeAddrGPR<InstARM32::Sdiv>; 1454 template class InstARM32ThreeAddrGPR<InstARM32::Sdiv>;
1449 template class InstARM32ThreeAddrGPR<InstARM32::Sub>; 1455 template class InstARM32ThreeAddrGPR<InstARM32::Sub>;
1450 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; 1456 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>;
1451 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; 1457 template class InstARM32ThreeAddrFP<InstARM32::Vadd>;
1452 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; 1458 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>;
1453 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; 1459 template class InstARM32ThreeAddrFP<InstARM32::Vmul>;
1454 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; 1460 template class InstARM32ThreeAddrFP<InstARM32::Vsub>;
1455 1461
1456 } // end of namespace Ice 1462 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/add.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698