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

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: 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
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 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; 1432 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>;
1425 1433
1426 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; 1434 template class InstARM32ThreeAddrFP<InstARM32::Vadd>;
1427 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; 1435 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>;
1428 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; 1436 template class InstARM32ThreeAddrFP<InstARM32::Vmul>;
1429 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; 1437 template class InstARM32ThreeAddrFP<InstARM32::Vsub>;
1430 1438
1431 template class InstARM32TwoAddrGPR<InstARM32::Movt>; 1439 template class InstARM32TwoAddrGPR<InstARM32::Movt>;
1432 1440
1433 } // end of namespace Ice 1441 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698