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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1429073005: Add MLA instruction to ARM integerated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove tabs. 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 Str << "\t" << Opcode << Inst->getPredicate() << "\t"; 185 Str << "\t" << Opcode << Inst->getPredicate() << "\t";
186 Inst->getDest()->emit(Func); 186 Inst->getDest()->emit(Func);
187 Str << ", "; 187 Str << ", ";
188 Inst->getSrc(0)->emit(Func); 188 Inst->getSrc(0)->emit(Func);
189 Str << ", "; 189 Str << ", ";
190 Inst->getSrc(1)->emit(Func); 190 Inst->getSrc(1)->emit(Func);
191 Str << ", "; 191 Str << ", ";
192 Inst->getSrc(2)->emit(Func); 192 Inst->getSrc(2)->emit(Func);
193 } 193 }
194 194
195 template <InstARM32::InstKindARM32 K>
196 void InstARM32FourAddrGPR<K>::emitIAS(const Cfg *Func) const {
197 emitUsingTextFixup(Func);
198 }
199
200 template <> void InstARM32Mla::emitIAS(const Cfg *Func) const {
201 assert(getSrcSize() == 3);
202 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
Jim Stichnoth 2015/11/05 00:15:04 auto *
Karl 2015/11/05 16:28:20 Also fixed all other similar occurrences in this f
203 Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate());
204 if (Asm->needsTextFixup())
205 emitUsingTextFixup(Func);
206 }
207
195 void InstARM32Pred::emitCmpLike(const char *Opcode, const InstARM32Pred *Inst, 208 void InstARM32Pred::emitCmpLike(const char *Opcode, const InstARM32Pred *Inst,
196 const Cfg *Func) { 209 const Cfg *Func) {
197 if (!BuildDefs::dump()) 210 if (!BuildDefs::dump())
198 return; 211 return;
199 Ostream &Str = Func->getContext()->getStrEmit(); 212 Ostream &Str = Func->getContext()->getStrEmit();
200 assert(Inst->getSrcSize() == 2); 213 assert(Inst->getSrcSize() == 2);
201 Str << "\t" << Opcode << Inst->getPredicate() << "\t"; 214 Str << "\t" << Opcode << Inst->getPredicate() << "\t";
202 Inst->getSrc(0)->emit(Func); 215 Inst->getSrc(0)->emit(Func);
203 Str << ", "; 216 Str << ", ";
204 Inst->getSrc(1)->emit(Func); 217 Inst->getSrc(1)->emit(Func);
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 1608
1596 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; 1609 template class InstARM32UnaryopGPR<InstARM32::Movw, false>;
1597 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; 1610 template class InstARM32UnaryopGPR<InstARM32::Clz, false>;
1598 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; 1611 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>;
1599 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; 1612 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>;
1600 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; 1613 template class InstARM32UnaryopGPR<InstARM32::Rev, false>;
1601 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; 1614 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>;
1602 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; 1615 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>;
1603 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 1616 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
1604 1617
1618 template class InstARM32FourAddrGPR<InstARM32::Mla>;
1619 template class InstARM32FourAddrGPR<InstARM32::Mls>;
1620
1605 template class InstARM32CmpLike<InstARM32::Cmp>; 1621 template class InstARM32CmpLike<InstARM32::Cmp>;
1606 template class InstARM32CmpLike<InstARM32::Tst>; 1622 template class InstARM32CmpLike<InstARM32::Tst>;
1607 1623
1608 } // end of namespace Ice 1624 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698