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

Unified Diff: src/IceInstARM32.cpp

Issue 1507873004: Add DMB instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 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 5cc0a15ea30039e5deabc56b6f70bca3eced7aec..76140e8541683b60e61a1b68358ea64fd21811ef 100644
--- a/src/IceInstARM32.cpp
+++ b/src/IceInstARM32.cpp
@@ -1710,6 +1710,15 @@ void InstARM32Dmb::emit(const Cfg *Func) const {
"sy";
}
+void InstARM32Dmb::emitIAS(const Cfg *Func) const {
+ assert(getSrcSize() == 0);
+ auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
+ constexpr ARM32::IValueT SyOption = 0xF; // i.e. 1111
+ Asm->dmb(SyOption);
+ if (Asm->needsTextFixup())
+ emitUsingTextFixup(Func);
+}
+
void InstARM32Dmb::dump(const Cfg *Func) const {
if (!BuildDefs::dump())
return;

Powered by Google App Engine
This is Rietveld 408576698