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

Side by Side Diff: src/IceInstARM32.cpp

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/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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 338 }
339 return Found; 339 return Found;
340 } 340 }
341 341
342 template <InstARM32::InstKindARM32 K> 342 template <InstARM32::InstKindARM32 K>
343 void InstARM32ThreeAddrGPR<K>::emitIAS(const Cfg *Func) const { 343 void InstARM32ThreeAddrGPR<K>::emitIAS(const Cfg *Func) const {
344 emitUsingTextFixup(Func); 344 emitUsingTextFixup(Func);
345 } 345 }
346 346
347 template <> 347 template <>
348 void InstARM32ThreeAddrGPR<InstARM32::Adc>::emitIAS(const Cfg *Func) const {
349 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
350 Asm->adc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
351 if (Asm->needsTextFixup())
352 emitUsingTextFixup(Func);
353 }
354
355 template <>
348 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const {
349 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
350 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
351 if (Asm->needsTextFixup()) 359 if (Asm->needsTextFixup())
352 emitUsingTextFixup(Func); 360 emitUsingTextFixup(Func);
353 } 361 }
354 362
355 template <> 363 template <>
356 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { 364 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const {
357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; 1449 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>;
1442 1450
1443 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; 1451 template class InstARM32ThreeAddrFP<InstARM32::Vadd>;
1444 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; 1452 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>;
1445 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; 1453 template class InstARM32ThreeAddrFP<InstARM32::Vmul>;
1446 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; 1454 template class InstARM32ThreeAddrFP<InstARM32::Vsub>;
1447 1455
1448 template class InstARM32TwoAddrGPR<InstARM32::Movt>; 1456 template class InstARM32TwoAddrGPR<InstARM32::Movt>;
1449 1457
1450 } // end of namespace Ice 1458 } // 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