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

Unified Diff: src/IceInstMIPS32.cpp

Issue 2375923002: Subzero, MIPS32: SRAV instruction encoding (Closed)
Patch Set: Created 4 years, 3 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 | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/mips32/encoding_test_arith.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstMIPS32.cpp
diff --git a/src/IceInstMIPS32.cpp b/src/IceInstMIPS32.cpp
index 25282ea22db4bb2c334e86e698a5c182c4417b74..adccf43533b4322b30cf8c7900fa42aea08bcc3c 100644
--- a/src/IceInstMIPS32.cpp
+++ b/src/IceInstMIPS32.cpp
@@ -1139,6 +1139,11 @@ template <> void InstMIPS32Sra::emitIAS(const Cfg *Func) const {
Asm->sra(getDest(), getSrc(0), Imm);
}
+template <> void InstMIPS32Srav::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->srav(getDest(), getSrc(0), getSrc(1));
+}
+
template <> void InstMIPS32Srl::emitIAS(const Cfg *Func) const {
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
Asm->srl(getDest(), getSrc(0), Imm);
« no previous file with comments | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/mips32/encoding_test_arith.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698