Lines Matching refs:IValueT
69 constexpr intptr_t InstWidth = sizeof(IValueT); in padWithNop()
115 IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst) { in encodeBranchOffset()
125 IValueT getEncodedGPRegNum(const Variable *Var) { in getEncodedGPRegNum()
131 IValueT getEncodedFPRegNum(const Variable *Var) { in getEncodedFPRegNum()
134 IValueT RegEncoding; in getEncodedFPRegNum()
143 bool encodeOperand(const Operand *Opnd, IValueT &Value, in encodeOperand()
163 IValueT encodeRegister(const Operand *OpReg, RegSetWanted WantedRegSet, in encodeRegister()
165 IValueT Reg = 0; in encodeRegister()
172 IValueT encodeGPRegister(const Operand *OpReg, const char *RegName, in encodeGPRegister()
177 IValueT encodeFPRegister(const Operand *OpReg, const char *RegName, in encodeFPRegister()
184 IOffsetT AssemblerMIPS32::decodeBranchOffset(IValueT Inst) { in decodeBranchOffset()
197 IValueT Inst = Buffer.load<IValueT>(Position); in bind()
198 Buffer.store<IValueT>(Position, encodeBranchOffset(Dest, Inst)); in bind()
207 void AssemblerMIPS32::emitRsRt(IValueT Opcode, const Operand *OpRs, in emitRsRt()
209 const IValueT Rs = encodeGPRegister(OpRs, "Rs", InsnName); in emitRsRt()
210 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitRsRt()
218 void AssemblerMIPS32::emitRtRsImm16(IValueT Opcode, const Operand *OpRt, in emitRtRsImm16()
221 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitRtRsImm16()
222 const IValueT Rs = encodeGPRegister(OpRs, "Rs", InsnName); in emitRtRsImm16()
231 void AssemblerMIPS32::emitRtRsImm16Rel(IValueT Opcode, const Operand *OpRt, in emitRtRsImm16Rel()
236 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitRtRsImm16Rel()
237 const IValueT Rs = encodeGPRegister(OpRs, "Rs", InsnName); in emitRtRsImm16Rel()
255 void AssemblerMIPS32::emitFtRsImm16(IValueT Opcode, const Operand *OpFt, in emitFtRsImm16()
258 const IValueT Ft = encodeFPRegister(OpFt, "Ft", InsnName); in emitFtRsImm16()
259 const IValueT Rs = encodeGPRegister(OpRs, "Rs", InsnName); in emitFtRsImm16()
268 void AssemblerMIPS32::emitRdRtSa(IValueT Opcode, const Operand *OpRd, in emitRdRtSa()
271 const IValueT Rd = encodeGPRegister(OpRd, "Rd", InsnName); in emitRdRtSa()
272 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitRdRtSa()
281 void AssemblerMIPS32::emitRdRsRt(IValueT Opcode, const Operand *OpRd, in emitRdRsRt()
284 const IValueT Rd = encodeGPRegister(OpRd, "Rd", InsnName); in emitRdRsRt()
285 const IValueT Rs = encodeGPRegister(OpRs, "Rs", InsnName); in emitRdRsRt()
286 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitRdRsRt()
295 void AssemblerMIPS32::emitCOP1Fcmp(IValueT Opcode, FPInstDataFormat Format, in emitCOP1Fcmp()
297 IValueT CC, const char *InsnName) { in emitCOP1Fcmp()
298 const IValueT Fs = encodeFPRegister(OpFs, "Fs", InsnName); in emitCOP1Fcmp()
299 const IValueT Ft = encodeFPRegister(OpFt, "Ft", InsnName); in emitCOP1Fcmp()
309 void AssemblerMIPS32::emitCOP1FmtFsFd(IValueT Opcode, FPInstDataFormat Format, in emitCOP1FmtFsFd()
312 const IValueT Fd = encodeFPRegister(OpFd, "Fd", InsnName); in emitCOP1FmtFsFd()
313 const IValueT Fs = encodeFPRegister(OpFs, "Fs", InsnName); in emitCOP1FmtFsFd()
322 void AssemblerMIPS32::emitCOP1FmtFtFsFd(IValueT Opcode, FPInstDataFormat Format, in emitCOP1FmtFtFsFd()
327 const IValueT Fd = encodeFPRegister(OpFd, "Fd", InsnName); in emitCOP1FmtFtFsFd()
328 const IValueT Fs = encodeFPRegister(OpFs, "Fs", InsnName); in emitCOP1FmtFtFsFd()
329 const IValueT Ft = encodeFPRegister(OpFt, "Ft", InsnName); in emitCOP1FmtFtFsFd()
339 void AssemblerMIPS32::emitCOP1FmtRtFsFd(IValueT Opcode, FPInstDataFormat Format, in emitCOP1FmtRtFsFd()
344 const IValueT Fd = encodeFPRegister(OpFd, "Fd", InsnName); in emitCOP1FmtRtFsFd()
345 const IValueT Fs = encodeFPRegister(OpFs, "Fs", InsnName); in emitCOP1FmtRtFsFd()
346 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitCOP1FmtRtFsFd()
356 void AssemblerMIPS32::emitCOP1MovRtFs(IValueT Opcode, const Operand *OpRt, in emitCOP1MovRtFs()
359 const IValueT Rt = encodeGPRegister(OpRt, "Rt", InsnName); in emitCOP1MovRtFs()
360 const IValueT Fs = encodeFPRegister(OpFs, "Fs", InsnName); in emitCOP1MovRtFs()
368 static constexpr IValueT Opcode = 0x44000005; in abs_d()
373 static constexpr IValueT Opcode = 0x44000005; in abs_s()
379 static constexpr IValueT Opcode = 0x20000000; in addi()
385 static constexpr IValueT Opcode = 0x44000000; in add_d()
391 static constexpr IValueT Opcode = 0x44000000; in add_s()
397 static constexpr IValueT Opcode = 0x24000000; in addiu()
403 static constexpr IValueT Opcode = 0x24000000; in addiu()
409 static constexpr IValueT Opcode = 0x00000021; in addu()
415 static constexpr IValueT Opcode = 0x00000024; in and_()
421 static constexpr IValueT Opcode = 0x30000000; in andi()
442 static constexpr IValueT Opcode = 0x44000032; in c_eq_d()
448 static constexpr IValueT Opcode = 0x44000032; in c_eq_s()
454 static constexpr IValueT Opcode = 0x44000036; in c_ole_d()
460 static constexpr IValueT Opcode = 0x44000036; in c_ole_s()
466 static constexpr IValueT Opcode = 0x44000034; in c_olt_d()
472 static constexpr IValueT Opcode = 0x44000034; in c_olt_s()
478 static constexpr IValueT Opcode = 0x44000033; in c_ueq_d()
484 static constexpr IValueT Opcode = 0x44000033; in c_ueq_s()
490 static constexpr IValueT Opcode = 0x44000037; in c_ule_d()
496 static constexpr IValueT Opcode = 0x44000037; in c_ule_s()
502 static constexpr IValueT Opcode = 0x44000035; in c_ult_d()
508 static constexpr IValueT Opcode = 0x44000035; in c_ult_s()
514 static constexpr IValueT Opcode = 0x44000031; in c_un_d()
520 static constexpr IValueT Opcode = 0x44000031; in c_un_s()
526 IValueT Opcode = 0x70000020; in clz()
527 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "clz"); in clz()
528 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "clz"); in clz()
536 static constexpr IValueT Opcode = 0x44000021; in cvt_d_l()
541 static constexpr IValueT Opcode = 0x44000021; in cvt_d_s()
546 static constexpr IValueT Opcode = 0x44000021; in cvt_d_w()
551 static constexpr IValueT Opcode = 0x44000020; in cvt_s_d()
556 static constexpr IValueT Opcode = 0x44000020; in cvt_s_l()
561 static constexpr IValueT Opcode = 0x44000020; in cvt_s_w()
566 static constexpr IValueT Opcode = 0x0000001A; in div()
572 static constexpr IValueT Opcode = 0x44000003; in div_d()
578 static constexpr IValueT Opcode = 0x44000003; in div_s()
583 static constexpr IValueT Opcode = 0x0000001B; in divu()
613 IValueT Inst = Asm.load<IValueT>(position()); in emit()
636 const IValueT Inst = Asm->load<IValueT>(position()); in emitOffset()
637 IValueT ImmMask = 0; in emitOffset()
638 const IValueT Imm = offset(); in emitOffset()
648 IValueT Opcode = 0x0C000000; in jal()
655 IValueT Opcode = 0x00000009; in jalr()
656 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "jalr"); in jalr()
657 const IValueT Rd = in jalr()
667 IValueT Opcode = 0x3C000000; in lui()
668 const IValueT Rt = encodeGPRegister(OpRt, "Rt", "lui"); in lui()
669 IValueT Imm16 = 0; in lui()
686 IValueT Opcode = 0xD4000000; in ldc1()
687 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "ldc1"); in ldc1()
688 const IValueT Base = encodeGPRegister(OpBase, "Base", "ldc1"); in ldc1()
689 IValueT Imm16 = 0; in ldc1()
707 static constexpr IValueT Opcode = 0xC0000000; in ll()
716 static constexpr IValueT Opcode = 0x80000000; in lw()
721 static constexpr IValueT Opcode = 0x84000000; in lw()
726 static constexpr IValueT Opcode = 0x8C000000; in lw()
731 static constexpr IValueT Opcode = 0xC4000000; in lw()
736 static constexpr IValueT Opcode = 0xD4000000; in lw()
746 IValueT Opcode = 0xC4000000; in lwc1()
747 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "lwc1"); in lwc1()
748 const IValueT Base = encodeGPRegister(OpBase, "Base", "lwc1"); in lwc1()
749 IValueT Imm16 = 0; in lwc1()
766 static constexpr IValueT Opcode = 0x44000000; in mfc1()
771 IValueT Opcode = 0x000000010; in mfhi()
772 IValueT Rd = encodeGPRegister(OpRd, "Rd", "mfhi"); in mfhi()
778 IValueT Opcode = 0x000000012; in mflo()
779 IValueT Rd = encodeGPRegister(OpRd, "Rd", "mflo"); in mflo()
785 static constexpr IValueT Opcode = 0x44000006; in mov_d()
790 static constexpr IValueT Opcode = 0x44000006; in mov_s()
818 IValueT Opcode = 0x00000021; in move()
819 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "pseudo-move"); in move()
820 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "pseudo-move"); in move()
821 const IValueT Rt = 0; // $0 in move()
835 IValueT Opcode = 0x00000001; in movf()
836 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "movf"); in movf()
837 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "movf"); in movf()
842 const IValueT InstEncodingFalse = 0; in movf()
852 static constexpr IValueT Opcode = 0x0000000B; in movn()
858 static constexpr IValueT Opcode = 0x44000013; in movn_d()
864 static constexpr IValueT Opcode = 0x44000013; in movn_s()
870 IValueT Opcode = 0x00000001; in movt()
871 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "movt"); in movt()
872 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "movt"); in movt()
877 const IValueT InstEncodingTrue = 1; in movt()
887 static constexpr IValueT Opcode = 0x44000012; in movz_d()
893 static constexpr IValueT Opcode = 0x0000000A; in movz()
899 static constexpr IValueT Opcode = 0x44000012; in movz_s()
904 static constexpr IValueT Opcode = 0x44800000; in mtc1()
909 IValueT Opcode = 0x000000011; in mthi()
910 IValueT Rs = encodeGPRegister(OpRs, "Rs", "mthi"); in mthi()
916 IValueT Opcode = 0x000000013; in mtlo()
917 IValueT Rs = encodeGPRegister(OpRs, "Rs", "mtlo"); in mtlo()
924 static constexpr IValueT Opcode = 0x70000002; in mul()
930 static constexpr IValueT Opcode = 0x44000002; in mul_d()
936 static constexpr IValueT Opcode = 0x44000002; in mul_s()
941 static constexpr IValueT Opcode = 0x00000018; in mult()
946 static constexpr IValueT Opcode = 0x00000019; in multu()
952 static constexpr IValueT Opcode = 0x00000027; in nor()
958 static constexpr IValueT Opcode = 0x00000025; in or_()
964 static constexpr IValueT Opcode = 0x34000000; in ori()
969 static constexpr IValueT Opcode = 0x03E00008; // JR $31 in ret()
976 static constexpr IValueT Opcode = 0xE0000000; in sc()
982 static constexpr IValueT Opcode = 0x00000000; in sll()
988 static constexpr IValueT Opcode = 0x00000004; in sllv()
994 static constexpr IValueT Opcode = 0x0000002A; in slt()
1000 static constexpr IValueT Opcode = 0x28000000; in slti()
1006 static constexpr IValueT Opcode = 0x0000002B; in sltu()
1012 static constexpr IValueT Opcode = 0x2c000000; in sltiu()
1017 static constexpr IValueT Opcode = 0x44000004; in sqrt_d()
1022 static constexpr IValueT Opcode = 0x44000004; in sqrt_s()
1028 static constexpr IValueT Opcode = 0x00000003; in sra()
1034 static constexpr IValueT Opcode = 0x00000002; in srl()
1040 static constexpr IValueT Opcode = 0x00000007; in srav()
1046 static constexpr IValueT Opcode = 0x00000006; in srlv()
1052 static constexpr IValueT Opcode = 0x44000001; in sub_d()
1058 static constexpr IValueT Opcode = 0x44000001; in sub_s()
1064 static constexpr IValueT Opcode = 0x00000023; in subu()
1070 IValueT Opcode = 0xF4000000; in sdc1()
1071 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "sdc1"); in sdc1()
1072 const IValueT Base = encodeGPRegister(OpBase, "Base", "sdc1"); in sdc1()
1073 IValueT Imm16 = 0; in sdc1()
1094 static constexpr IValueT Opcode = 0xA0000000; in sw()
1099 static constexpr IValueT Opcode = 0xA4000000; in sw()
1104 static constexpr IValueT Opcode = 0xAC000000; in sw()
1109 static constexpr IValueT Opcode = 0xE4000000; in sw()
1114 static constexpr IValueT Opcode = 0xF4000000; in sw()
1124 IValueT Opcode = 0xE4000000; in swc1()
1125 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "swc1"); in swc1()
1126 const IValueT Base = encodeGPRegister(OpBase, "Base", "swc1"); in swc1()
1127 IValueT Imm16 = 0; in swc1()
1144 static constexpr IValueT Opcode = 0x0000000f; in sync()
1150 IValueT Opcode = 0x00000034; in teq()
1151 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "teq"); in teq()
1152 const IValueT Rt = encodeGPRegister(OpRt, "Rt", "teq"); in teq()
1160 static constexpr IValueT Opcode = 0x4400000D; in trunc_l_d()
1165 static constexpr IValueT Opcode = 0x4400000D; in trunc_l_s()
1170 static constexpr IValueT Opcode = 0x4400000D; in trunc_w_d()
1175 static constexpr IValueT Opcode = 0x4400000D; in trunc_w_s()
1181 static constexpr IValueT Opcode = 0x00000026; in xor_()
1187 static constexpr IValueT Opcode = 0x38000000; in xori()
1193 IValueT Opcode = 0; in emitBr()
1226 IValueT Rs = encodeGPRegister(OpRs, "Rs", "branch"); in emitBr()
1231 IValueT Rt = encodeGPRegister(OpRt, "Rt", "branch"); in emitBr()