Lines Matching full:format

70   int FormatFPRegister(Instruction* instr, const char* format);
76 void Format(Instruction* instr, const char* format);
151 int Decoder::FormatRegister(Instruction* instr, const char* format) { in FormatRegister() argument
152 DCHECK_EQ(format[0], 'r'); in FormatRegister()
154 if ((format[1] == 't') || (format[1] == 's')) { // 'rt & 'rs register in FormatRegister()
158 } else if (format[1] == 'a') { // 'ra: RA register in FormatRegister()
162 } else if (format[1] == 'b') { // 'rb: RB register in FormatRegister()
174 int Decoder::FormatFPRegister(Instruction* instr, const char* format) { in FormatFPRegister() argument
175 DCHECK_EQ(format[0], 'D'); in FormatFPRegister()
179 if (format[1] == 't') { in FormatFPRegister()
181 } else if (format[1] == 'a') { in FormatFPRegister()
183 } else if (format[1] == 'b') { in FormatFPRegister()
185 } else if (format[1] == 'c') { in FormatFPRegister()
198 // the current instructions. The format string points to the first
202 int Decoder::FormatOption(Instruction* instr, const char* format) { in FormatOption() argument
203 switch (format[0]) { in FormatOption()
219 return FormatRegister(instr, format); in FormatOption()
222 return FormatFPRegister(instr, format); in FormatOption()
258 DCHECK(STRING_STARTS_WITH(format, "target")); in FormatOption()
259 if ((format[6] == '2') && (format[7] == '6')) { in FormatOption()
265 } else if ((format[6] == '1') && (format[7] == '6')) { in FormatOption()
274 DCHECK_EQ(format[1], 'h'); in FormatOption()
291 if (format[1] == 'e') { in FormatOption()
299 } else if (format[1] == 'b') { in FormatOption()
308 UNREACHABLE(); // bad format in FormatOption()
331 // Format takes a formatting string for a whole instruction and prints it into
334 void Decoder::Format(Instruction* instr, const char* format) { in Format() function in v8::internal::Decoder
335 char cur = *format++; in Format()
338 format += FormatOption(instr, format); in Format()
342 cur = *format++; in Format()
359 void Decoder::Unknown(Instruction* instr) { Format(instr, "unknown"); } in Unknown()
367 snprintf(buffer, sizeof(buffer), "%s (unknown-format)", name); in UnknownFormat()
368 Format(instr, buffer); in UnknownFormat()
394 Format(instr, "bnelr'l'cr"); in DecodeExt1()
397 Format(instr, "blelr'l'cr"); in DecodeExt1()
400 Format(instr, "bgelr'l'cr"); in DecodeExt1()
403 Format(instr, "bnsolr'l'cr"); in DecodeExt1()
419 Format(instr, "beqlr'l'cr"); in DecodeExt1()
422 Format(instr, "bgtlr'l'cr"); in DecodeExt1()
425 Format(instr, "bltlr'l'cr"); in DecodeExt1()
428 Format(instr, "bsolr'l'cr"); in DecodeExt1()
442 Format(instr, "blr'l"); in DecodeExt1()
484 Format(instr, "bctrl"); in DecodeExt1()
486 Format(instr, "bctr"); in DecodeExt1()
495 Format(instr, "crnor (stuff)"); in DecodeExt1()
499 Format(instr, "rfi (stuff)"); in DecodeExt1()
503 Format(instr, "crandc (stuff)"); in DecodeExt1()
507 Format(instr, "isync (stuff)"); in DecodeExt1()
511 Format(instr, "crxor (stuff)"); in DecodeExt1()
545 Format(instr, "srw'. 'ra, 'rs, 'rb"); in DecodeExt2()
550 Format(instr, "srd'. 'ra, 'rs, 'rb"); in DecodeExt2()
555 Format(instr, "sraw'. 'ra, 'rs, 'rb"); in DecodeExt2()
560 Format(instr, "srad'. 'ra, 'rs, 'rb"); in DecodeExt2()
565 Format(instr, "sync"); in DecodeExt2()
569 Format(instr, "modsw 'rt, 'ra, 'rb"); in DecodeExt2()
573 Format(instr, "moduw 'rt, 'ra, 'rb"); in DecodeExt2()
578 Format(instr, "modsd 'rt, 'ra, 'rb"); in DecodeExt2()
582 Format(instr, "modud 'rt, 'ra, 'rb"); in DecodeExt2()
587 Format(instr, "srawi'. 'ra,'rs,'sh"); in DecodeExt2()
591 Format(instr, "extsh'. 'ra, 'rs"); in DecodeExt2()
596 Format(instr, "extsw'. 'ra, 'rs"); in DecodeExt2()
601 Format(instr, "extsb'. 'ra, 'rs"); in DecodeExt2()
605 Format(instr, "lfsx 'Dt, 'ra, 'rb"); in DecodeExt2()
609 Format(instr, "lfsux 'Dt, 'ra, 'rb"); in DecodeExt2()
613 Format(instr, "lfdx 'Dt, 'ra, 'rb"); in DecodeExt2()
617 Format(instr, "lfdux 'Dt, 'ra, 'rb"); in DecodeExt2()
621 Format(instr, "stfsx 'rs, 'ra, 'rb"); in DecodeExt2()
625 Format(instr, "stfsux 'rs, 'ra, 'rb"); in DecodeExt2()
629 Format(instr, "stfdx 'rs, 'ra, 'rb"); in DecodeExt2()
633 Format(instr, "stfdux 'rs, 'ra, 'rb"); in DecodeExt2()
637 Format(instr, "popcntw 'ra, 'rs"); in DecodeExt2()
642 Format(instr, "popcntd 'ra, 'rs"); in DecodeExt2()
650 Format(instr, "sradi'. 'ra,'rs,'sh"); in DecodeExt2()
657 Format(instr, "stbcx 'rs, 'ra, 'rb"); in DecodeExt2()
661 Format(instr, "sthcx 'rs, 'ra, 'rb"); in DecodeExt2()
665 Format(instr, "stwcx 'rs, 'ra, 'rb"); in DecodeExt2()
676 Format(instr, "cmp 'ra, 'rb"); in DecodeExt2()
679 Format(instr, "cmpw 'ra, 'rb"); in DecodeExt2()
685 Format(instr, "slw'. 'ra, 'rs, 'rb"); in DecodeExt2()
690 Format(instr, "sld'. 'ra, 'rs, 'rb"); in DecodeExt2()
695 Format(instr, "subfc'. 'rt, 'ra, 'rb"); in DecodeExt2()
699 Format(instr, "subfe'. 'rt, 'ra, 'rb"); in DecodeExt2()
703 Format(instr, "addc'. 'rt, 'ra, 'rb"); in DecodeExt2()
707 Format(instr, "adde'. 'rt, 'ra, 'rb"); in DecodeExt2()
711 Format(instr, "cntlzw'. 'ra, 'rs"); in DecodeExt2()
716 Format(instr, "cntlzd'. 'ra, 'rs"); in DecodeExt2()
721 Format(instr, "and'. 'ra, 'rs, 'rb"); in DecodeExt2()
725 Format(instr, "andc'. 'ra, 'rs, 'rb"); in DecodeExt2()
732 Format(instr, "cmpl 'ra, 'rb"); in DecodeExt2()
735 Format(instr, "cmplw 'ra, 'rb"); in DecodeExt2()
741 Format(instr, "neg'. 'rt, 'ra"); in DecodeExt2()
745 Format(instr, "nor'. 'rt, 'ra, 'rb"); in DecodeExt2()
749 Format(instr, "subf'. 'rt, 'ra, 'rb"); in DecodeExt2()
753 Format(instr, "mulhw'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
757 Format(instr, "addze'. 'rt, 'ra"); in DecodeExt2()
761 Format(instr, "mullw'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
766 Format(instr, "mulld'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
771 Format(instr, "divw'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
775 Format(instr, "divwu'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
780 Format(instr, "divd'o'. 'rt, 'ra, 'rb"); in DecodeExt2()
785 Format(instr, "add'o 'rt, 'ra, 'rb"); in DecodeExt2()
789 Format(instr, "xor'. 'ra, 'rs, 'rb"); in DecodeExt2()
794 Format(instr, "mr 'ra, 'rb"); in DecodeExt2()
796 Format(instr, "or 'ra, 'rs, 'rb"); in DecodeExt2()
803 Format(instr, "mflr 'rt"); in DecodeExt2()
805 Format(instr, "mfspr 'rt ??"); in DecodeExt2()
812 Format(instr, "mtlr 'rt"); in DecodeExt2()
814 Format(instr, "mtctr 'rt"); in DecodeExt2()
816 Format(instr, "mtspr 'rt ??"); in DecodeExt2()
821 Format(instr, "mfcr 'rt"); in DecodeExt2()
825 Format(instr, "stwx 'rs, 'ra, 'rb"); in DecodeExt2()
829 Format(instr, "stwux 'rs, 'ra, 'rb"); in DecodeExt2()
833 Format(instr, "stbx 'rs, 'ra, 'rb"); in DecodeExt2()
837 Format(instr, "stbux 'rs, 'ra, 'rb"); in DecodeExt2()
841 Format(instr, "sthx 'rs, 'ra, 'rb"); in DecodeExt2()
845 Format(instr, "sthux 'rs, 'ra, 'rb"); in DecodeExt2()
849 Format(instr, "lwzx 'rt, 'ra, 'rb"); in DecodeExt2()
853 Format(instr, "lwzux 'rt, 'ra, 'rb"); in DecodeExt2()
857 Format(instr, "lwax 'rt, 'ra, 'rb"); in DecodeExt2()
861 Format(instr, "lbzx 'rt, 'ra, 'rb"); in DecodeExt2()
865 Format(instr, "lbzux 'rt, 'ra, 'rb"); in DecodeExt2()
869 Format(instr, "lhzx 'rt, 'ra, 'rb"); in DecodeExt2()
873 Format(instr, "lhzux 'rt, 'ra, 'rb"); in DecodeExt2()
877 Format(instr, "lhax 'rt, 'ra, 'rb"); in DecodeExt2()
881 Format(instr, "lbarx 'rt, 'ra, 'rb"); in DecodeExt2()
885 Format(instr, "lharx 'rt, 'ra, 'rb"); in DecodeExt2()
889 Format(instr, "lwarx 'rt, 'ra, 'rb"); in DecodeExt2()
894 Format(instr, "ldx 'rt, 'ra, 'rb"); in DecodeExt2()
898 Format(instr, "ldux 'rt, 'ra, 'rb"); in DecodeExt2()
902 Format(instr, "stdx 'rt, 'ra, 'rb"); in DecodeExt2()
906 Format(instr, "stdux 'rt, 'ra, 'rb"); in DecodeExt2()
910 Format(instr, "mffprd 'ra, 'Dt"); in DecodeExt2()
914 Format(instr, "mffprwz 'ra, 'Dt"); in DecodeExt2()
918 Format(instr, "mtfprd 'Dt, 'ra"); in DecodeExt2()
922 Format(instr, "mtfprwa 'Dt, 'ra"); in DecodeExt2()
926 Format(instr, "mtfprwz 'Dt, 'ra"); in DecodeExt2()
934 Format(instr, "isel 'rt, 'ra, 'rb"); in DecodeExt2()
947 Format(instr, "fcfids'. 'Dt, 'Db"); in DecodeExt3()
951 Format(instr, "fcfidus'.'Dt, 'Db"); in DecodeExt3()
964 Format(instr, "fdiv'. 'Dt, 'Da, 'Db"); in DecodeExt4()
968 Format(instr, "fsub'. 'Dt, 'Da, 'Db"); in DecodeExt4()
972 Format(instr, "fadd'. 'Dt, 'Da, 'Db"); in DecodeExt4()
976 Format(instr, "fsqrt'. 'Dt, 'Db"); in DecodeExt4()
980 Format(instr, "fsel'. 'Dt, 'Da, 'Dc, 'Db"); in DecodeExt4()
984 Format(instr, "fmul'. 'Dt, 'Da, 'Dc"); in DecodeExt4()
988 Format(instr, "fmsub'. 'Dt, 'Da, 'Dc, 'Db"); in DecodeExt4()
992 Format(instr, "fmadd'. 'Dt, 'Da, 'Dc, 'Db"); in DecodeExt4()
999 Format(instr, "fcmpu 'Da, 'Db"); in DecodeExt4()
1003 Format(instr, "frsp'. 'Dt, 'Db"); in DecodeExt4()
1007 Format(instr, "fcfid'. 'Dt, 'Db"); in DecodeExt4()
1011 Format(instr, "fcfidu'. 'Dt, 'Db"); in DecodeExt4()
1015 Format(instr, "fctid 'Dt, 'Db"); in DecodeExt4()
1019 Format(instr, "fctidz 'Dt, 'Db"); in DecodeExt4()
1023 Format(instr, "fctidu 'Dt, 'Db"); in DecodeExt4()
1027 Format(instr, "fctiduz 'Dt, 'Db"); in DecodeExt4()
1031 Format(instr, "fctiw'. 'Dt, 'Db"); in DecodeExt4()
1035 Format(instr, "fctiwz'. 'Dt, 'Db"); in DecodeExt4()
1039 Format(instr, "fmr'. 'Dt, 'Db"); in DecodeExt4()
1043 Format(instr, "mtfsfi'. ?,?"); in DecodeExt4()
1047 Format(instr, "mffs'. 'Dt"); in DecodeExt4()
1051 Format(instr, "mtfsf'. 'Db ?,?,?"); in DecodeExt4()
1055 Format(instr, "fabs'. 'Dt, 'Db"); in DecodeExt4()
1059 Format(instr, "frin. 'Dt, 'Db"); in DecodeExt4()
1063 Format(instr, "friz. 'Dt, 'Db"); in DecodeExt4()
1067 Format(instr, "frip. 'Dt, 'Db"); in DecodeExt4()
1071 Format(instr, "frim. 'Dt, 'Db"); in DecodeExt4()
1075 Format(instr, "fneg'. 'Dt, 'Db"); in DecodeExt4()
1079 Format(instr, "mcrfs ?,?"); in DecodeExt4()
1083 Format(instr, "mtfsb0'. ?"); in DecodeExt4()
1087 Format(instr, "mtfsb1'. ?"); in DecodeExt4()
1100 Format(instr, "rldicl'. 'ra, 'rs, 'sh, 'mb"); in DecodeExt5()
1104 Format(instr, "rldicr'. 'ra, 'rs, 'sh, 'me"); in DecodeExt5()
1108 Format(instr, "rldic'. 'ra, 'rs, 'sh, 'mb"); in DecodeExt5()
1112 Format(instr, "rldimi'. 'ra, 'rs, 'sh, 'mb"); in DecodeExt5()
1118 Format(instr, "rldcl'. 'ra, 'rs, 'sb, 'mb"); in DecodeExt5()
1129 Format(instr, #name" 'Dt, 'Da, 'Db"); \ in DecodeExt6()
1138 Format(instr, #name" 'Dt, 'Db"); \ in DecodeExt6()
1159 Format(instr, "constant"); in InstructionDecode()
1174 Format(instr, "subfic 'rt, 'ra, 'int16"); in InstructionDecode()
1181 Format(instr, "cmpli 'ra, 'uint16"); in InstructionDecode()
1184 Format(instr, "cmplwi 'ra, 'uint16"); in InstructionDecode()
1193 Format(instr, "cmpi 'ra, 'int16"); in InstructionDecode()
1196 Format(instr, "cmpwi 'ra, 'int16"); in InstructionDecode()
1202 Format(instr, "addic 'rt, 'ra, 'int16"); in InstructionDecode()
1212 Format(instr, "li 'rt, 'int16"); in InstructionDecode()
1214 Format(instr, "addi 'rt, 'ra, 'int16"); in InstructionDecode()
1220 Format(instr, "lis 'rt, 'int16"); in InstructionDecode()
1222 Format(instr, "addis 'rt, 'ra, 'int16"); in InstructionDecode()
1234 Format(instr, "beq'l'a'cr 'target16"); in InstructionDecode()
1237 Format(instr, "bgt'l'a'cr 'target16"); in InstructionDecode()
1240 Format(instr, "blt'l'a'cr 'target16"); in InstructionDecode()
1243 Format(instr, "bso'l'a'cr 'target16"); in InstructionDecode()
1251 Format(instr, "bne'l'a'cr 'target16"); in InstructionDecode()
1254 Format(instr, "ble'l'a'cr 'target16"); in InstructionDecode()
1257 Format(instr, "bge'l'a'cr 'target16"); in InstructionDecode()
1260 Format(instr, "bnso'l'a'cr 'target16"); in InstructionDecode()
1266 Format(instr, "bdnz'l'a 'target16"); in InstructionDecode()
1270 Format(instr, "bc'l'a'cr 'target16"); in InstructionDecode()
1280 Format(instr, "b'l'a 'target26"); in InstructionDecode()
1288 Format(instr, "rlwimi'. 'ra, 'rs, 'sh, 'me, 'mb"); in InstructionDecode()
1292 Format(instr, "rlwinm'. 'ra, 'rs, 'sh, 'me, 'mb"); in InstructionDecode()
1296 Format(instr, "rlwnm'. 'ra, 'rs, 'rb, 'me, 'mb"); in InstructionDecode()
1300 Format(instr, "ori 'ra, 'rs, 'uint16"); in InstructionDecode()
1304 Format(instr, "oris 'ra, 'rs, 'uint16"); in InstructionDecode()
1308 Format(instr, "xori 'ra, 'rs, 'uint16"); in InstructionDecode()
1312 Format(instr, "xoris 'ra, 'rs, 'uint16"); in InstructionDecode()
1316 Format(instr, "andi. 'ra, 'rs, 'uint16"); in InstructionDecode()
1320 Format(instr, "andis. 'ra, 'rs, 'uint16"); in InstructionDecode()
1328 Format(instr, "lwz 'rt, 'int16('ra)"); in InstructionDecode()
1332 Format(instr, "lwzu 'rt, 'int16('ra)"); in InstructionDecode()
1336 Format(instr, "lbz 'rt, 'int16('ra)"); in InstructionDecode()
1340 Format(instr, "lbzu 'rt, 'int16('ra)"); in InstructionDecode()
1344 Format(instr, "stw 'rs, 'int16('ra)"); in InstructionDecode()
1348 Format(instr, "stwu 'rs, 'int16('ra)"); in InstructionDecode()
1352 Format(instr, "stb 'rs, 'int16('ra)"); in InstructionDecode()
1356 Format(instr, "stbu 'rs, 'int16('ra)"); in InstructionDecode()
1360 Format(instr, "lhz 'rt, 'int16('ra)"); in InstructionDecode()
1364 Format(instr, "lhzu 'rt, 'int16('ra)"); in InstructionDecode()
1368 Format(instr, "lha 'rt, 'int16('ra)"); in InstructionDecode()
1372 Format(instr, "lhau 'rt, 'int16('ra)"); in InstructionDecode()
1376 Format(instr, "sth 'rs, 'int16('ra)"); in InstructionDecode()
1380 Format(instr, "sthu 'rs, 'int16('ra)"); in InstructionDecode()
1392 Format(instr, "lfs 'Dt, 'int16('ra)"); in InstructionDecode()
1396 Format(instr, "lfsu 'Dt, 'int16('ra)"); in InstructionDecode()
1400 Format(instr, "lfd 'Dt, 'int16('ra)"); in InstructionDecode()
1404 Format(instr, "lfdu 'Dt, 'int16('ra)"); in InstructionDecode()
1408 Format(instr, "stfs 'Dt, 'int16('ra)"); in InstructionDecode()
1412 Format(instr, "stfsu 'Dt, 'int16('ra)"); in InstructionDecode()
1416 Format(instr, "stfd 'Dt, 'int16('ra)"); in InstructionDecode()
1420 Format(instr, "stfdu 'Dt, 'int16('ra)"); in InstructionDecode()
1443 Format(instr, "ld 'rt, 'd('ra)"); in InstructionDecode()
1446 Format(instr, "ldu 'rt, 'd('ra)"); in InstructionDecode()
1449 Format(instr, "lwa 'rt, 'd('ra)"); in InstructionDecode()
1456 Format(instr, "std 'rs, 'd('ra)"); in InstructionDecode()
1458 Format(instr, "stdu 'rs, 'd('ra)"); in InstructionDecode()