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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1603893003: Add vstr{s,d} to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 11 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/vstr.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 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 Str << VecEltWidthString << "\t"; 1656 Str << VecEltWidthString << "\t";
1657 getSrc(0)->emit(Func); 1657 getSrc(0)->emit(Func);
1658 Str << ", "; 1658 Str << ", ";
1659 getSrc(1)->emit(Func); 1659 getSrc(1)->emit(Func);
1660 } 1660 }
1661 1661
1662 void InstARM32Str::emitIAS(const Cfg *Func) const { 1662 void InstARM32Str::emitIAS(const Cfg *Func) const {
1663 assert(getSrcSize() == 2); 1663 assert(getSrcSize() == 2);
1664 Type Ty = getSrc(0)->getType(); 1664 Type Ty = getSrc(0)->getType();
1665 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1665 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1666 if (isVectorType(Ty) || isScalarFloatingType(Ty)) 1666 if (isScalarFloatingType(Ty)) {
1667 if (Ty == IceType_f32)
1668 Asm->vstrs(getSrc(0), getSrc(1), getPredicate(), Func->getTarget());
1669 else
1670 Asm->vstrd(getSrc(0), getSrc(1), getPredicate(), Func->getTarget());
1671 } else if (isVectorType(Ty))
1667 // TODO(kschimpf) Handle case. 1672 // TODO(kschimpf) Handle case.
1668 Asm->setNeedsTextFixup(); 1673 Asm->setNeedsTextFixup();
1669 else 1674 else
1670 Asm->str(getSrc(0), getSrc(1), getPredicate(), Func->getTarget()); 1675 Asm->str(getSrc(0), getSrc(1), getPredicate(), Func->getTarget());
1671 if (Asm->needsTextFixup()) 1676 if (Asm->needsTextFixup())
1672 emitUsingTextFixup(Func); 1677 emitUsingTextFixup(Func);
1673 } 1678 }
1674 1679
1675 void InstARM32Str::dump(const Cfg *Func) const { 1680 void InstARM32Str::dump(const Cfg *Func) const {
1676 if (!BuildDefs::dump()) 1681 if (!BuildDefs::dump())
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 2221
2217 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2222 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2218 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2223 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2219 2224
2220 template class InstARM32CmpLike<InstARM32::Cmn>; 2225 template class InstARM32CmpLike<InstARM32::Cmn>;
2221 template class InstARM32CmpLike<InstARM32::Cmp>; 2226 template class InstARM32CmpLike<InstARM32::Cmp>;
2222 template class InstARM32CmpLike<InstARM32::Tst>; 2227 template class InstARM32CmpLike<InstARM32::Tst>;
2223 2228
2224 } // end of namespace ARM32 2229 } // end of namespace ARM32
2225 } // end of namespace Ice 2230 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/vstr.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698