• Home
  • Raw
  • Download

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()
748 IValueT Opcode = 0xC4000000; in lwc1()
749 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "lwc1"); in lwc1()
750 const IValueT Base = encodeGPRegister(OpBase, "Base", "lwc1"); in lwc1()
751 IValueT Imm16 = 0; in lwc1()
768 static constexpr IValueT Opcode = 0x44000000; in mfc1()
773 IValueT Opcode = 0x000000010; in mfhi()
774 IValueT Rd = encodeGPRegister(OpRd, "Rd", "mfhi"); in mfhi()
780 IValueT Opcode = 0x000000012; in mflo()
781 IValueT Rd = encodeGPRegister(OpRd, "Rd", "mflo"); in mflo()
787 static constexpr IValueT Opcode = 0x44000006; in mov_d()
792 static constexpr IValueT Opcode = 0x44000006; in mov_s()
820 IValueT Opcode = 0x00000021; in move()
821 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "pseudo-move"); in move()
822 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "pseudo-move"); in move()
823 const IValueT Rt = 0; // $0 in move()
839 IValueT Opcode = 0x00000001; in movf()
840 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "movf"); in movf()
841 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "movf"); in movf()
846 const IValueT InstEncodingFalse = 0; in movf()
856 static constexpr IValueT Opcode = 0x0000000B; in movn()
862 static constexpr IValueT Opcode = 0x44000013; in movn_d()
868 static constexpr IValueT Opcode = 0x44000013; in movn_s()
874 IValueT Opcode = 0x00000001; in movt()
875 const IValueT Rd = encodeGPRegister(OpRd, "Rd", "movt"); in movt()
876 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "movt"); in movt()
881 const IValueT InstEncodingTrue = 1; in movt()
891 static constexpr IValueT Opcode = 0x44000012; in movz_d()
897 static constexpr IValueT Opcode = 0x0000000A; in movz()
903 static constexpr IValueT Opcode = 0x44000012; in movz_s()
908 static constexpr IValueT Opcode = 0x44800000; in mtc1()
913 IValueT Opcode = 0x000000011; in mthi()
914 IValueT Rs = encodeGPRegister(OpRs, "Rs", "mthi"); in mthi()
920 IValueT Opcode = 0x000000013; in mtlo()
921 IValueT Rs = encodeGPRegister(OpRs, "Rs", "mtlo"); in mtlo()
928 static constexpr IValueT Opcode = 0x70000002; in mul()
934 static constexpr IValueT Opcode = 0x44000002; in mul_d()
940 static constexpr IValueT Opcode = 0x44000002; in mul_s()
945 static constexpr IValueT Opcode = 0x00000018; in mult()
950 static constexpr IValueT Opcode = 0x00000019; in multu()
956 static constexpr IValueT Opcode = 0x00000027; in nor()
962 static constexpr IValueT Opcode = 0x00000025; in or_()
968 static constexpr IValueT Opcode = 0x34000000; in ori()
973 static constexpr IValueT Opcode = 0x03E00008; // JR $31 in ret()
980 static constexpr IValueT Opcode = 0xE0000000; in sc()
986 static constexpr IValueT Opcode = 0x00000000; in sll()
992 static constexpr IValueT Opcode = 0x00000004; in sllv()
998 static constexpr IValueT Opcode = 0x0000002A; in slt()
1004 static constexpr IValueT Opcode = 0x28000000; in slti()
1010 static constexpr IValueT Opcode = 0x0000002B; in sltu()
1016 static constexpr IValueT Opcode = 0x2c000000; in sltiu()
1021 static constexpr IValueT Opcode = 0x44000004; in sqrt_d()
1026 static constexpr IValueT Opcode = 0x44000004; in sqrt_s()
1032 static constexpr IValueT Opcode = 0x00000003; in sra()
1038 static constexpr IValueT Opcode = 0x00000002; in srl()
1044 static constexpr IValueT Opcode = 0x00000007; in srav()
1050 static constexpr IValueT Opcode = 0x00000006; in srlv()
1056 static constexpr IValueT Opcode = 0x44000001; in sub_d()
1062 static constexpr IValueT Opcode = 0x44000001; in sub_s()
1068 static constexpr IValueT Opcode = 0x00000023; in subu()
1074 IValueT Opcode = 0xF4000000; in sdc1()
1075 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "sdc1"); in sdc1()
1076 const IValueT Base = encodeGPRegister(OpBase, "Base", "sdc1"); in sdc1()
1077 IValueT Imm16 = 0; in sdc1()
1098 static constexpr IValueT Opcode = 0xA0000000; in sw()
1103 static constexpr IValueT Opcode = 0xA4000000; in sw()
1108 static constexpr IValueT Opcode = 0xAC000000; in sw()
1113 static constexpr IValueT Opcode = 0xE4000000; in sw()
1118 static constexpr IValueT Opcode = 0xF4000000; in sw()
1130 IValueT Opcode = 0xE4000000; in swc1()
1131 const IValueT Rt = encodeFPRegister(OpRt, "Ft", "swc1"); in swc1()
1132 const IValueT Base = encodeGPRegister(OpBase, "Base", "swc1"); in swc1()
1133 IValueT Imm16 = 0; in swc1()
1150 static constexpr IValueT Opcode = 0x0000000f; in sync()
1156 IValueT Opcode = 0x00000034; in teq()
1157 const IValueT Rs = encodeGPRegister(OpRs, "Rs", "teq"); in teq()
1158 const IValueT Rt = encodeGPRegister(OpRt, "Rt", "teq"); in teq()
1166 static constexpr IValueT Opcode = 0x4400000D; in trunc_l_d()
1171 static constexpr IValueT Opcode = 0x4400000D; in trunc_l_s()
1176 static constexpr IValueT Opcode = 0x4400000D; in trunc_w_d()
1181 static constexpr IValueT Opcode = 0x4400000D; in trunc_w_s()
1187 static constexpr IValueT Opcode = 0x00000026; in xor_()
1193 static constexpr IValueT Opcode = 0x38000000; in xori()
1199 IValueT Opcode = 0; in emitBr()
1232 IValueT Rs = encodeGPRegister(OpRs, "Rs", "branch"); in emitBr()
1237 IValueT Rt = encodeGPRegister(OpRt, "Rt", "branch"); in emitBr()