Lines Matching refs:std

62   typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler);
64 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn()
69 void DriverStr(const std::string& assembly_string, const std::string& test_name) { in DriverStr()
77 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR()
84 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr()
91 std::string RepeatRR(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRR()
100 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes()
109 std::string Repeatrr(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatrr()
118 std::string Repeatww(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatww()
127 std::string Repeatbb(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatbb()
136 std::string RepeatRRR(void (Ass::*f)(Reg, Reg, Reg), const std::string& fmt) { in RepeatRRR()
147 std::string Repeatrb(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatrb()
156 std::string RepeatRr(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRr()
165 std::string RepeatRI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, const std::string& fmt) { in RepeatRI()
169 std::string RepeatrI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, const std::string& fmt) { in RepeatrI()
173 std::string RepeatwI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, const std::string& fmt) { in RepeatwI()
177 std::string RepeatbI(void (Ass::*f)(Reg, const Imm&), size_t imm_bytes, const std::string& fmt) { in RepeatbI()
182 std::string RepeatTemplatedRegistersImmBits(void (Ass::*f)(Reg1, Reg2, ImmType),
184 const std::vector<Reg1*> reg1_registers,
185 const std::vector<Reg2*> reg2_registers,
186 std::string (AssemblerTest::*GetName1)(const Reg1&),
187 std::string (AssemblerTest::*GetName2)(const Reg2&),
188 const std::string& fmt,
191 std::string str;
192 std::vector<int64_t> imms = CreateImmediateValuesBits(abs(imm_bits), (imm_bits > 0));
201 std::string base = fmt;
203 std::string reg1_string = (this->*GetName1)(*reg1);
205 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) {
209 std::string reg2_string = (this->*GetName2)(*reg2);
211 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) {
216 if (imm_index != std::string::npos) {
217 std::ostringstream sreg;
219 std::string imm_string = sreg.str();
236 std::string RepeatTemplatedRegistersImmBits(void (Ass::*f)(Reg1, Reg2, Reg3, ImmType), in RepeatTemplatedRegistersImmBits()
238 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedRegistersImmBits()
239 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedRegistersImmBits()
240 const std::vector<Reg3*> reg3_registers, in RepeatTemplatedRegistersImmBits()
241 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedRegistersImmBits()
242 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedRegistersImmBits()
243 std::string (AssemblerTest::*GetName3)(const Reg3&), in RepeatTemplatedRegistersImmBits()
244 std::string fmt, in RepeatTemplatedRegistersImmBits()
246 std::string str; in RepeatTemplatedRegistersImmBits()
247 std::vector<int64_t> imms = CreateImmediateValuesBits(abs(imm_bits), (imm_bits > 0)); in RepeatTemplatedRegistersImmBits()
257 std::string base = fmt; in RepeatTemplatedRegistersImmBits()
259 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedRegistersImmBits()
261 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
265 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedRegistersImmBits()
267 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
271 std::string reg3_string = (this->*GetName3)(*reg3); in RepeatTemplatedRegistersImmBits()
273 while ((reg3_index = base.find(REG3_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
278 if (imm_index != std::string::npos) { in RepeatTemplatedRegistersImmBits()
279 std::ostringstream sreg; in RepeatTemplatedRegistersImmBits()
281 std::string imm_string = sreg.str(); in RepeatTemplatedRegistersImmBits()
299 std::string RepeatTemplatedImmBitsRegisters(void (Ass::*f)(ImmType, Reg1, Reg2), in RepeatTemplatedImmBitsRegisters()
300 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedImmBitsRegisters()
301 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedImmBitsRegisters()
302 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedImmBitsRegisters()
303 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedImmBitsRegisters()
305 const std::string& fmt) { in RepeatTemplatedImmBitsRegisters()
306 std::vector<int64_t> imms = CreateImmediateValuesBits(abs(imm_bits), (imm_bits > 0)); in RepeatTemplatedImmBitsRegisters()
310 std::string str; in RepeatTemplatedImmBitsRegisters()
318 std::string base = fmt; in RepeatTemplatedImmBitsRegisters()
320 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedImmBitsRegisters()
322 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
326 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedImmBitsRegisters()
328 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
333 if (imm_index != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
334 std::ostringstream sreg; in RepeatTemplatedImmBitsRegisters()
336 std::string imm_string = sreg.str(); in RepeatTemplatedImmBitsRegisters()
353 std::string RepeatTemplatedRegisterImmBits(void (Ass::*f)(RegType, ImmType), in RepeatTemplatedRegisterImmBits()
355 const std::vector<RegType*> registers, in RepeatTemplatedRegisterImmBits()
356 std::string (AssemblerTest::*GetName)(const RegType&), in RepeatTemplatedRegisterImmBits()
357 const std::string& fmt, in RepeatTemplatedRegisterImmBits()
359 std::string str; in RepeatTemplatedRegisterImmBits()
360 std::vector<int64_t> imms = CreateImmediateValuesBits(abs(imm_bits), (imm_bits > 0)); in RepeatTemplatedRegisterImmBits()
368 std::string base = fmt; in RepeatTemplatedRegisterImmBits()
370 std::string reg_string = (this->*GetName)(*reg); in RepeatTemplatedRegisterImmBits()
372 while ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisterImmBits()
377 if (imm_index != std::string::npos) { in RepeatTemplatedRegisterImmBits()
378 std::ostringstream sreg; in RepeatTemplatedRegisterImmBits()
380 std::string imm_string = sreg.str(); in RepeatTemplatedRegisterImmBits()
396 std::string RepeatRRIb(void (Ass::*f)(Reg, Reg, ImmType),
398 const std::string& fmt,
411 std::string RepeatRRRIb(void (Ass::*f)(Reg, Reg, Reg, ImmType),
413 const std::string& fmt,
428 std::string RepeatRIb(void (Ass::*f)(Reg, ImmType), int imm_bits, std::string fmt, int bias = 0) {
438 std::string RepeatFRIb(void (Ass::*f)(FPReg, Reg, ImmType),
440 const std::string& fmt,
452 std::string RepeatFF(void (Ass::*f)(FPReg, FPReg), const std::string& fmt) { in RepeatFF()
461 std::string RepeatFFF(void (Ass::*f)(FPReg, FPReg, FPReg), const std::string& fmt) { in RepeatFFF()
472 std::string RepeatFFR(void (Ass::*f)(FPReg, FPReg, Reg), const std::string& fmt) { in RepeatFFR()
484 std::string RepeatFFI(void (Ass::*f)(FPReg, FPReg, const Imm&), in RepeatFFI()
486 const std::string& fmt) { in RepeatFFI()
497 std::string RepeatFFIb(void (Ass::*f)(FPReg, FPReg, ImmType), in RepeatFFIb()
499 const std::string& fmt) { in RepeatFFIb()
510 std::string RepeatIbFF(void (Ass::*f)(ImmType, FPReg, FPReg), in RepeatIbFF()
512 const std::string& fmt) { in RepeatIbFF()
522 std::string RepeatFR(void (Ass::*f)(FPReg, Reg), const std::string& fmt) { in RepeatFR()
531 std::string RepeatFr(void (Ass::*f)(FPReg, Reg), const std::string& fmt) { in RepeatFr()
540 std::string RepeatRF(void (Ass::*f)(Reg, FPReg), const std::string& fmt) { in RepeatRF()
549 std::string RepeatrF(void (Ass::*f)(Reg, FPReg), const std::string& fmt) { in RepeatrF()
558 std::string RepeatI(void (Ass::*f)(const Imm&),
560 const std::string& fmt,
562 std::string str;
563 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes, as_uint);
572 std::string base = fmt;
575 if (imm_index != std::string::npos) {
576 std::ostringstream sreg;
578 std::string imm_string = sreg.str();
592 std::string RepeatVV(void (Ass::*f)(VecReg, VecReg), const std::string& fmt) { in RepeatVV()
601 std::string RepeatVVV(void (Ass::*f)(VecReg, VecReg, VecReg), const std::string& fmt) { in RepeatVVV()
612 std::string RepeatVR(void (Ass::*f)(VecReg, Reg), const std::string& fmt) { in RepeatVR()
623 std::string RepeatVIb(void (Ass::*f)(VecReg, ImmType),
625 std::string fmt,
636 std::string RepeatVRIb(void (Ass::*f)(VecReg, Reg, ImmType),
638 const std::string& fmt,
654 std::string RepeatRVIb(void (Ass::*f)(Reg, VecReg, ImmType),
656 const std::string& fmt,
672 std::string RepeatVVIb(void (Ass::*f)(VecReg, VecReg, ImmType),
674 const std::string& fmt,
695 virtual std::vector<Addr> GetAddresses() = 0;
699 virtual std::vector<Reg*> GetRegisters() = 0;
703 virtual std::vector<FPReg*> GetFPRegisters() { in GetFPRegisters()
710 virtual std::vector<VecReg*> GetVectorRegisters() { in GetVectorRegisters()
716 virtual std::string GetSecondaryRegisterName(const Reg& reg ATTRIBUTE_UNUSED) { in GetSecondaryRegisterName()
722 virtual std::string GetTertiaryRegisterName(const Reg& reg ATTRIBUTE_UNUSED) { in GetTertiaryRegisterName()
728 virtual std::string GetQuaternaryRegisterName(const Reg& reg ATTRIBUTE_UNUSED) { in GetQuaternaryRegisterName()
733 std::string GetRegisterName(const Reg& reg) { in GetRegisterName()
771 virtual std::string GetArchitectureString() = 0;
774 virtual std::string GetAssemblerCmdName() { in GetAssemblerCmdName()
779 virtual std::string GetAssemblerParameters() { in GetAssemblerParameters()
784 virtual std::string GetObjdumpCmdName() { in GetObjdumpCmdName()
789 virtual std::string GetObjdumpParameters() { in GetObjdumpParameters()
794 virtual std::string GetDisassembleCmdName() { in GetDisassembleCmdName()
800 virtual std::string GetDisassembleParameters() = 0;
803 virtual std::vector<int64_t> CreateImmediateValues(size_t imm_bytes, bool as_uint = false) {
804 std::vector<int64_t> res;
848 virtual std::vector<int64_t> CreateImmediateValuesBits(const int imm_bits, bool as_uint = false) {
851 std::vector<int64_t> res;
910 std::string RepeatA(void (Ass::*f)(const Addr&), const std::string& fmt) { in RepeatA()
916 std::string RepeatA(void (Ass::*f)(const Addr&), in RepeatA()
917 const std::vector<Addr>& a, in RepeatA()
918 const std::string& fmt) { in RepeatA()
923 std::string RepeatAI(void (Ass::*f)(const Addr&, const Imm&), in RepeatAI()
925 const std::string& fmt) { in RepeatAI()
931 std::string RepeatAI(void (Ass::*f)(const Addr&, const Imm&), in RepeatAI()
933 const std::vector<Addr>& a, in RepeatAI()
934 const std::string& fmt) { in RepeatAI()
939 std::string RepeatRA(void (Ass::*f)(Reg, const Addr&), const std::string& fmt) { in RepeatRA()
945 std::string RepeatRA(void (Ass::*f)(Reg, const Addr&), in RepeatRA()
946 const std::vector<Addr>& a, in RepeatRA()
947 const std::string& fmt) { in RepeatRA()
958 std::string RepeatrA(void (Ass::*f)(Reg, const Addr&), const std::string& fmt) { in RepeatrA()
964 std::string RepeatrA(void (Ass::*f)(Reg, const Addr&), in RepeatrA()
965 const std::vector<Addr>& a, in RepeatrA()
966 const std::string& fmt) { in RepeatrA()
977 std::string RepeatwA(void (Ass::*f)(Reg, const Addr&), const std::string& fmt) { in RepeatwA()
983 std::string RepeatwA(void (Ass::*f)(Reg, const Addr&), in RepeatwA()
984 const std::vector<Addr>& a, in RepeatwA()
985 const std::string& fmt) { in RepeatwA()
996 std::string RepeatbA(void (Ass::*f)(Reg, const Addr&), const std::string& fmt) { in RepeatbA()
1002 std::string RepeatbA(void (Ass::*f)(Reg, const Addr&), in RepeatbA()
1003 const std::vector<Addr>& a, in RepeatbA()
1004 const std::string& fmt) { in RepeatbA()
1015 std::string RepeatFA(void (Ass::*f)(FPReg, const Addr&), const std::string& fmt) { in RepeatFA()
1021 std::string RepeatFA(void (Ass::*f)(FPReg, const Addr&), in RepeatFA()
1022 const std::vector<Addr>& a, in RepeatFA()
1023 const std::string& fmt) { in RepeatFA()
1034 std::string RepeatAR(void (Ass::*f)(const Addr&, Reg), const std::string& fmt) { in RepeatAR()
1040 std::string RepeatAR(void (Ass::*f)(const Addr&, Reg), in RepeatAR()
1041 const std::vector<Addr>& a, in RepeatAR()
1042 const std::string& fmt) { in RepeatAR()
1053 std::string RepeatAr(void (Ass::*f)(const Addr&, Reg), const std::string& fmt) { in RepeatAr()
1059 std::string RepeatAr(void (Ass::*f)(const Addr&, Reg), in RepeatAr()
1060 const std::vector<Addr>& a, in RepeatAr()
1061 const std::string& fmt) { in RepeatAr()
1072 std::string RepeatAw(void (Ass::*f)(const Addr&, Reg), const std::string& fmt) { in RepeatAw()
1078 std::string RepeatAw(void (Ass::*f)(const Addr&, Reg), in RepeatAw()
1079 const std::vector<Addr>& a, in RepeatAw()
1080 const std::string& fmt) { in RepeatAw()
1091 std::string RepeatAb(void (Ass::*f)(const Addr&, Reg), const std::string& fmt) { in RepeatAb()
1097 std::string RepeatAb(void (Ass::*f)(const Addr&, Reg), in RepeatAb()
1098 const std::vector<Addr>& a, in RepeatAb()
1099 const std::string& fmt) { in RepeatAb()
1110 std::string RepeatAF(void (Ass::*f)(const Addr&, FPReg), const std::string& fmt) { in RepeatAF()
1116 std::string RepeatAF(void (Ass::*f)(const Addr&, FPReg), in RepeatAF()
1117 const std::vector<Addr>& a, in RepeatAF()
1118 const std::string& fmt) { in RepeatAF()
1129 std::string RepeatTemplatedMem(void (Ass::*f)(const AddrType&), in RepeatTemplatedMem()
1130 const std::vector<AddrType> addresses, in RepeatTemplatedMem()
1131 std::string (AssemblerTest::*GetAName)(const AddrType&), in RepeatTemplatedMem()
1132 const std::string& fmt) { in RepeatTemplatedMem()
1134 std::string str; in RepeatTemplatedMem()
1139 std::string base = fmt; in RepeatTemplatedMem()
1141 std::string addr_string = (this->*GetAName)(addr); in RepeatTemplatedMem()
1143 if ((addr_index = base.find(ADDRESS_TOKEN)) != std::string::npos) { in RepeatTemplatedMem()
1158 std::string RepeatTemplatedMemImm(void (Ass::*f)(const AddrType&, const Imm&), in RepeatTemplatedMemImm()
1160 const std::vector<AddrType> addresses, in RepeatTemplatedMemImm()
1161 std::string (AssemblerTest::*GetAName)(const AddrType&), in RepeatTemplatedMemImm()
1162 const std::string& fmt) { in RepeatTemplatedMemImm()
1163 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes); in RepeatTemplatedMemImm()
1165 std::string str; in RepeatTemplatedMemImm()
1172 std::string base = fmt; in RepeatTemplatedMemImm()
1174 std::string addr_string = (this->*GetAName)(addr); in RepeatTemplatedMemImm()
1176 if ((addr_index = base.find(ADDRESS_TOKEN)) != std::string::npos) { in RepeatTemplatedMemImm()
1181 if (imm_index != std::string::npos) { in RepeatTemplatedMemImm()
1182 std::ostringstream sreg; in RepeatTemplatedMemImm()
1184 std::string imm_string = sreg.str(); in RepeatTemplatedMemImm()
1200 std::string RepeatTemplatedRegMem(void (Ass::*f)(RegType, const AddrType&), in RepeatTemplatedRegMem()
1201 const std::vector<RegType*> registers, in RepeatTemplatedRegMem()
1202 const std::vector<AddrType> addresses, in RepeatTemplatedRegMem()
1203 std::string (AssemblerTest::*GetRName)(const RegType&), in RepeatTemplatedRegMem()
1204 std::string (AssemblerTest::*GetAName)(const AddrType&), in RepeatTemplatedRegMem()
1205 const std::string& fmt) { in RepeatTemplatedRegMem()
1207 std::string str; in RepeatTemplatedRegMem()
1213 std::string base = fmt; in RepeatTemplatedRegMem()
1215 std::string reg_string = (this->*GetRName)(*reg); in RepeatTemplatedRegMem()
1217 if ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedRegMem()
1221 std::string addr_string = (this->*GetAName)(addr); in RepeatTemplatedRegMem()
1223 if ((addr_index = base.find(ADDRESS_TOKEN)) != std::string::npos) { in RepeatTemplatedRegMem()
1239 std::string RepeatTemplatedMemReg(void (Ass::*f)(const AddrType&, RegType), in RepeatTemplatedMemReg()
1240 const std::vector<AddrType> addresses, in RepeatTemplatedMemReg()
1241 const std::vector<RegType*> registers, in RepeatTemplatedMemReg()
1242 std::string (AssemblerTest::*GetAName)(const AddrType&), in RepeatTemplatedMemReg()
1243 std::string (AssemblerTest::*GetRName)(const RegType&), in RepeatTemplatedMemReg()
1244 const std::string& fmt) { in RepeatTemplatedMemReg()
1246 std::string str; in RepeatTemplatedMemReg()
1252 std::string base = fmt; in RepeatTemplatedMemReg()
1254 std::string addr_string = (this->*GetAName)(addr); in RepeatTemplatedMemReg()
1256 if ((addr_index = base.find(ADDRESS_TOKEN)) != std::string::npos) { in RepeatTemplatedMemReg()
1260 std::string reg_string = (this->*GetRName)(*reg); in RepeatTemplatedMemReg()
1262 if ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedMemReg()
1282 std::string RepeatTemplatedRegister(void (Ass::*f)(RegType), in RepeatTemplatedRegister()
1283 const std::vector<RegType*> registers, in RepeatTemplatedRegister()
1284 std::string (AssemblerTest::*GetName)(const RegType&), in RepeatTemplatedRegister()
1285 const std::string& fmt) { in RepeatTemplatedRegister()
1286 std::string str; in RepeatTemplatedRegister()
1291 std::string base = fmt; in RepeatTemplatedRegister()
1293 std::string reg_string = (this->*GetName)(*reg); in RepeatTemplatedRegister()
1295 if ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedRegister()
1310 std::string RepeatTemplatedRegisters(void (Ass::*f)(Reg1, Reg2), in RepeatTemplatedRegisters()
1311 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedRegisters()
1312 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedRegisters()
1313 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedRegisters()
1314 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedRegisters()
1315 const std::string& fmt) { in RepeatTemplatedRegisters()
1318 std::string str; in RepeatTemplatedRegisters()
1324 std::string base = fmt; in RepeatTemplatedRegisters()
1326 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedRegisters()
1328 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisters()
1332 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedRegisters()
1334 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisters()
1350 std::string RepeatTemplatedRegistersNoDupes(void (Ass::*f)(Reg1, Reg2), in RepeatTemplatedRegistersNoDupes()
1351 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedRegistersNoDupes()
1352 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedRegistersNoDupes()
1353 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedRegistersNoDupes()
1354 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedRegistersNoDupes()
1355 const std::string& fmt) { in RepeatTemplatedRegistersNoDupes()
1358 std::string str; in RepeatTemplatedRegistersNoDupes()
1365 std::string base = fmt; in RepeatTemplatedRegistersNoDupes()
1367 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedRegistersNoDupes()
1369 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersNoDupes()
1373 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedRegistersNoDupes()
1375 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersNoDupes()
1391 std::string RepeatTemplatedRegisters(void (Ass::*f)(Reg1, Reg2, Reg3), in RepeatTemplatedRegisters()
1392 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedRegisters()
1393 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedRegisters()
1394 const std::vector<Reg3*> reg3_registers, in RepeatTemplatedRegisters()
1395 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedRegisters()
1396 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedRegisters()
1397 std::string (AssemblerTest::*GetName3)(const Reg3&), in RepeatTemplatedRegisters()
1398 const std::string& fmt) { in RepeatTemplatedRegisters()
1399 std::string str; in RepeatTemplatedRegisters()
1406 std::string base = fmt; in RepeatTemplatedRegisters()
1408 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedRegisters()
1410 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisters()
1414 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedRegisters()
1416 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisters()
1420 std::string reg3_string = (this->*GetName3)(*reg3); in RepeatTemplatedRegisters()
1422 while ((reg3_index = base.find(REG3_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisters()
1439 std::string RepeatTemplatedRegistersImm(void (Ass::*f)(Reg1, Reg2, const Imm&), in RepeatTemplatedRegistersImm()
1440 const std::vector<Reg1*> reg1_registers, in RepeatTemplatedRegistersImm()
1441 const std::vector<Reg2*> reg2_registers, in RepeatTemplatedRegistersImm()
1442 std::string (AssemblerTest::*GetName1)(const Reg1&), in RepeatTemplatedRegistersImm()
1443 std::string (AssemblerTest::*GetName2)(const Reg2&), in RepeatTemplatedRegistersImm()
1445 const std::string& fmt) { in RepeatTemplatedRegistersImm()
1446 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes); in RepeatTemplatedRegistersImm()
1449 std::string str; in RepeatTemplatedRegistersImm()
1457 std::string base = fmt; in RepeatTemplatedRegistersImm()
1459 std::string reg1_string = (this->*GetName1)(*reg1); in RepeatTemplatedRegistersImm()
1461 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImm()
1465 std::string reg2_string = (this->*GetName2)(*reg2); in RepeatTemplatedRegistersImm()
1467 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImm()
1472 if (imm_index != std::string::npos) { in RepeatTemplatedRegistersImm()
1473 std::ostringstream sreg; in RepeatTemplatedRegistersImm()
1475 std::string imm_string = sreg.str(); in RepeatTemplatedRegistersImm()
1491 std::string GetAddrName(const Addr& addr) { in GetAddrName()
1492 std::ostringstream saddr; in GetAddrName()
1498 std::string GetRegName(const Reg& reg) { in GetRegName()
1499 std::ostringstream sreg; in GetRegName()
1520 std::string GetFPRegName(const FPReg& reg) { in GetFPRegName()
1521 std::ostringstream sreg; in GetFPRegName()
1526 std::string GetVecRegName(const VecReg& reg) { in GetVecRegName()
1527 std::ostringstream sreg; in GetVecRegName()
1552 std::string RepeatRegisterImm(void (Ass::*f)(Reg, const Imm&), in RepeatRegisterImm()
1554 const std::string& fmt) { in RepeatRegisterImm()
1555 const std::vector<Reg*> registers = GetRegisters(); in RepeatRegisterImm()
1556 std::string str; in RepeatRegisterImm()
1557 std::vector<int64_t> imms = CreateImmediateValues(imm_bytes); in RepeatRegisterImm()
1567 std::string base = fmt; in RepeatRegisterImm()
1569 std::string reg_string = GetRegName<kRegView>(*reg); in RepeatRegisterImm()
1571 while ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatRegisterImm()
1576 if (imm_index != std::string::npos) { in RepeatRegisterImm()
1577 std::ostringstream sreg; in RepeatRegisterImm()
1579 std::string imm_string = sreg.str(); in RepeatRegisterImm()
1595 virtual void Pad(std::vector<uint8_t>& data ATTRIBUTE_UNUSED) { in Pad()
1598 void DriverWrapper(const std::string& assembly_text, const std::string& test_name) { in DriverWrapper()
1601 std::unique_ptr<std::vector<uint8_t>> data(new std::vector<uint8_t>(cs)); in DriverWrapper()
1611 std::unique_ptr<ArenaAllocator> allocator_;
1612 std::unique_ptr<Ass> assembler_;
1613 std::unique_ptr<AssemblerTestInfrastructure> test_helper_;