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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1501073002: Implement LSR instructions for the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 5 years 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/lsr.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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 emitUsingTextFixup(Func); 485 emitUsingTextFixup(Func);
486 } 486 }
487 487
488 template <> void InstARM32Lsl::emitIAS(const Cfg *Func) const { 488 template <> void InstARM32Lsl::emitIAS(const Cfg *Func) const {
489 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 489 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
490 Asm->lsl(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 490 Asm->lsl(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
491 if (Asm->needsTextFixup()) 491 if (Asm->needsTextFixup())
492 emitUsingTextFixup(Func); 492 emitUsingTextFixup(Func);
493 } 493 }
494 494
495 template <> void InstARM32Lsr::emitIAS(const Cfg *Func) const {
496 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
497 Asm->lsr(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
498 if (Asm->needsTextFixup())
499 emitUsingTextFixup(Func);
500 }
501
495 template <> void InstARM32Orr::emitIAS(const Cfg *Func) const { 502 template <> void InstARM32Orr::emitIAS(const Cfg *Func) const {
496 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 503 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
497 Asm->orr(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 504 Asm->orr(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
498 if (Asm->needsTextFixup()) 505 if (Asm->needsTextFixup())
499 emitUsingTextFixup(Func); 506 emitUsingTextFixup(Func);
500 } 507 }
501 508
502 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const { 509 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const {
503 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 510 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
504 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); 511 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate());
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 1918 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
1912 1919
1913 template class InstARM32FourAddrGPR<InstARM32::Mla>; 1920 template class InstARM32FourAddrGPR<InstARM32::Mla>;
1914 template class InstARM32FourAddrGPR<InstARM32::Mls>; 1921 template class InstARM32FourAddrGPR<InstARM32::Mls>;
1915 1922
1916 template class InstARM32CmpLike<InstARM32::Cmn>; 1923 template class InstARM32CmpLike<InstARM32::Cmn>;
1917 template class InstARM32CmpLike<InstARM32::Cmp>; 1924 template class InstARM32CmpLike<InstARM32::Cmp>;
1918 template class InstARM32CmpLike<InstARM32::Tst>; 1925 template class InstARM32CmpLike<InstARM32::Tst>;
1919 1926
1920 } // end of namespace Ice 1927 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/lsr.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698