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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1521133002: Add CLZ instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix comment in clz.ll 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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 } 1243 }
1244 1244
1245 template <> void InstARM32Movt::emitIAS(const Cfg *Func) const { 1245 template <> void InstARM32Movt::emitIAS(const Cfg *Func) const {
1246 assert(getSrcSize() == 2); 1246 assert(getSrcSize() == 2);
1247 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1247 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1248 Asm->movt(getDest(), getSrc(1), getPredicate()); 1248 Asm->movt(getDest(), getSrc(1), getPredicate());
1249 if (Asm->needsTextFixup()) 1249 if (Asm->needsTextFixup())
1250 emitUsingTextFixup(Func); 1250 emitUsingTextFixup(Func);
1251 } 1251 }
1252 1252
1253 template <> void InstARM32Clz::emitIAS(const Cfg *Func) const {
1254 assert(getSrcSize() == 1);
1255 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1256 Asm->clz(getDest(), getSrc(0), getPredicate());
1257 if (Asm->needsTextFixup())
1258 emitUsingTextFixup(Func);
1259 }
1260
1253 template <> void InstARM32Mvn::emitIAS(const Cfg *Func) const { 1261 template <> void InstARM32Mvn::emitIAS(const Cfg *Func) const {
1254 assert(getSrcSize() == 1); 1262 assert(getSrcSize() == 1);
1255 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1263 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1256 Asm->mvn(getDest(), getSrc(0), getPredicate()); 1264 Asm->mvn(getDest(), getSrc(0), getPredicate());
1257 if (Asm->needsTextFixup()) 1265 if (Asm->needsTextFixup())
1258 emitUsingTextFixup(Func); 1266 emitUsingTextFixup(Func);
1259 } 1267 }
1260 1268
1261 template <> void InstARM32Sxt::emitIAS(const Cfg *Func) const { 1269 template <> void InstARM32Sxt::emitIAS(const Cfg *Func) const {
1262 assert(getSrcSize() == 1); 1270 assert(getSrcSize() == 1);
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 2043 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
2036 2044
2037 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2045 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2038 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2046 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2039 2047
2040 template class InstARM32CmpLike<InstARM32::Cmn>; 2048 template class InstARM32CmpLike<InstARM32::Cmn>;
2041 template class InstARM32CmpLike<InstARM32::Cmp>; 2049 template class InstARM32CmpLike<InstARM32::Cmp>;
2042 template class InstARM32CmpLike<InstARM32::Tst>; 2050 template class InstARM32CmpLike<InstARM32::Tst>;
2043 2051
2044 } // end of namespace Ice 2052 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698