Home | History | Annotate | Download | only in arm64

Lines Matching refs:Format

89   Format(instr, mnemonic, form);
136 Format(instr, mnemonic, form);
174 Format(instr, mnemonic, form);
209 Format(instr, mnemonic, form);
220 // The immediate encoded in the instruction is not in the expected format.
221 Format(instr, "unallocated", "(LogicalImmediate)");
252 Format(instr, mnemonic, form);
332 Format(instr, mnemonic, form);
347 Format(instr, mnemonic, form);
363 Format(instr, mnemonic, form);
416 Format(instr, mnemonic, form);
494 Format(instr, mnemonic, form);
515 Format(instr, mnemonic, form);
521 case ADR: Format(instr, "adr", "'Xd, 'AddrPCRelByte"); break;
523 default: Format(instr, "unimplemented", "(PCRelAddressing)");
530 case B_cond: Format(instr, "b.'CBrn", "'BImmCond"); break;
553 Format(instr, mnemonic, form);
566 Format(instr, mnemonic, form);
575 #define FORMAT(A, B) \
578 FORMAT(RBIT, "rbit");
579 FORMAT(REV16, "rev16");
580 FORMAT(REV, "rev");
581 FORMAT(CLZ, "clz");
582 FORMAT(CLS, "cls");
583 #undef FORMAT
587 Format(instr, mnemonic, form);
596 #define FORMAT(A, B) \
599 FORMAT(UDIV, "udiv");
600 FORMAT(SDIV, "sdiv");
601 FORMAT(LSLV, "lsl");
602 FORMAT(LSRV, "lsr");
603 FORMAT(ASRV, "asr");
604 FORMAT(RORV, "ror");
605 #undef FORMAT
608 Format(instr, mnemonic, form);
686 Format(instr, mnemonic, form);
701 Format(instr, mnemonic, form);
718 Format(instr, mnemonic, form);
738 Format(instr, mnemonic, form);
771 Format(instr, mnemonic, form);
785 Format(instr, mnemonic, form);
800 Format(instr, mnemonic, form);
815 Format(instr, mnemonic, form);
846 Format(instr, mnemonic, form);
861 Format(instr, mnemonic, form);
886 Format(instr, mnemonic, form);
900 Format(instr, mnemonic, form);
914 Format(instr, mnemonic, form);
943 Format(instr, mnemonic, form);
958 Format(instr, mnemonic, form);
973 Format(instr, mnemonic, form);
986 Format(instr, mnemonic, form);
995 #define FORMAT(A, B) \
998 FORMAT(FMOV, "fmov");
999 FORMAT(FABS, "fabs");
1000 FORMAT(FNEG, "fneg");
1001 FORMAT(FSQRT, "fsqrt");
1002 FORMAT(FRINTN, "frintn");
1003 FORMAT(FRINTP, "frintp");
1004 FORMAT(FRINTM, "frintm");
1005 FORMAT(FRINTZ, "frintz");
1006 FORMAT(FRINTA, "frinta");
1007 FORMAT(FRINTX, "frintx");
1008 FORMAT(FRINTI, "frinti");
1009 #undef FORMAT
1014 Format(instr, mnemonic, form);
1023 #define FORMAT(A, B) \
1026 FORMAT(FMUL, "fmul");
1027 FORMAT(FDIV, "fdiv");
1028 FORMAT(FADD, "fadd");
1029 FORMAT(FSUB, "fsub");
1030 FORMAT(FMAX, "fmax");
1031 FORMAT(FMIN, "fmin");
1032 FORMAT(FMAXNM, "fmaxnm");
1033 FORMAT(FMINNM, "fminnm");
1034 FORMAT(FNMUL, "fnmul");
1035 #undef FORMAT
1038 Format(instr, mnemonic, form);
1047 #define FORMAT(A, B) \
1050 FORMAT(FMADD, "fmadd");
1051 FORMAT(FMSUB, "fmsub");
1052 FORMAT(FNMADD, "fnmadd");
1053 FORMAT(FNMSUB, "fnmsub");
1054 #undef FORMAT
1057 Format(instr, mnemonic, form);
1070 Format(instr, mnemonic, form);
1126 Format(instr, mnemonic, form);
1153 Format(instr, mnemonic, form);
1214 Format(instr, mnemonic, form);
1233 Format(instr, mnemonic, form);
1238 Format(instr, "unimplemented", "(Unimplemented)");
1243 Format(instr, "unallocated", "(Unallocated)");
1252 void DisassemblingDecoder::Format(Instruction* instr, const char* mnemonic,
1253 const char* format) {
1259 if (format != NULL) {
1261 Substitute(instr, format);
1282 const char* format) {
1283 switch (format[0]) {
1289 case 'D': return SubstituteRegisterField(instr, format);
1290 case 'I': return SubstituteImmediateField(instr, format);
1291 case 'L': return SubstituteLiteralField(instr, format);
1292 case 'H': return SubstituteShiftField(instr, format);
1293 case 'P': return SubstitutePrefetchField(instr, format);
1294 case 'C': return SubstituteConditionField(instr, format);
1295 case 'E': return SubstituteExtendField(instr, format);
1296 case 'A': return SubstitutePCRelAddressField(instr, format);
1297 case 'B': return SubstituteBranchTargetField(instr, format);
1298 case 'O': return SubstituteLSRegOffsetField(instr, format);
1299 case 'M': return SubstituteBarrierField(instr, format);
1309 const char* format) {
1312 switch (format[1]) {
1318 if (format[2] == '2') {
1333 if (format[2] == 's') {
1338 if (format[0] == 'R') {
1341 } else if (format[0] == 'F') {
1346 reg_type = format[0] + 0x20;
1364 } else if (format[2] == 's') {
1377 const char* format) {
1378 DCHECK(format[0] == 'I');
1380 switch (format[1]) {
1382 if (format[5] == 'I') {
1387 DCHECK(format[5] == 'L');
1396 switch (format[2]) {
1410 // format[3] is the scale value. Convert to a number.
1411 int scale = format[3] - 0x30;
1438 if (format[3] == 'F') { // IFPFBits.
1443 format[3] == 'S' ? instr->ImmFP32() : instr->ImmFP64());
1464 return SubstituteBitfieldImmediateField(instr, format);
1488 const char* format) {
1489 DCHECK((format[0] == 'I') && (format[1] == 'B'));
1493 switch (format[2]) {
1499 if (format[3] == '+') {
1503 DCHECK(format[3] == '-');
1509 DCHECK((format[3] == '-') && (format[4] == 'r'));
1524 const char* format) {
1525 DCHECK(strncmp(format, "LValue", 6) == 0);
1526 USE(format);
1543 const char* format) {
1544 DCHECK(format[0] == 'H');
1547 switch (format[1]) {
1567 const char* format) {
1568 DCHECK(format[0] == 'C');
1574 switch (format[1]) {
1588 const char* format) {
1589 USE(format);
1590 DCHECK(strncmp(format, "AddrPCRel", 9) == 0);
1595 DCHECK(strcmp(format, "AddrPCRelByte") == 0);
1609 const char* format) {
1610 DCHECK(strncmp(format, "BImm", 4) == 0);
1613 switch (format[5]) {
1636 const char* format) {
1637 DCHECK(strncmp(format, "Ext", 3) == 0);
1639 USE(format);
1663 const char* format) {
1664 DCHECK(strncmp(format, "Offsetreg", 9) == 0);
1667 USE(format);
1692 const char* format) {
1693 DCHECK(format[0] == 'P');
1694 USE(format);
1707 const char* format) {
1708 DCHECK(format[0] == 'M');
1709 USE(format);
1731 void DisassemblingDecoder::AppendToOutput(const char* format, ...) {
1733 va_start(args, format);
1734 buffer_pos_ += vsnprintf(&buffer_[buffer_pos_], buffer_size_, format, args);