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

Unified Diff: src/IceInstMIPS32.cpp

Issue 2350833002: Subzero, MIPS32: Encoding of FP comparison instructions (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressing review comments 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_fcmp.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 90e10a98607cd4fa4a1f32afc22d249d3a10051f..e1debb63a01e1ea7e27fc695571b9a1c93993170 100644
--- a/src/IceInstMIPS32.cpp
+++ b/src/IceInstMIPS32.cpp
@@ -783,6 +783,76 @@ template <> void InstMIPS32Andi::emitIAS(const Cfg *Func) const {
Asm->andi(getDest(), getSrc(0), Imm);
}
+template <> void InstMIPS32C_eq_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_eq_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_eq_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_eq_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ole_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ole_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ole_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ole_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_olt_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_olt_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_olt_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_olt_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ueq_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ueq_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ueq_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ueq_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ule_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ule_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ule_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ule_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ult_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ult_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_ult_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_ult_s(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_un_d::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_un_d(getSrc(0), getSrc(1));
+}
+
+template <> void InstMIPS32C_un_s::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->c_un_s(getSrc(0), getSrc(1));
+}
+
template <> void InstMIPS32Cvt_d_l::emitIAS(const Cfg *Func) const {
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
Asm->cvt_d_l(getDest(), getSrc(0));
@@ -858,6 +928,11 @@ template <> void InstMIPS32Mov_s::emitIAS(const Cfg *Func) const {
Asm->mov_s(getDest(), getSrc(0));
}
+template <> void InstMIPS32Movf::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->movf(getDest(), getSrc(0), getSrc(1));
+}
+
template <> void InstMIPS32Movn_d::emitIAS(const Cfg *Func) const {
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
Asm->movn_d(getDest(), getSrc(0), getSrc(1));
@@ -868,6 +943,11 @@ template <> void InstMIPS32Movn_s::emitIAS(const Cfg *Func) const {
Asm->movn_s(getDest(), getSrc(0), getSrc(1));
}
+template <> void InstMIPS32Movt::emitIAS(const Cfg *Func) const {
+ auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
+ Asm->movt(getDest(), getSrc(0), getSrc(1));
+}
+
template <> void InstMIPS32Movz_d::emitIAS(const Cfg *Func) const {
auto *Asm = Func->getAssembler<MIPS32::AssemblerMIPS32>();
Asm->movz_d(getDest(), getSrc(0), getSrc(1));
« no previous file with comments | « src/IceInstMIPS32.h ('k') | tests_lit/assembler/mips32/encoding_test_fcmp.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698