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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1412293006: Add AND(register) and AND(immediate) 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
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/and.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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 } 353 }
354 354
355 template <> 355 template <>
356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const {
357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
359 if (Asm->needsTextFixup()) 359 if (Asm->needsTextFixup())
360 emitUsingTextFixup(Func); 360 emitUsingTextFixup(Func);
361 } 361 }
362 362
363 template <> void InstARM32And::emitIAS(const Cfg *Func) const {
364 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
365 Asm->and_(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
366 if (Asm->needsTextFixup())
367 emitUsingTextFixup(Func);
368 }
369
363 template <> 370 template <>
364 void InstARM32ThreeAddrGPR<InstARM32::Sbc>::emitIAS(const Cfg *Func) const { 371 void InstARM32ThreeAddrGPR<InstARM32::Sbc>::emitIAS(const Cfg *Func) const {
365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 372 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
366 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 373 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
367 if (Asm->needsTextFixup()) 374 if (Asm->needsTextFixup())
368 emitUsingTextFixup(Func); 375 emitUsingTextFixup(Func);
369 } 376 }
370 377
371 template <> 378 template <>
372 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { 379 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const {
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; 1493 template class InstARM32UnaryopGPR<InstARM32::Movw, false>;
1487 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; 1494 template class InstARM32UnaryopGPR<InstARM32::Clz, false>;
1488 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; 1495 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>;
1489 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; 1496 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>;
1490 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; 1497 template class InstARM32UnaryopGPR<InstARM32::Rev, false>;
1491 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; 1498 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>;
1492 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; 1499 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>;
1493 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 1500 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
1494 1501
1495 } // end of namespace Ice 1502 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/and.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698