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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1538443003: Add mls instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Update DART sources. 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
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 template <> void InstARM32Mla::emitIAS(const Cfg *Func) const { 225 template <> void InstARM32Mla::emitIAS(const Cfg *Func) const {
226 assert(getSrcSize() == 3); 226 assert(getSrcSize() == 3);
227 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 227 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
228 Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate()); 228 Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate());
229 if (Asm->needsTextFixup()) 229 if (Asm->needsTextFixup())
230 emitUsingTextFixup(Func); 230 emitUsingTextFixup(Func);
231 } 231 }
232 232
233 template <> void InstARM32Mls::emitIAS(const Cfg *Func) const {
234 assert(getSrcSize() == 3);
235 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
236 Asm->mls(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate());
237 if (Asm->needsTextFixup())
238 emitUsingTextFixup(Func);
239 }
240
233 void InstARM32Pred::emitCmpLike(const char *Opcode, const InstARM32Pred *Inst, 241 void InstARM32Pred::emitCmpLike(const char *Opcode, const InstARM32Pred *Inst,
234 const Cfg *Func) { 242 const Cfg *Func) {
235 if (!BuildDefs::dump()) 243 if (!BuildDefs::dump())
236 return; 244 return;
237 Ostream &Str = Func->getContext()->getStrEmit(); 245 Ostream &Str = Func->getContext()->getStrEmit();
238 assert(Inst->getSrcSize() == 2); 246 assert(Inst->getSrcSize() == 2);
239 Str << "\t" << Opcode << Inst->getPredicate() << "\t"; 247 Str << "\t" << Opcode << Inst->getPredicate() << "\t";
240 Inst->getSrc(0)->emit(Func); 248 Inst->getSrc(0)->emit(Func);
241 Str << ", "; 249 Str << ", ";
242 Inst->getSrc(1)->emit(Func); 250 Inst->getSrc(1)->emit(Func);
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 2073 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
2066 2074
2067 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2075 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2068 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2076 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2069 2077
2070 template class InstARM32CmpLike<InstARM32::Cmn>; 2078 template class InstARM32CmpLike<InstARM32::Cmn>;
2071 template class InstARM32CmpLike<InstARM32::Cmp>; 2079 template class InstARM32CmpLike<InstARM32::Cmp>;
2072 template class InstARM32CmpLike<InstARM32::Tst>; 2080 template class InstARM32CmpLike<InstARM32::Tst>;
2073 2081
2074 } // end of namespace Ice 2082 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698