Lines Matching refs:ARM_AM
194 ARM_AM::AMSubMode Mode = (ARM_AM::AMSubMode)MI.getOperand(OpIdx).getImm(); in getLdStmModeOpValue()
197 case ARM_AM::da: return 0; in getLdStmModeOpValue()
198 case ARM_AM::ia: return 1; in getLdStmModeOpValue()
199 case ARM_AM::db: return 2; in getLdStmModeOpValue()
200 case ARM_AM::ib: return 3; in getLdStmModeOpValue()
205 unsigned getShiftOp(ARM_AM::ShiftOpc ShOpc) const { in getShiftOp()
207 case ARM_AM::no_shift: in getShiftOp()
208 case ARM_AM::lsl: return 0; in getShiftOp()
209 case ARM_AM::lsr: return 1; in getShiftOp()
210 case ARM_AM::asr: return 2; in getShiftOp()
211 case ARM_AM::ror: in getShiftOp()
212 case ARM_AM::rrx: return 3; in getShiftOp()
295 int SoImmVal = ARM_AM::getSOImmVal(SoImm); in getSOImmOpValue()
299 unsigned Binary = (ARM_AM::getSOImmValRot((unsigned)SoImmVal) >> 1) in getSOImmOpValue()
303 Binary |= ARM_AM::getSOImmValImm((unsigned)SoImmVal); in getSOImmOpValue()
334 unsigned Encoded = ARM_AM::getT2SOImmVal(SoImm); in getT2SOImmOpValue()
808 SoImmVal = ARM_AM::getSOImmVal(offset); in getAdrLabelOpValue()
812 SoImmVal = ARM_AM::getSOImmVal(offset); in getAdrLabelOpValue()
815 SoImmVal = ARM_AM::getSOImmVal(offset); in getAdrLabelOpValue()
819 SoImmVal = ARM_AM::getSOImmVal(offset); in getAdrLabelOpValue()
1082 unsigned ShImm = ARM_AM::getAM2Offset(MO2.getImm()); in getLdStSORegOpValue()
1083 bool isAdd = ARM_AM::getAM2Op(MO2.getImm()) == ARM_AM::add; in getLdStSORegOpValue()
1084 ARM_AM::ShiftOpc ShOp = ARM_AM::getAM2ShiftOpc(MO2.getImm()); in getLdStSORegOpValue()
1132 bool isAdd = ARM_AM::getAM2Op(Imm) == ARM_AM::add; in getAddrMode2OffsetOpValue()
1134 uint32_t Binary = ARM_AM::getAM2Offset(Imm); in getAddrMode2OffsetOpValue()
1137 ARM_AM::ShiftOpc ShOp = ARM_AM::getAM2ShiftOpc(Imm); in getAddrMode2OffsetOpValue()
1168 bool isAdd = ARM_AM::getAM3Op(Imm) == ARM_AM::add; in getAddrMode3OffsetOpValue()
1170 uint32_t Imm8 = ARM_AM::getAM3Offset(Imm); in getAddrMode3OffsetOpValue()
1204 bool isAdd = ARM_AM::getAM3Op(Imm) == ARM_AM::add; in getAddrMode3OpValue()
1206 uint32_t Imm8 = ARM_AM::getAM3Offset(Imm); in getAddrMode3OpValue()
1284 isAdd = ARM_AM::getAM5Op(Imm8) == ARM_AM::add; in getAddrMode5OpValue()
1287 uint32_t Binary = ARM_AM::getAM5Offset(Imm8); in getAddrMode5OpValue()
1312 ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(MO2.getImm()); in getSORegRegOpValue()
1328 case ARM_AM::lsl: SBits = 0x1; break; in getSORegRegOpValue()
1329 case ARM_AM::lsr: SBits = 0x3; break; in getSORegRegOpValue()
1330 case ARM_AM::asr: SBits = 0x5; break; in getSORegRegOpValue()
1331 case ARM_AM::ror: SBits = 0x7; break; in getSORegRegOpValue()
1339 assert(ARM_AM::getSORegOffset(MO2.getImm()) == 0); in getSORegRegOpValue()
1357 ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(MO1.getImm()); in getSORegImmOpValue()
1373 case ARM_AM::lsl: SBits = 0x0; break; in getSORegImmOpValue()
1374 case ARM_AM::lsr: SBits = 0x2; break; in getSORegImmOpValue()
1375 case ARM_AM::asr: SBits = 0x4; break; in getSORegImmOpValue()
1376 case ARM_AM::ror: SBits = 0x6; break; in getSORegImmOpValue()
1377 case ARM_AM::rrx: in getSORegImmOpValue()
1384 unsigned Offset = ARM_AM::getSORegOffset(MO1.getImm()); in getSORegImmOpValue()
1479 ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(MO1.getImm()); in getT2SORegOpValue()
1493 case ARM_AM::lsl: SBits = 0x0; break; in getT2SORegOpValue()
1494 case ARM_AM::lsr: SBits = 0x2; break; in getT2SORegOpValue()
1495 case ARM_AM::asr: SBits = 0x4; break; in getT2SORegOpValue()
1496 case ARM_AM::rrx: // FALLTHROUGH in getT2SORegOpValue()
1497 case ARM_AM::ror: SBits = 0x6; break; in getT2SORegOpValue()
1501 if (SOpc == ARM_AM::rrx) in getT2SORegOpValue()
1505 return Binary | ARM_AM::getSORegOffset(MO1.getImm()) << 7; in getT2SORegOpValue()