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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: src/IceInstARM32.cpp
diff --git a/src/IceInstARM32.cpp b/src/IceInstARM32.cpp
index cd50eb17de29d3b5a4c440a3c43467274972e59e..d0b5c486850330c95550567e8f16c6f40120e164 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -192,6 +192,19 @@ void InstARM32Pred::emitFourAddr(const char *Opcode, const InstARM32Pred *Inst,
Inst->getSrc(2)->emit(Func);
}
+template <InstARM32::InstKindARM32 K>
+void InstARM32FourAddrGPR<K>::emitIAS(const Cfg *Func) const {
+ emitUsingTextFixup(Func);
+}
+
+template <> void InstARM32Mla::emitIAS(const Cfg *Func) const {
+ assert(getSrcSize() == 3);
+ 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
+ Asm->mla(getDest(), getSrc(0), getSrc(1), getSrc(2), getPredicate());
+ if (Asm->needsTextFixup())
+ emitUsingTextFixup(Func);
+}
+
void InstARM32Pred::emitCmpLike(const char *Opcode, const InstARM32Pred *Inst,
const Cfg *Func) {
if (!BuildDefs::dump())
@@ -1602,6 +1615,9 @@ template class InstARM32UnaryopGPR<InstARM32::Sxt, true>;
template class InstARM32UnaryopGPR<InstARM32::Uxt, true>;
template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
+template class InstARM32FourAddrGPR<InstARM32::Mla>;
+template class InstARM32FourAddrGPR<InstARM32::Mls>;
+
template class InstARM32CmpLike<InstARM32::Cmp>;
template class InstARM32CmpLike<InstARM32::Tst>;

Powered by Google App Engine
This is Rietveld 408576698