Lines Matching refs:opcode
24 * opcode: ArmOpcode enum
25 * skeleton: pre-designated bit-pattern for this opcode
39 #define ENCODING_MAP(opcode, skeleton, k0, ds, de, k1, s1s, s1e, k2, s2s, s2e, \
42 {k3, k3s, k3e}}, opcode, flags, name, fmt, size}
1010 if (lir->opcode < 0) {
1012 if ((lir->opcode == kPseudoPseudoAlign4) && (lir->operands[0] == 1)) {
1035 if (lir->opcode == kThumbLdrPcRel ||
1036 lir->opcode == kThumb2LdrPcRel12 ||
1037 lir->opcode == kThumbAddPcRel ||
1038 lir->opcode == kThumb2LdrdPcRel8 ||
1039 ((lir->opcode == kThumb2Vldrd) && (lir->operands[1] == r15pc)) ||
1040 ((lir->opcode == kThumb2Vldrs) && (lir->operands[1] == r15pc))) {
1055 if (((lir->opcode == kThumbAddPcRel) && (delta > 1020)) ||
1056 ((lir->opcode == kThumbLdrPcRel) && (delta > 1020))) {
1061 if (((lir->opcode == kThumb2LdrPcRel12) && (delta > 4091)) ||
1062 ((lir->opcode == kThumb2LdrdPcRel8) && (delta > 1020)) ||
1063 ((lir->opcode == kThumb2Vldrs) && (delta > 1020)) ||
1064 ((lir->opcode == kThumb2Vldrd) && (delta > 1020))) {
1070 int base_reg = ((lir->opcode == kThumb2LdrdPcRel8) || (lir->opcode == kThumb2LdrPcRel12))
1079 if (lir->opcode == kThumb2LdrPcRel12) {
1080 lir->opcode = kThumb2LdrRRI12;
1081 } else if (lir->opcode == kThumb2LdrdPcRel8) {
1082 lir->opcode = kThumb2LdrdI8;
1085 if (lir->opcode == kThumb2LdrdI8) {
1095 if ((lir->opcode == kThumb2Vldrs) ||
1096 (lir->opcode == kThumb2Vldrd) ||
1097 (lir->opcode == kThumb2LdrdPcRel8)) {
1100 lir->operands[1] = (lir->opcode == kThumb2LdrPcRel12) ? delta :
1104 } else if (lir->opcode == kThumb2Cbnz || lir->opcode == kThumb2Cbz) {
1116 (lir->opcode == kThumb2Cbz) ? kArmCondEq : kArmCondNe,
1120 lir->opcode = kThumbCmpRI8;
1129 } else if (lir->opcode == kThumb2Push || lir->opcode == kThumb2Pop) {
1137 lir->opcode = (lir->opcode == kThumb2Push) ? kThumb2Push1 :
1152 } else if (lir->opcode == kThumbBCond || lir->opcode == kThumb2BCond) {
1159 if ((lir->opcode == kThumbBCond) && (delta > 254 || delta < -256)) {
1160 lir->opcode = kThumb2BCond;
1165 } else if (lir->opcode == kThumb2BUncond) {
1176 } else if (lir->opcode == kThumbBUncond) {
1183 lir->opcode = kThumb2BUncond;
1195 } else if (lir->opcode == kThumbBlx1) {
1196 DCHECK(NEXT_LIR(lir)->opcode == kThumbBlx2);
1210 } else if (lir->opcode == kThumbBl1) {
1211 DCHECK(NEXT_LIR(lir)->opcode == kThumbBl2);
1221 } else if (lir->opcode == kThumb2Adr) {
1243 opcode = kThumbAddRRLH;
1245 lir->opcode = kThumbAddRRHH;
1251 } else if (lir->opcode == kThumb2MovImm16LST) {
1259 } else if (lir->opcode == kThumb2MovImm16HST) {
1278 const ArmEncodingMap *encoder = &EncodingMap[lir->opcode];
1391 return EncodingMap[lir->opcode].size;