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

Unified Diff: lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp

Issue 1642253003: Auto-sandboxing: add support for a few missing ARM opcodes (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 4 years, 11 months 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
« no previous file with comments | « no previous file | test/MC/ARM/nacl-autosandbox/load.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp
diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp
index 02d18c2f71d680e3fc5de6daf24f32e77c5761a0..f31e4a206b9e2618f49fce991c46fe373d14d085 100644
--- a/lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp
+++ b/lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp
@@ -356,8 +356,10 @@ void ARM::ARMMCNaClExpander::expandLoadStore(const MCInst &Inst,
case ARM::STMDB_UPD:
case ARM::STMIB_UPD:
+ case ARM::VSTMDIA:
case ARM::VSTMDIA_UPD:
case ARM::VSTMDDB_UPD:
+ case ARM::VSTMSIA:
case ARM::VSTMSIA_UPD:
case ARM::VSTMSDB_UPD:
@@ -366,8 +368,10 @@ void ARM::ARMMCNaClExpander::expandLoadStore(const MCInst &Inst,
case ARM::LDMDB_UPD:
case ARM::LDMIB_UPD:
+ case ARM::VLDMDIA:
case ARM::VLDMDIA_UPD:
case ARM::VLDMDDB_UPD:
+ case ARM::VLDMSIA:
case ARM::VLDMSIA_UPD:
case ARM::VLDMSDB_UPD:
@@ -382,6 +386,9 @@ void ARM::ARMMCNaClExpander::expandLoadStore(const MCInst &Inst,
case ARM::LDMIB:
return sandboxBaseDisp(Inst, *InstInfo, Inst.getOperand(0).getReg(), Out,
STI);
+ case ARM::DMB:
+ // DMB is mayLoad but has no memory operands and needs no sandboxing
+ return Out.EmitInstruction(Inst, STI);
}
int MemIdx = getMemIdx(Inst, *InstInfo);
« no previous file with comments | « no previous file | test/MC/ARM/nacl-autosandbox/load.s » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698