Index: src/IceInstMIPS32.h |
diff --git a/src/IceInstMIPS32.h b/src/IceInstMIPS32.h |
index f4793161e73ecfb9bf032f05870e6be2d5fc4e05..5986efb835184c4afc7ef58b7135d64b3317894e 100644 |
--- a/src/IceInstMIPS32.h |
+++ b/src/IceInstMIPS32.h |
@@ -28,11 +28,11 @@ |
namespace Ice { |
namespace MIPS32 { |
-enum RelocOp { RO_No, RO_Hi, RO_Lo }; |
+enum RelocOp { RO_No, RO_Hi, RO_Lo, RO_Jal }; |
inline void emitRelocOp(Ostream &Str, RelocOp Reloc) { |
switch (Reloc) { |
- case RO_No: |
+ default: |
break; |
case RO_Hi: |
Str << "%hi"; |
@@ -187,6 +187,7 @@ public: |
Abs_d, |
Abs_s, |
Add, |
+ Addi, |
Jim Stichnoth
2016/10/27 13:58:15
If we're keeping these lists sorted alphabetically
jaydeep.patil
2016/10/28 02:53:57
Done.
|
Add_d, |
Add_s, |
Addiu, |
@@ -1140,6 +1141,7 @@ private: |
using InstMIPS32Abs_d = InstMIPS32TwoAddrFPR<InstMIPS32::Abs_d>; |
using InstMIPS32Abs_s = InstMIPS32TwoAddrFPR<InstMIPS32::Abs_s>; |
using InstMIPS32Add = InstMIPS32ThreeAddrGPR<InstMIPS32::Add>; |
+using InstMIPS32Addi = InstMIPS32Imm16<InstMIPS32::Addi, true>; |
using InstMIPS32Add_d = InstMIPS32ThreeAddrFPR<InstMIPS32::Add_d>; |
using InstMIPS32Add_s = InstMIPS32ThreeAddrFPR<InstMIPS32::Add_s>; |
using InstMIPS32Addu = InstMIPS32ThreeAddrGPR<InstMIPS32::Addu>; |
@@ -1268,6 +1270,7 @@ private: |
template <> void InstMIPS32Abs_d::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Abs_s::emitIAS(const Cfg *Func) const; |
+template <> void InstMIPS32Addi::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Add_d::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Add_s::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Addiu::emitIAS(const Cfg *Func) const; |
@@ -1301,7 +1304,9 @@ template <> void InstMIPS32Div_s::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Divu::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Lui::emit(const Cfg *Func) const; |
template <> void InstMIPS32Lui::emitIAS(const Cfg *Func) const; |
+template <> void InstMIPS32Ldc1::emitIAS(const Cfg *Func) const; |
Jim Stichnoth
2016/10/27 13:58:15
Move this before Lui to be alphabetized?
jaydeep.patil
2016/10/28 02:53:57
Done.
|
template <> void InstMIPS32Lw::emitIAS(const Cfg *Func) const; |
+template <> void InstMIPS32Lwc1::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Mfc1::emitIAS(const Cfg *Func) const; |
template <> void InstMIPS32Mflo::emit(const Cfg *Func) const; |
template <> void InstMIPS32Mflo::emitIAS(const Cfg *Func) const; |