Lines Matching refs:opcode

252   std::string opcode;  in DumpArm()  local
260 opcode = "bkpt"; in DumpArm()
267 opcode = (((instruction >> 5) & 1) ? "blx" : "bx"); in DumpArm()
274 opcode = kDataProcessingOperations[op]; in DumpArm()
313 opcode = StringPrintf("%s%s", (l ? "ldr" : "str"), (b ? "b" : "")); in DumpArm()
343 opcode = StringPrintf("%s%c%c", (l ? "ldm" : "stm"), (u ? 'i' : 'd'), (p ? 'b' : 'a')); in DumpArm()
350 opcode = (bl ? "bl" : "b"); in DumpArm()
357 opcode = "???"; in DumpArm()
360 opcode += kConditionCodeNames[cond]; in DumpArm()
361 opcode += suffixes; in DumpArm()
364 << StringPrintf(": %08x\t%-7s ", instruction, opcode.c_str()) in DumpArm()
486 std::ostringstream opcode; in DumpThumb32() local
512 opcode << "stm"; in DumpThumb32()
516 opcode << "ldm"; in DumpThumb32()
519 opcode << "pop"; in DumpThumb32()
525 opcode << "stmdb"; in DumpThumb32()
528 opcode << "push"; in DumpThumb32()
531 opcode << "ldmdb"; in DumpThumb32()
551 opcode << "ldrd"; in DumpThumb32()
553 opcode << "strd"; in DumpThumb32()
569 opcode << "strex"; in DumpThumb32()
581 opcode << ((op5 == 4) ? "strexb" : "strexh"); in DumpThumb32()
590 opcode << "strexd"; in DumpThumb32()
605 opcode << "ldrex"; in DumpThumb32()
615 opcode << "tbb"; in DumpThumb32()
618 opcode << "tbh"; in DumpThumb32()
622 opcode << ((op5 == 4) ? "ldrexb" : "ldrexh"); in DumpThumb32()
629 opcode << "ldrexd"; in DumpThumb32()
642 opcode << "strd"; in DumpThumb32()
644 opcode << "ldrd"; in DumpThumb32()
685 opcode << "and"; in DumpThumb32()
688 opcode << "UNKNOWN TST-" << S; in DumpThumb32()
691 opcode << "tst"; in DumpThumb32()
695 case 0x1: opcode << "bic"; break; in DumpThumb32()
698 opcode << "orr"; in DumpThumb32()
701 opcode << "mov"; in DumpThumb32()
706 opcode << "orn"; in DumpThumb32()
708 opcode << "mvn"; in DumpThumb32()
713 opcode << "eor"; in DumpThumb32()
716 opcode << "UNKNOWN TEQ-" << S; in DumpThumb32()
719 opcode << "teq"; in DumpThumb32()
723 case 0x6: opcode << "pkh"; break; in DumpThumb32()
726 opcode << "add"; in DumpThumb32()
729 opcode << "UNKNOWN CMN-" << S; in DumpThumb32()
732 opcode << "cmn"; in DumpThumb32()
736 case 0xA: opcode << "adc"; break; in DumpThumb32()
737 case 0xB: opcode << "sbc"; break; in DumpThumb32()
740 opcode << "sub"; in DumpThumb32()
743 opcode << "UNKNOWN CMP-" << S; in DumpThumb32()
746 opcode << "cmp"; in DumpThumb32()
750 case 0xE: opcode << "rsb"; break; in DumpThumb32()
751 default: opcode << "UNKNOWN DPSR-" << op3; break; in DumpThumb32()
755 opcode << "s"; in DumpThumb32()
757 opcode << ".w"; in DumpThumb32()
815 opcode << "UNDEFINED"; in DumpThumb32()
823 opcode << (L == 1 ? "vldr" : "vstr"); in DumpThumb32()
830 opcode << (L == 1 ? "vpop" : "vpush"); in DumpThumb32()
833 opcode << (L == 1 ? "vldm" : "vstm"); in DumpThumb32()
837 opcode << (S == 1 ? ".f64" : ".f32"); in DumpThumb32()
847 opcode << "vmov" << (S ? ".f64" : ".f32"); in DumpThumb32()
889 opcode << (Q == 0 ? "vmla" : "vmls") << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
892 opcode << (Q == 0 ? "vmul" : "vnmul") << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
895 opcode << (Q == 0 ? "vadd" : "vsub") << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
898 opcode << "vdiv" << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
902 opcode << "vmov" << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
931 opcode << (op == 0 ? "vmov" : "vabs") << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
934 opcode << (op != 0 ? "vsqrt" : "vneg") << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
937 opcode << "vcmp" << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
943 opcode << "vcmpe" << (S != 0 ? ".f64" : ".f32"); in DumpThumb32()
954 opcode << "vcvt" << (op == 0 ? "r" : "") << ".s32.f64"; in DumpThumb32()
958 opcode << "vcvt" << (op == 0 ? "r" : "") << ".s32.f32"; in DumpThumb32()
964 opcode << "vcvt" << (op == 0 ? "r" : "") << ".u32.f64"; in DumpThumb32()
968 opcode << "vcvt" << (op == 0 ? "r" : "") << ".u32.f32"; in DumpThumb32()
974 opcode << "vcvt.f64." << (op == 0 ? "u" : "s") << "32"; in DumpThumb32()
978 opcode << "vcvt.f32." << (op == 0 ? "u" : "s") << "32"; in DumpThumb32()
985 opcode << "vcvt.f64.f32"; in DumpThumb32()
989 opcode << "vcvt.f32.f64"; in DumpThumb32()
994 opcode << "vcvt"; in DumpThumb32()
1011 opcode << "vmov.f32"; in DumpThumb32()
1031 opcode << "vmrs"; in DumpThumb32()
1071 opcode << "mov"; in DumpThumb32()
1073 opcode << "s"; in DumpThumb32()
1075 opcode << ".w"; in DumpThumb32()
1077 opcode << "mvn"; in DumpThumb32()
1079 opcode << "s"; in DumpThumb32()
1086 opcode << "tst"; in DumpThumb32()
1088 opcode << "teq"; in DumpThumb32()
1090 opcode << "cmn.w"; in DumpThumb32()
1092 opcode << "cmp.w"; in DumpThumb32()
1097 case 0x0: opcode << "and"; break; in DumpThumb32()
1098 case 0x1: opcode << "bic"; break; in DumpThumb32()
1099 case 0x2: opcode << "orr"; break; in DumpThumb32()
1100 case 0x3: opcode << "orn"; break; in DumpThumb32()
1101 case 0x4: opcode << "eor"; break; in DumpThumb32()
1102 case 0x8: opcode << "add"; break; in DumpThumb32()
1103 case 0xA: opcode << "adc"; break; in DumpThumb32()
1104 case 0xB: opcode << "sbc"; break; in DumpThumb32()
1105 case 0xD: opcode << "sub"; break; in DumpThumb32()
1106 case 0xE: opcode << "rsb"; break; in DumpThumb32()
1107 default: opcode << "UNKNOWN DPMI-" << op3; break; in DumpThumb32()
1110 opcode << "s"; in DumpThumb32()
1134 opcode << (op3 == 0 ? "addw" : "subw"); in DumpThumb32()
1137 opcode << "adr"; in DumpThumb32()
1151 opcode << (op3 == 0x04 ? "movw" : "movt"); in DumpThumb32()
1165 opcode << "bfi"; in DumpThumb32()
1168 opcode << "bfc"; in DumpThumb32()
1207 opcode << "b"; in DumpThumb32()
1208 DumpCond(opcode, cond); in DumpThumb32()
1209 opcode << ".w"; in DumpThumb32()
1215 case 4: opcode << "dsb"; DumpMemoryDomain(args, instr & 0xF); break; in DumpThumb32()
1216 case 5: opcode << "dmb"; DumpMemoryDomain(args, instr & 0xF); break; in DumpThumb32()
1217 case 6: opcode << "isb"; DumpMemoryDomain(args, instr & 0xF); break; in DumpThumb32()
1224 opcode << "udf"; in DumpThumb32()
1247 opcode << "b"; in DumpThumb32()
1250 DumpCond(opcode, cond); in DumpThumb32()
1259 opcode << ".w"; in DumpThumb32()
1279 opcode << "bx"; in DumpThumb32()
1281 opcode << "blx"; in DumpThumb32()
1296 opcode << "UNDEFINED"; in DumpThumb32()
1300 opcode << "UNDEFINED [store]"; in DumpThumb32()
1304 opcode << "UNDEFINED [load]"; in DumpThumb32()
1308 opcode << "UNKNOWN " << op2 << " [SIMD]"; in DumpThumb32()
1360 opcode << "UNDEFINED [PLI+W]"; in DumpThumb32()
1362 opcode << pld_pli << w; in DumpThumb32()
1368 opcode << pld_pli << w; in DumpThumb32()
1372 opcode << pld_pli << w; in DumpThumb32()
1375 opcode << "UNDEFINED [~" << pld_pli << "]"; in DumpThumb32()
1384 opcode << "UNDEFINED [STR-lit]"; in DumpThumb32()
1388 opcode << ldr_str << sign << type << ".w"; in DumpThumb32()
1405 opcode << ldr_str << sign << type << ".w"; in DumpThumb32()
1410 opcode << (is_load ? "pop" : "push") << ".w"; in DumpThumb32()
1414 opcode << "UNDEFINED [P = W = 0 for " << ldr_str << "]"; in DumpThumb32()
1423 opcode << ldr_str << sign << type << t << ".w"; in DumpThumb32()
1447 opcode << kThumbReverseOperations[op3]; in DumpThumb32()
1468 opcode << kThumb2ShiftOperations[shift_op] << (S != 0 ? "s" : ""); in DumpThumb32()
1483 opcode << "mul"; in DumpThumb32()
1486 opcode << "mla"; in DumpThumb32()
1490 opcode << "mls"; in DumpThumb32()
1513 opcode << "smull"; in DumpThumb32()
1517 opcode << "sdiv"; in DumpThumb32()
1521 opcode << "umull"; in DumpThumb32()
1525 opcode << "udiv"; in DumpThumb32()
1542 opcode << it_conditions_.back(); in DumpThumb32()
1545 if (opcode.str().size() == 0) { in DumpThumb32()
1546 opcode << "UNKNOWN " << op2; in DumpThumb32()
1550 << StringPrintf(": %08x\t%-7s ", instr, opcode.str().c_str()) in DumpThumb32()
1561 std::ostringstream opcode; in DumpThumb16() local
1577 opcode << "lsls"; in DumpThumb16()
1579 opcode << "lsrs"; in DumpThumb16()
1581 opcode << "asrs"; in DumpThumb16()
1595 opcode << "mov"; in DumpThumb16()
1598 opcode << "adds"; in DumpThumb16()
1600 opcode << "subs"; in DumpThumb16()
1623 case 4: opcode << "movs"; break; in DumpThumb16()
1624 case 5: opcode << "cmp"; break; in DumpThumb16()
1625 case 6: opcode << "adds"; break; in DumpThumb16()
1626 case 7: opcode << "subs"; break; in DumpThumb16()
1639 opcode << kThumbDataProcessingOperations[opcode2]; in DumpThumb16()
1652 opcode << "add"; in DumpThumb16()
1663 opcode << "mov"; in DumpThumb16()
1673 opcode << "cmp"; in DumpThumb16()
1681 opcode << ((opcode2 & 0x2) == 0 ? "bx" : "blx"); in DumpThumb16()
1691 opcode << "ldr"; in DumpThumb16()
1704 case 0: opcode << "str"; break; in DumpThumb16()
1705 case 1: opcode << "strh"; break; in DumpThumb16()
1706 case 2: opcode << "strb"; break; in DumpThumb16()
1707 case 3: opcode << "ldrsb"; break; in DumpThumb16()
1708 case 4: opcode << "ldr"; break; in DumpThumb16()
1709 case 5: opcode << "ldrh"; break; in DumpThumb16()
1710 case 6: opcode << "ldrb"; break; in DumpThumb16()
1711 case 7: opcode << "ldrsh"; break; in DumpThumb16()
1718 opcode << (opB == 0 ? "str" : "ldr"); in DumpThumb16()
1728 opcode << (opB == 0 ? "str" : "ldr"); in DumpThumb16()
1732 opcode << (opB == 0 ? "strb" : "ldrb"); in DumpThumb16()
1736 opcode << (opB == 0 ? "strh" : "ldrh"); in DumpThumb16()
1744 opcode << "b"; in DumpThumb16()
1745 DumpCond(opcode, cond); in DumpThumb16()
1751 opcode << "add"; in DumpThumb16()
1761 opcode << ((opcode2 & 4) == 0 ? "add" : "sub"); in DumpThumb16()
1778 opcode << (op != 0 ? "cbnz" : "cbz"); in DumpThumb16()
1786 opcode << "push"; in DumpThumb16()
1792 opcode << "pop"; in DumpThumb16()
1797 opcode << "bkpt"; in DumpThumb16()
1805 opcode << kThumbReverseOperations[op]; in DumpThumb16()
1818 case 0: opcode << "nop"; break; in DumpThumb16()
1819 case 1: opcode << "yield"; break; in DumpThumb16()
1820 case 2: opcode << "wfe"; break; in DumpThumb16()
1821 case 3: opcode << "sev"; break; in DumpThumb16()
1827 opcode << "it"; in DumpThumb16()
1837 opcode << 't'; in DumpThumb16()
1840 opcode << 'e'; in DumpThumb16()
1866 opcode << ((instr & 0x800) == 0 ? "str" : "ldr"); in DumpThumb16()
1875 opcode << ((instr & 0x800) == 0 ? "str" : "ldr"); in DumpThumb16()
1886 opcode << "b"; in DumpThumb16()
1892 opcode << it_conditions_.back(); in DumpThumb16()
1897 << StringPrintf(": %04x \t%-7s ", instr, opcode.str().c_str()) in DumpThumb16()