Lines Matching refs:Inst
145 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, unsigned RegNo,
147 static DecodeStatus DecodeGPRnopcRegisterClass(MCInst &Inst,
150 static DecodeStatus DecodeGPRwithAPSRRegisterClass(MCInst &Inst,
153 static DecodeStatus DecodetGPRRegisterClass(MCInst &Inst, unsigned RegNo,
155 static DecodeStatus DecodetcGPRRegisterClass(MCInst &Inst, unsigned RegNo,
157 static DecodeStatus DecoderGPRRegisterClass(MCInst &Inst, unsigned RegNo,
159 static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, unsigned RegNo,
161 static DecodeStatus DecodeHPRRegisterClass(MCInst &Inst, unsigned RegNo,
163 static DecodeStatus DecodeSPRRegisterClass(MCInst &Inst, unsigned RegNo,
165 static DecodeStatus DecodeDPRRegisterClass(MCInst &Inst, unsigned RegNo,
167 static DecodeStatus DecodeDPR_8RegisterClass(MCInst &Inst, unsigned RegNo,
169 static DecodeStatus DecodeDPR_VFP2RegisterClass(MCInst &Inst,
173 static DecodeStatus DecodeQPRRegisterClass(MCInst &Inst, unsigned RegNo,
175 static DecodeStatus DecodeDPairRegisterClass(MCInst &Inst, unsigned RegNo,
177 static DecodeStatus DecodeDPairSpacedRegisterClass(MCInst &Inst,
181 static DecodeStatus DecodePredicateOperand(MCInst &Inst, unsigned Val,
183 static DecodeStatus DecodeCCOutOperand(MCInst &Inst, unsigned Val,
185 static DecodeStatus DecodeRegListOperand(MCInst &Inst, unsigned Val,
187 static DecodeStatus DecodeSPRRegListOperand(MCInst &Inst, unsigned Val,
189 static DecodeStatus DecodeDPRRegListOperand(MCInst &Inst, unsigned Val,
192 static DecodeStatus DecodeBitfieldMaskOperand(MCInst &Inst, unsigned Insn,
194 static DecodeStatus DecodeCopMemInstruction(MCInst &Inst, unsigned Insn,
196 static DecodeStatus DecodeAddrMode2IdxInstruction(MCInst &Inst,
200 static DecodeStatus DecodeSORegMemOperand(MCInst &Inst, unsigned Insn,
202 static DecodeStatus DecodeAddrMode3Instruction(MCInst &Inst,unsigned Insn,
204 static DecodeStatus DecodeSORegImmOperand(MCInst &Inst, unsigned Insn,
206 static DecodeStatus DecodeSORegRegOperand(MCInst &Inst, unsigned Insn,
209 static DecodeStatus DecodeMemMultipleWritebackInstruction(MCInst & Inst,
213 static DecodeStatus DecodeT2MOVTWInstruction(MCInst &Inst, unsigned Insn,
215 static DecodeStatus DecodeArmMOVTWInstruction(MCInst &Inst, unsigned Insn,
217 static DecodeStatus DecodeSMLAInstruction(MCInst &Inst, unsigned Insn,
219 static DecodeStatus DecodeHINTInstruction(MCInst &Inst, unsigned Insn,
221 static DecodeStatus DecodeCPSInstruction(MCInst &Inst, unsigned Insn,
223 static DecodeStatus DecodeTSTInstruction(MCInst &Inst, unsigned Insn,
225 static DecodeStatus DecodeSETPANInstruction(MCInst &Inst, unsigned Insn,
227 static DecodeStatus DecodeT2CPSInstruction(MCInst &Inst, unsigned Insn,
229 static DecodeStatus DecodeAddrModeImm12Operand(MCInst &Inst, unsigned Val,
231 static DecodeStatus DecodeAddrMode5Operand(MCInst &Inst, unsigned Val,
233 static DecodeStatus DecodeAddrMode5FP16Operand(MCInst &Inst, unsigned Val,
235 static DecodeStatus DecodeAddrMode7Operand(MCInst &Inst, unsigned Val,
237 static DecodeStatus DecodeT2BInstruction(MCInst &Inst, unsigned Insn,
239 static DecodeStatus DecodeBranchImmInstruction(MCInst &Inst,unsigned Insn,
241 static DecodeStatus DecodeAddrMode6Operand(MCInst &Inst, unsigned Val,
243 static DecodeStatus DecodeVLDST1Instruction(MCInst &Inst, unsigned Val,
245 static DecodeStatus DecodeVLDST2Instruction(MCInst &Inst, unsigned Val,
247 static DecodeStatus DecodeVLDST3Instruction(MCInst &Inst, unsigned Val,
249 static DecodeStatus DecodeVLDST4Instruction(MCInst &Inst, unsigned Val,
251 static DecodeStatus DecodeVLDInstruction(MCInst &Inst, unsigned Val,
253 static DecodeStatus DecodeVSTInstruction(MCInst &Inst, unsigned Val,
255 static DecodeStatus DecodeVLD1DupInstruction(MCInst &Inst, unsigned Val,
257 static DecodeStatus DecodeVLD2DupInstruction(MCInst &Inst, unsigned Val,
259 static DecodeStatus DecodeVLD3DupInstruction(MCInst &Inst, unsigned Val,
261 static DecodeStatus DecodeVLD4DupInstruction(MCInst &Inst, unsigned Val,
263 static DecodeStatus DecodeNEONModImmInstruction(MCInst &Inst,unsigned Val,
265 static DecodeStatus DecodeVSHLMaxInstruction(MCInst &Inst, unsigned Val,
267 static DecodeStatus DecodeShiftRight8Imm(MCInst &Inst, unsigned Val,
269 static DecodeStatus DecodeShiftRight16Imm(MCInst &Inst, unsigned Val,
271 static DecodeStatus DecodeShiftRight32Imm(MCInst &Inst, unsigned Val,
273 static DecodeStatus DecodeShiftRight64Imm(MCInst &Inst, unsigned Val,
275 static DecodeStatus DecodeTBLInstruction(MCInst &Inst, unsigned Insn,
277 static DecodeStatus DecodePostIdxReg(MCInst &Inst, unsigned Insn,
279 static DecodeStatus DecodeCoprocessor(MCInst &Inst, unsigned Insn,
281 static DecodeStatus DecodeMemBarrierOption(MCInst &Inst, unsigned Insn,
283 static DecodeStatus DecodeInstSyncBarrierOption(MCInst &Inst, unsigned Insn,
285 static DecodeStatus DecodeMSRMask(MCInst &Inst, unsigned Insn,
287 static DecodeStatus DecodeBankedReg(MCInst &Inst, unsigned Insn,
289 static DecodeStatus DecodeDoubleRegLoad(MCInst &Inst, unsigned Insn,
291 static DecodeStatus DecodeDoubleRegStore(MCInst &Inst, unsigned Insn,
293 static DecodeStatus DecodeLDRPreImm(MCInst &Inst, unsigned Insn,
295 static DecodeStatus DecodeLDRPreReg(MCInst &Inst, unsigned Insn,
297 static DecodeStatus DecodeSTRPreImm(MCInst &Inst, unsigned Insn,
299 static DecodeStatus DecodeSTRPreReg(MCInst &Inst, unsigned Insn,
301 static DecodeStatus DecodeVLD1LN(MCInst &Inst, unsigned Insn,
303 static DecodeStatus DecodeVLD2LN(MCInst &Inst, unsigned Insn,
305 static DecodeStatus DecodeVLD3LN(MCInst &Inst, unsigned Insn,
307 static DecodeStatus DecodeVLD4LN(MCInst &Inst, unsigned Insn,
309 static DecodeStatus DecodeVST1LN(MCInst &Inst, unsigned Insn,
311 static DecodeStatus DecodeVST2LN(MCInst &Inst, unsigned Insn,
313 static DecodeStatus DecodeVST3LN(MCInst &Inst, unsigned Insn,
315 static DecodeStatus DecodeVST4LN(MCInst &Inst, unsigned Insn,
317 static DecodeStatus DecodeVMOVSRR(MCInst &Inst, unsigned Insn,
319 static DecodeStatus DecodeVMOVRRS(MCInst &Inst, unsigned Insn,
321 static DecodeStatus DecodeSwap(MCInst &Inst, unsigned Insn,
323 static DecodeStatus DecodeVCVTD(MCInst &Inst, unsigned Insn,
325 static DecodeStatus DecodeVCVTQ(MCInst &Inst, unsigned Insn,
327 static DecodeStatus DecodeNEONComplexLane64Instruction(MCInst &Inst,
332 static DecodeStatus DecodeThumbAddSpecialReg(MCInst &Inst, uint16_t Insn,
334 static DecodeStatus DecodeThumbBROperand(MCInst &Inst, unsigned Val,
336 static DecodeStatus DecodeT2BROperand(MCInst &Inst, unsigned Val,
338 static DecodeStatus DecodeThumbCmpBROperand(MCInst &Inst, unsigned Val,
340 static DecodeStatus DecodeThumbAddrModeRR(MCInst &Inst, unsigned Val,
342 static DecodeStatus DecodeThumbAddrModeIS(MCInst &Inst, unsigned Val,
344 static DecodeStatus DecodeThumbAddrModePC(MCInst &Inst, unsigned Val,
346 static DecodeStatus DecodeThumbAddrModeSP(MCInst &Inst, unsigned Val,
348 static DecodeStatus DecodeT2AddrModeSOReg(MCInst &Inst, unsigned Val,
350 static DecodeStatus DecodeT2LoadShift(MCInst &Inst, unsigned Val,
352 static DecodeStatus DecodeT2LoadImm8(MCInst &Inst, unsigned Insn,
354 static DecodeStatus DecodeT2LoadImm12(MCInst &Inst, unsigned Insn,
356 static DecodeStatus DecodeT2LoadT(MCInst &Inst, unsigned Insn,
358 static DecodeStatus DecodeT2LoadLabel(MCInst &Inst, unsigned Insn,
360 static DecodeStatus DecodeT2Imm8S4(MCInst &Inst, unsigned Val,
362 static DecodeStatus DecodeT2AddrModeImm8s4(MCInst &Inst, unsigned Val,
364 static DecodeStatus DecodeT2AddrModeImm0_1020s4(MCInst &Inst,unsigned Val,
366 static DecodeStatus DecodeT2Imm8(MCInst &Inst, unsigned Val,
368 static DecodeStatus DecodeT2AddrModeImm8(MCInst &Inst, unsigned Val,
370 static DecodeStatus DecodeThumbAddSPImm(MCInst &Inst, uint16_t Val,
372 static DecodeStatus DecodeThumbAddSPReg(MCInst &Inst, uint16_t Insn,
374 static DecodeStatus DecodeThumbCPS(MCInst &Inst, uint16_t Insn,
376 static DecodeStatus DecodeQADDInstruction(MCInst &Inst, unsigned Insn,
378 static DecodeStatus DecodeThumbBLXOffset(MCInst &Inst, unsigned Insn,
380 static DecodeStatus DecodeT2AddrModeImm12(MCInst &Inst, unsigned Val,
382 static DecodeStatus DecodeThumbTableBranch(MCInst &Inst, unsigned Val,
384 static DecodeStatus DecodeThumb2BCCInstruction(MCInst &Inst, unsigned Val,
386 static DecodeStatus DecodeT2SOImm(MCInst &Inst, unsigned Val,
388 static DecodeStatus DecodeThumbBCCTargetOperand(MCInst &Inst,unsigned Val,
390 static DecodeStatus DecodeThumbBLTargetOperand(MCInst &Inst, unsigned Val,
392 static DecodeStatus DecodeIT(MCInst &Inst, unsigned Val,
394 static DecodeStatus DecodeT2LDRDPreInstruction(MCInst &Inst,unsigned Insn,
396 static DecodeStatus DecodeT2STRDPreInstruction(MCInst &Inst,unsigned Insn,
398 static DecodeStatus DecodeT2Adr(MCInst &Inst, unsigned Val,
400 static DecodeStatus DecodeT2LdStPre(MCInst &Inst, unsigned Val,
402 static DecodeStatus DecodeT2ShifterImmOperand(MCInst &Inst, unsigned Val,
405 static DecodeStatus DecodeLDR(MCInst &Inst, unsigned Val,
407 static DecodeStatus DecoderForMRRC2AndMCRR2(MCInst &Inst, unsigned Val,
409 static DecodeStatus DecodeForVMRSandVMSR(MCInst &Inst, unsigned Val,
876 static DecodeStatus DecodeGPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPRRegisterClass() argument
882 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPRRegisterClass()
887 DecodeGPRnopcRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPRnopcRegisterClass() argument
894 Check(S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder)); in DecodeGPRnopcRegisterClass()
900 DecodeGPRwithAPSRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPRwithAPSRRegisterClass() argument
906 Inst.addOperand(MCOperand::createReg(ARM::APSR_NZCV)); in DecodeGPRwithAPSRRegisterClass()
910 Check(S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder)); in DecodeGPRwithAPSRRegisterClass()
914 static DecodeStatus DecodetGPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodetGPRRegisterClass() argument
918 return DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodetGPRRegisterClass()
926 static DecodeStatus DecodeGPRPairRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPRPairRegisterClass() argument
937 Inst.addOperand(MCOperand::createReg(RegisterPair)); in DecodeGPRPairRegisterClass()
941 static DecodeStatus DecodetcGPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodetcGPRRegisterClass() argument
967 Inst.addOperand(MCOperand::createReg(Register)); in DecodetcGPRRegisterClass()
971 static DecodeStatus DecoderGPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecoderGPRRegisterClass() argument
981 Check(S, DecodeGPRRegisterClass(Inst, RegNo, Address, Decoder)); in DecoderGPRRegisterClass()
996 static DecodeStatus DecodeSPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeSPRRegisterClass() argument
1002 Inst.addOperand(MCOperand::createReg(Register)); in DecodeSPRRegisterClass()
1006 static DecodeStatus DecodeHPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeHPRRegisterClass() argument
1008 return DecodeSPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeHPRRegisterClass()
1022 static DecodeStatus DecodeDPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDPRRegisterClass() argument
1033 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDPRRegisterClass()
1037 static DecodeStatus DecodeDPR_8RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDPR_8RegisterClass() argument
1041 return DecodeDPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeDPR_8RegisterClass()
1045 DecodeDPR_VFP2RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDPR_VFP2RegisterClass() argument
1049 return DecodeDPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeDPR_VFP2RegisterClass()
1059 static DecodeStatus DecodeQPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeQPRRegisterClass() argument
1066 Inst.addOperand(MCOperand::createReg(Register)); in DecodeQPRRegisterClass()
1079 static DecodeStatus DecodeDPairRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDPairRegisterClass() argument
1085 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDPairRegisterClass()
1100 static DecodeStatus DecodeDPairSpacedRegisterClass(MCInst &Inst, in DecodeDPairSpacedRegisterClass() argument
1108 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDPairSpacedRegisterClass()
1112 static DecodeStatus DecodePredicateOperand(MCInst &Inst, unsigned Val, in DecodePredicateOperand() argument
1116 if (Inst.getOpcode() == ARM::tBcc && Val == 0xE) in DecodePredicateOperand()
1118 Inst.addOperand(MCOperand::createImm(Val)); in DecodePredicateOperand()
1120 Inst.addOperand(MCOperand::createReg(0)); in DecodePredicateOperand()
1122 Inst.addOperand(MCOperand::createReg(ARM::CPSR)); in DecodePredicateOperand()
1126 static DecodeStatus DecodeCCOutOperand(MCInst &Inst, unsigned Val, in DecodeCCOutOperand() argument
1129 Inst.addOperand(MCOperand::createReg(ARM::CPSR)); in DecodeCCOutOperand()
1131 Inst.addOperand(MCOperand::createReg(0)); in DecodeCCOutOperand()
1135 static DecodeStatus DecodeSORegImmOperand(MCInst &Inst, unsigned Val, in DecodeSORegImmOperand() argument
1144 if (!Check(S, DecoderGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeSORegImmOperand()
1167 Inst.addOperand(MCOperand::createImm(Op)); in DecodeSORegImmOperand()
1172 static DecodeStatus DecodeSORegRegOperand(MCInst &Inst, unsigned Val, in DecodeSORegRegOperand() argument
1181 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) in DecodeSORegRegOperand()
1183 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rs, Address, Decoder))) in DecodeSORegRegOperand()
1202 Inst.addOperand(MCOperand::createImm(Shift)); in DecodeSORegRegOperand()
1207 static DecodeStatus DecodeRegListOperand(MCInst &Inst, unsigned Val, in DecodeRegListOperand() argument
1213 switch (Inst.getOpcode()) { in DecodeRegListOperand()
1225 WritebackReg = Inst.getOperand(0).getReg(); in DecodeRegListOperand()
1233 if (!Check(S, DecodeGPRRegisterClass(Inst, i, Address, Decoder))) in DecodeRegListOperand()
1236 if (NeedDisjointWriteback && WritebackReg == Inst.end()[-1].getReg()) in DecodeRegListOperand()
1244 static DecodeStatus DecodeSPRRegListOperand(MCInst &Inst, unsigned Val, in DecodeSPRRegListOperand() argument
1258 if (!Check(S, DecodeSPRRegisterClass(Inst, Vd, Address, Decoder))) in DecodeSPRRegListOperand()
1261 if (!Check(S, DecodeSPRRegisterClass(Inst, ++Vd, Address, Decoder))) in DecodeSPRRegListOperand()
1268 static DecodeStatus DecodeDPRRegListOperand(MCInst &Inst, unsigned Val, in DecodeDPRRegListOperand() argument
1283 if (!Check(S, DecodeDPRRegisterClass(Inst, Vd, Address, Decoder))) in DecodeDPRRegListOperand()
1286 if (!Check(S, DecodeDPRRegisterClass(Inst, ++Vd, Address, Decoder))) in DecodeDPRRegListOperand()
1293 static DecodeStatus DecodeBitfieldMaskOperand(MCInst &Inst, unsigned Val, in DecodeBitfieldMaskOperand() argument
1316 Inst.addOperand(MCOperand::createImm(~(msb_mask ^ lsb_mask))); in DecodeBitfieldMaskOperand()
1320 static DecodeStatus DecodeCopMemInstruction(MCInst &Inst, unsigned Insn, in DecodeCopMemInstruction() argument
1331 switch (Inst.getOpcode()) { in DecodeCopMemInstruction()
1376 Inst.addOperand(MCOperand::createImm(coproc)); in DecodeCopMemInstruction()
1377 Inst.addOperand(MCOperand::createImm(CRd)); in DecodeCopMemInstruction()
1378 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeCopMemInstruction()
1381 switch (Inst.getOpcode()) { in DecodeCopMemInstruction()
1415 Inst.addOperand(MCOperand::createImm(imm)); in DecodeCopMemInstruction()
1438 Inst.addOperand(MCOperand::createImm(imm)); in DecodeCopMemInstruction()
1442 switch (Inst.getOpcode()) { in DecodeCopMemInstruction()
1459 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeCopMemInstruction()
1470 DecodeAddrMode2IdxInstruction(MCInst &Inst, unsigned Insn, in DecodeAddrMode2IdxInstruction() argument
1484 switch (Inst.getOpcode()) { in DecodeAddrMode2IdxInstruction()
1493 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1500 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1504 switch (Inst.getOpcode()) { in DecodeAddrMode2IdxInstruction()
1513 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1520 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1538 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1562 Inst.addOperand(MCOperand::createImm(imm)); in DecodeAddrMode2IdxInstruction()
1564 Inst.addOperand(MCOperand::createReg(0)); in DecodeAddrMode2IdxInstruction()
1566 Inst.addOperand(MCOperand::createImm(tmp)); in DecodeAddrMode2IdxInstruction()
1569 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeAddrMode2IdxInstruction()
1575 static DecodeStatus DecodeSORegMemOperand(MCInst &Inst, unsigned Val, in DecodeSORegMemOperand() argument
1604 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeSORegMemOperand()
1606 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeSORegMemOperand()
1613 Inst.addOperand(MCOperand::createImm(shift)); in DecodeSORegMemOperand()
1619 DecodeAddrMode3Instruction(MCInst &Inst, unsigned Insn, in DecodeAddrMode3Instruction() argument
1637 switch (Inst.getOpcode()) { in DecodeAddrMode3Instruction()
1649 switch (Inst.getOpcode()) { in DecodeAddrMode3Instruction()
1736 switch (Inst.getOpcode()) { in DecodeAddrMode3Instruction()
1743 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode3Instruction()
1751 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeAddrMode3Instruction()
1753 switch (Inst.getOpcode()) { in DecodeAddrMode3Instruction()
1760 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt+1, Address, Decoder))) in DecodeAddrMode3Instruction()
1769 switch (Inst.getOpcode()) { in DecodeAddrMode3Instruction()
1784 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode3Instruction()
1792 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode3Instruction()
1796 Inst.addOperand(MCOperand::createReg(0)); in DecodeAddrMode3Instruction()
1797 Inst.addOperand(MCOperand::createImm(U | (imm << 4) | Rm)); in DecodeAddrMode3Instruction()
1799 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeAddrMode3Instruction()
1801 Inst.addOperand(MCOperand::createImm(U)); in DecodeAddrMode3Instruction()
1804 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeAddrMode3Instruction()
1810 static DecodeStatus DecodeRFEInstruction(MCInst &Inst, unsigned Insn, in DecodeRFEInstruction() argument
1832 Inst.addOperand(MCOperand::createImm(mode)); in DecodeRFEInstruction()
1833 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeRFEInstruction()
1839 static DecodeStatus DecodeQADDInstruction(MCInst &Inst, unsigned Insn, in DecodeQADDInstruction() argument
1849 return DecodeCPSInstruction(Inst, Insn, Address, Decoder); in DecodeQADDInstruction()
1851 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) in DecodeQADDInstruction()
1853 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) in DecodeQADDInstruction()
1855 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) in DecodeQADDInstruction()
1857 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeQADDInstruction()
1862 static DecodeStatus DecodeMemMultipleWritebackInstruction(MCInst &Inst, in DecodeMemMultipleWritebackInstruction() argument
1873 switch (Inst.getOpcode()) { in DecodeMemMultipleWritebackInstruction()
1875 Inst.setOpcode(ARM::RFEDA); in DecodeMemMultipleWritebackInstruction()
1878 Inst.setOpcode(ARM::RFEDA_UPD); in DecodeMemMultipleWritebackInstruction()
1881 Inst.setOpcode(ARM::RFEDB); in DecodeMemMultipleWritebackInstruction()
1884 Inst.setOpcode(ARM::RFEDB_UPD); in DecodeMemMultipleWritebackInstruction()
1887 Inst.setOpcode(ARM::RFEIA); in DecodeMemMultipleWritebackInstruction()
1890 Inst.setOpcode(ARM::RFEIA_UPD); in DecodeMemMultipleWritebackInstruction()
1893 Inst.setOpcode(ARM::RFEIB); in DecodeMemMultipleWritebackInstruction()
1896 Inst.setOpcode(ARM::RFEIB_UPD); in DecodeMemMultipleWritebackInstruction()
1899 Inst.setOpcode(ARM::SRSDA); in DecodeMemMultipleWritebackInstruction()
1902 Inst.setOpcode(ARM::SRSDA_UPD); in DecodeMemMultipleWritebackInstruction()
1905 Inst.setOpcode(ARM::SRSDB); in DecodeMemMultipleWritebackInstruction()
1908 Inst.setOpcode(ARM::SRSDB_UPD); in DecodeMemMultipleWritebackInstruction()
1911 Inst.setOpcode(ARM::SRSIA); in DecodeMemMultipleWritebackInstruction()
1914 Inst.setOpcode(ARM::SRSIA_UPD); in DecodeMemMultipleWritebackInstruction()
1917 Inst.setOpcode(ARM::SRSIB); in DecodeMemMultipleWritebackInstruction()
1920 Inst.setOpcode(ARM::SRSIB_UPD); in DecodeMemMultipleWritebackInstruction()
1933 Inst.addOperand( in DecodeMemMultipleWritebackInstruction()
1938 return DecodeRFEInstruction(Inst, Insn, Address, Decoder); in DecodeMemMultipleWritebackInstruction()
1941 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeMemMultipleWritebackInstruction()
1943 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeMemMultipleWritebackInstruction()
1945 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeMemMultipleWritebackInstruction()
1947 if (!Check(S, DecodeRegListOperand(Inst, reglist, Address, Decoder))) in DecodeMemMultipleWritebackInstruction()
1954 static DecodeStatus DecodeHINTInstruction(MCInst &Inst, unsigned Insn, in DecodeHINTInstruction() argument
1963 Inst.addOperand(MCOperand::createImm(imm8)); in DecodeHINTInstruction()
1965 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeHINTInstruction()
1976 static DecodeStatus DecodeCPSInstruction(MCInst &Inst, unsigned Insn, in DecodeCPSInstruction() argument
2000 Inst.setOpcode(ARM::CPS3p); in DecodeCPSInstruction()
2001 Inst.addOperand(MCOperand::createImm(imod)); in DecodeCPSInstruction()
2002 Inst.addOperand(MCOperand::createImm(iflags)); in DecodeCPSInstruction()
2003 Inst.addOperand(MCOperand::createImm(mode)); in DecodeCPSInstruction()
2005 Inst.setOpcode(ARM::CPS2p); in DecodeCPSInstruction()
2006 Inst.addOperand(MCOperand::createImm(imod)); in DecodeCPSInstruction()
2007 Inst.addOperand(MCOperand::createImm(iflags)); in DecodeCPSInstruction()
2010 Inst.setOpcode(ARM::CPS1p); in DecodeCPSInstruction()
2011 Inst.addOperand(MCOperand::createImm(mode)); in DecodeCPSInstruction()
2015 Inst.setOpcode(ARM::CPS1p); in DecodeCPSInstruction()
2016 Inst.addOperand(MCOperand::createImm(mode)); in DecodeCPSInstruction()
2023 static DecodeStatus DecodeT2CPSInstruction(MCInst &Inst, unsigned Insn, in DecodeT2CPSInstruction() argument
2040 Inst.setOpcode(ARM::t2CPS3p); in DecodeT2CPSInstruction()
2041 Inst.addOperand(MCOperand::createImm(imod)); in DecodeT2CPSInstruction()
2042 Inst.addOperand(MCOperand::createImm(iflags)); in DecodeT2CPSInstruction()
2043 Inst.addOperand(MCOperand::createImm(mode)); in DecodeT2CPSInstruction()
2045 Inst.setOpcode(ARM::t2CPS2p); in DecodeT2CPSInstruction()
2046 Inst.addOperand(MCOperand::createImm(imod)); in DecodeT2CPSInstruction()
2047 Inst.addOperand(MCOperand::createImm(iflags)); in DecodeT2CPSInstruction()
2050 Inst.setOpcode(ARM::t2CPS1p); in DecodeT2CPSInstruction()
2051 Inst.addOperand(MCOperand::createImm(mode)); in DecodeT2CPSInstruction()
2058 Inst.setOpcode(ARM::t2HINT); in DecodeT2CPSInstruction()
2059 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2CPSInstruction()
2065 static DecodeStatus DecodeT2MOVTWInstruction(MCInst &Inst, unsigned Insn, in DecodeT2MOVTWInstruction() argument
2077 if (Inst.getOpcode() == ARM::t2MOVTi16) in DecodeT2MOVTWInstruction()
2078 if (!Check(S, DecoderGPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeT2MOVTWInstruction()
2080 if (!Check(S, DecoderGPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeT2MOVTWInstruction()
2083 if (!tryAddingSymbolicOperand(Address, imm, false, 4, Inst, Decoder)) in DecodeT2MOVTWInstruction()
2084 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2MOVTWInstruction()
2089 static DecodeStatus DecodeArmMOVTWInstruction(MCInst &Inst, unsigned Insn, in DecodeArmMOVTWInstruction() argument
2100 if (Inst.getOpcode() == ARM::MOVTi16) in DecodeArmMOVTWInstruction()
2101 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) in DecodeArmMOVTWInstruction()
2104 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) in DecodeArmMOVTWInstruction()
2107 if (!tryAddingSymbolicOperand(Address, imm, false, 4, Inst, Decoder)) in DecodeArmMOVTWInstruction()
2108 Inst.addOperand(MCOperand::createImm(imm)); in DecodeArmMOVTWInstruction()
2110 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeArmMOVTWInstruction()
2116 static DecodeStatus DecodeSMLAInstruction(MCInst &Inst, unsigned Insn, in DecodeSMLAInstruction() argument
2127 return DecodeCPSInstruction(Inst, Insn, Address, Decoder); in DecodeSMLAInstruction()
2129 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) in DecodeSMLAInstruction()
2131 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) in DecodeSMLAInstruction()
2133 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) in DecodeSMLAInstruction()
2135 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Ra, Address, Decoder))) in DecodeSMLAInstruction()
2138 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeSMLAInstruction()
2144 static DecodeStatus DecodeTSTInstruction(MCInst &Inst, unsigned Insn, in DecodeTSTInstruction() argument
2153 return DecodeSETPANInstruction(Inst, Insn, Address, Decoder); in DecodeTSTInstruction()
2155 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeTSTInstruction()
2157 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeTSTInstruction()
2159 if (!Check(S, DecodePredicateOperand(Inst, Pred, Address, Decoder))) in DecodeTSTInstruction()
2165 static DecodeStatus DecodeSETPANInstruction(MCInst &Inst, unsigned Insn, in DecodeSETPANInstruction() argument
2187 Inst.setOpcode(ARM::SETPAN); in DecodeSETPANInstruction()
2188 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeSETPANInstruction()
2193 static DecodeStatus DecodeAddrModeImm12Operand(MCInst &Inst, unsigned Val, in DecodeAddrModeImm12Operand() argument
2201 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrModeImm12Operand()
2206 Inst.addOperand(MCOperand::createImm(imm)); in DecodeAddrModeImm12Operand()
2213 static DecodeStatus DecodeAddrMode5Operand(MCInst &Inst, unsigned Val, in DecodeAddrMode5Operand() argument
2222 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode5Operand()
2226 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5Opc(ARM_AM::add, imm))); in DecodeAddrMode5Operand()
2228 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5Opc(ARM_AM::sub, imm))); in DecodeAddrMode5Operand()
2233 static DecodeStatus DecodeAddrMode5FP16Operand(MCInst &Inst, unsigned Val, in DecodeAddrMode5FP16Operand() argument
2242 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeAddrMode5FP16Operand()
2246 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5FP16Opc(ARM_AM::add, imm))); in DecodeAddrMode5FP16Operand()
2248 Inst.addOperand(MCOperand::createImm(ARM_AM::getAM5FP16Opc(ARM_AM::sub, imm))); in DecodeAddrMode5FP16Operand()
2253 static DecodeStatus DecodeAddrMode7Operand(MCInst &Inst, unsigned Val, in DecodeAddrMode7Operand() argument
2255 return DecodeGPRRegisterClass(Inst, Val, Address, Decoder); in DecodeAddrMode7Operand()
2259 DecodeT2BInstruction(MCInst &Inst, unsigned Insn, in DecodeT2BInstruction() argument
2279 true, 4, Inst, Decoder)) in DecodeT2BInstruction()
2280 Inst.addOperand(MCOperand::createImm(imm32)); in DecodeT2BInstruction()
2286 DecodeBranchImmInstruction(MCInst &Inst, unsigned Insn, in DecodeBranchImmInstruction() argument
2294 Inst.setOpcode(ARM::BLXi); in DecodeBranchImmInstruction()
2297 true, 4, Inst, Decoder)) in DecodeBranchImmInstruction()
2298 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction()
2303 true, 4, Inst, Decoder)) in DecodeBranchImmInstruction()
2304 Inst.addOperand(MCOperand::createImm(SignExtend32<26>(imm))); in DecodeBranchImmInstruction()
2305 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeBranchImmInstruction()
2311 static DecodeStatus DecodeAddrMode6Operand(MCInst &Inst, unsigned Val, in DecodeAddrMode6Operand() argument
2318 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeAddrMode6Operand()
2321 Inst.addOperand(MCOperand::createImm(0)); in DecodeAddrMode6Operand()
2323 Inst.addOperand(MCOperand::createImm(4 << align)); in DecodeAddrMode6Operand()
2328 static DecodeStatus DecodeVLDInstruction(MCInst &Inst, unsigned Insn, in DecodeVLDInstruction() argument
2340 switch (Inst.getOpcode()) { in DecodeVLDInstruction()
2350 if (!Check(S, DecodeDPairRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLDInstruction()
2362 if (!Check(S, DecodeDPairSpacedRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLDInstruction()
2366 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLDInstruction()
2371 switch (Inst.getOpcode()) { in DecodeVLDInstruction()
2384 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+1)%32, Address, Decoder))) in DecodeVLDInstruction()
2399 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder))) in DecodeVLDInstruction()
2407 switch(Inst.getOpcode()) { in DecodeVLDInstruction()
2420 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder))) in DecodeVLDInstruction()
2435 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+4)%32, Address, Decoder))) in DecodeVLDInstruction()
2443 switch (Inst.getOpcode()) { in DecodeVLDInstruction()
2450 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+3)%32, Address, Decoder))) in DecodeVLDInstruction()
2459 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+6)%32, Address, Decoder))) in DecodeVLDInstruction()
2467 switch (Inst.getOpcode()) { in DecodeVLDInstruction()
2518 Inst.addOperand(MCOperand::createImm(0)); in DecodeVLDInstruction()
2532 if (!Check(S, DecodeGPRRegisterClass(Inst, wb, Address, Decoder))) in DecodeVLDInstruction()
2540 if (!Check(S, DecodeAddrMode6Operand(Inst, Rn, Address, Decoder))) in DecodeVLDInstruction()
2544 switch (Inst.getOpcode()) { in DecodeVLDInstruction()
2553 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLDInstruction()
2586 !Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLDInstruction()
2604 static DecodeStatus DecodeVLDST1Instruction(MCInst &Inst, unsigned Insn, in DecodeVLDST1Instruction() argument
2613 return load ? DecodeVLDInstruction(Inst, Insn, Address, Decoder) in DecodeVLDST1Instruction()
2614 : DecodeVSTInstruction(Inst, Insn, Address, Decoder); in DecodeVLDST1Instruction()
2617 static DecodeStatus DecodeVLDST2Instruction(MCInst &Inst, unsigned Insn, in DecodeVLDST2Instruction() argument
2628 return load ? DecodeVLDInstruction(Inst, Insn, Address, Decoder) in DecodeVLDST2Instruction()
2629 : DecodeVSTInstruction(Inst, Insn, Address, Decoder); in DecodeVLDST2Instruction()
2632 static DecodeStatus DecodeVLDST3Instruction(MCInst &Inst, unsigned Insn, in DecodeVLDST3Instruction() argument
2641 return load ? DecodeVLDInstruction(Inst, Insn, Address, Decoder) in DecodeVLDST3Instruction()
2642 : DecodeVSTInstruction(Inst, Insn, Address, Decoder); in DecodeVLDST3Instruction()
2645 static DecodeStatus DecodeVLDST4Instruction(MCInst &Inst, unsigned Insn, in DecodeVLDST4Instruction() argument
2651 return load ? DecodeVLDInstruction(Inst, Insn, Address, Decoder) in DecodeVLDST4Instruction()
2652 : DecodeVSTInstruction(Inst, Insn, Address, Decoder); in DecodeVLDST4Instruction()
2655 static DecodeStatus DecodeVSTInstruction(MCInst &Inst, unsigned Insn, in DecodeVSTInstruction() argument
2667 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2720 Inst.addOperand(MCOperand::createImm(0)); in DecodeVSTInstruction()
2734 if (!Check(S, DecodeGPRRegisterClass(Inst, wb, Address, Decoder))) in DecodeVSTInstruction()
2742 if (!Check(S, DecodeAddrMode6Operand(Inst, Rn, Address, Decoder))) in DecodeVSTInstruction()
2746 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2749 Inst.addOperand(MCOperand::createReg(0)); in DecodeVSTInstruction()
2751 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVSTInstruction()
2784 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2806 if (!Check(S, DecodeDPairRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVSTInstruction()
2818 if (!Check(S, DecodeDPairSpacedRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVSTInstruction()
2822 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVSTInstruction()
2827 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2840 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+1)%32, Address, Decoder))) in DecodeVSTInstruction()
2855 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder))) in DecodeVSTInstruction()
2863 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2876 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2)%32, Address, Decoder))) in DecodeVSTInstruction()
2891 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+4)%32, Address, Decoder))) in DecodeVSTInstruction()
2899 switch (Inst.getOpcode()) { in DecodeVSTInstruction()
2906 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+3)%32, Address, Decoder))) in DecodeVSTInstruction()
2915 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+6)%32, Address, Decoder))) in DecodeVSTInstruction()
2925 static DecodeStatus DecodeVLD1DupInstruction(MCInst &Inst, unsigned Insn, in DecodeVLD1DupInstruction() argument
2940 switch (Inst.getOpcode()) { in DecodeVLD1DupInstruction()
2945 if (!Check(S, DecodeDPairRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD1DupInstruction()
2949 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD1DupInstruction()
2954 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD1DupInstruction()
2958 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD1DupInstruction()
2960 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD1DupInstruction()
2966 !Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD1DupInstruction()
2972 static DecodeStatus DecodeVLD2DupInstruction(MCInst &Inst, unsigned Insn, in DecodeVLD2DupInstruction() argument
2984 switch (Inst.getOpcode()) { in DecodeVLD2DupInstruction()
2989 if (!Check(S, DecodeDPairRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD2DupInstruction()
2996 if (!Check(S, DecodeDPairSpacedRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD2DupInstruction()
3000 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD2DupInstruction()
3006 Inst.addOperand(MCOperand::createImm(0)); in DecodeVLD2DupInstruction()
3008 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD2DupInstruction()
3010 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD2DupInstruction()
3013 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD2DupInstruction()
3020 static DecodeStatus DecodeVLD3DupInstruction(MCInst &Inst, unsigned Insn, in DecodeVLD3DupInstruction() argument
3030 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD3DupInstruction()
3032 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+inc)%32, Address, Decoder))) in DecodeVLD3DupInstruction()
3034 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2*inc)%32, Address, Decoder))) in DecodeVLD3DupInstruction()
3037 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD3DupInstruction()
3041 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD3DupInstruction()
3043 Inst.addOperand(MCOperand::createImm(0)); in DecodeVLD3DupInstruction()
3046 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD3DupInstruction()
3048 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD3DupInstruction()
3055 static DecodeStatus DecodeVLD4DupInstruction(MCInst &Inst, unsigned Insn, in DecodeVLD4DupInstruction() argument
3080 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD4DupInstruction()
3082 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+inc)%32, Address, Decoder))) in DecodeVLD4DupInstruction()
3084 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+2*inc)%32, Address, Decoder))) in DecodeVLD4DupInstruction()
3086 if (!Check(S, DecodeDPRRegisterClass(Inst, (Rd+3*inc)%32, Address, Decoder))) in DecodeVLD4DupInstruction()
3089 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD4DupInstruction()
3093 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD4DupInstruction()
3095 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD4DupInstruction()
3098 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD4DupInstruction()
3100 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD4DupInstruction()
3108 DecodeNEONModImmInstruction(MCInst &Inst, unsigned Insn, in DecodeNEONModImmInstruction() argument
3122 if (!Check(S, DecodeQPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeNEONModImmInstruction()
3125 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeNEONModImmInstruction()
3129 Inst.addOperand(MCOperand::createImm(imm)); in DecodeNEONModImmInstruction()
3131 switch (Inst.getOpcode()) { in DecodeNEONModImmInstruction()
3136 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeNEONModImmInstruction()
3143 if (!Check(S, DecodeQPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeNEONModImmInstruction()
3153 static DecodeStatus DecodeVSHLMaxInstruction(MCInst &Inst, unsigned Insn, in DecodeVSHLMaxInstruction() argument
3163 if (!Check(S, DecodeQPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVSHLMaxInstruction()
3165 if (!Check(S, DecodeDPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVSHLMaxInstruction()
3167 Inst.addOperand(MCOperand::createImm(8 << size)); in DecodeVSHLMaxInstruction()
3172 static DecodeStatus DecodeShiftRight8Imm(MCInst &Inst, unsigned Val, in DecodeShiftRight8Imm() argument
3174 Inst.addOperand(MCOperand::createImm(8 - Val)); in DecodeShiftRight8Imm()
3178 static DecodeStatus DecodeShiftRight16Imm(MCInst &Inst, unsigned Val, in DecodeShiftRight16Imm() argument
3180 Inst.addOperand(MCOperand::createImm(16 - Val)); in DecodeShiftRight16Imm()
3184 static DecodeStatus DecodeShiftRight32Imm(MCInst &Inst, unsigned Val, in DecodeShiftRight32Imm() argument
3186 Inst.addOperand(MCOperand::createImm(32 - Val)); in DecodeShiftRight32Imm()
3190 static DecodeStatus DecodeShiftRight64Imm(MCInst &Inst, unsigned Val, in DecodeShiftRight64Imm() argument
3192 Inst.addOperand(MCOperand::createImm(64 - Val)); in DecodeShiftRight64Imm()
3196 static DecodeStatus DecodeTBLInstruction(MCInst &Inst, unsigned Insn, in DecodeTBLInstruction() argument
3208 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeTBLInstruction()
3211 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeTBLInstruction()
3215 switch (Inst.getOpcode()) { in DecodeTBLInstruction()
3218 if (!Check(S, DecodeDPairRegisterClass(Inst, Rn, Address, Decoder))) in DecodeTBLInstruction()
3222 if (!Check(S, DecodeDPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeTBLInstruction()
3226 if (!Check(S, DecodeDPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeTBLInstruction()
3232 static DecodeStatus DecodeThumbAddSpecialReg(MCInst &Inst, uint16_t Insn, in DecodeThumbAddSpecialReg() argument
3239 if (!Check(S, DecodetGPRRegisterClass(Inst, dst, Address, Decoder))) in DecodeThumbAddSpecialReg()
3242 switch(Inst.getOpcode()) { in DecodeThumbAddSpecialReg()
3248 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSpecialReg()
3252 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddSpecialReg()
3256 static DecodeStatus DecodeThumbBROperand(MCInst &Inst, unsigned Val, in DecodeThumbBROperand() argument
3259 true, 2, Inst, Decoder)) in DecodeThumbBROperand()
3260 Inst.addOperand(MCOperand::createImm(SignExtend32<12>(Val << 1))); in DecodeThumbBROperand()
3264 static DecodeStatus DecodeT2BROperand(MCInst &Inst, unsigned Val, in DecodeT2BROperand() argument
3267 true, 4, Inst, Decoder)) in DecodeT2BROperand()
3268 Inst.addOperand(MCOperand::createImm(SignExtend32<21>(Val))); in DecodeT2BROperand()
3272 static DecodeStatus DecodeThumbCmpBROperand(MCInst &Inst, unsigned Val, in DecodeThumbCmpBROperand() argument
3275 true, 2, Inst, Decoder)) in DecodeThumbCmpBROperand()
3276 Inst.addOperand(MCOperand::createImm(Val << 1)); in DecodeThumbCmpBROperand()
3280 static DecodeStatus DecodeThumbAddrModeRR(MCInst &Inst, unsigned Val, in DecodeThumbAddrModeRR() argument
3287 if (!Check(S, DecodetGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeThumbAddrModeRR()
3289 if (!Check(S, DecodetGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeThumbAddrModeRR()
3295 static DecodeStatus DecodeThumbAddrModeIS(MCInst &Inst, unsigned Val, in DecodeThumbAddrModeIS() argument
3302 if (!Check(S, DecodetGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeThumbAddrModeIS()
3304 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddrModeIS()
3309 static DecodeStatus DecodeThumbAddrModePC(MCInst &Inst, unsigned Val, in DecodeThumbAddrModePC() argument
3313 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddrModePC()
3319 static DecodeStatus DecodeThumbAddrModeSP(MCInst &Inst, unsigned Val, in DecodeThumbAddrModeSP() argument
3321 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddrModeSP()
3322 Inst.addOperand(MCOperand::createImm(Val)); in DecodeThumbAddrModeSP()
3327 static DecodeStatus DecodeT2AddrModeSOReg(MCInst &Inst, unsigned Val, in DecodeT2AddrModeSOReg() argument
3336 switch (Inst.getOpcode()) { in DecodeT2AddrModeSOReg()
3347 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2AddrModeSOReg()
3349 if (!Check(S, DecoderGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeT2AddrModeSOReg()
3351 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeSOReg()
3356 static DecodeStatus DecodeT2LoadShift(MCInst &Inst, unsigned Insn, in DecodeT2LoadShift() argument
3370 switch (Inst.getOpcode()) { in DecodeT2LoadShift()
3372 Inst.setOpcode(ARM::t2LDRBpci); in DecodeT2LoadShift()
3375 Inst.setOpcode(ARM::t2LDRHpci); in DecodeT2LoadShift()
3378 Inst.setOpcode(ARM::t2LDRSHpci); in DecodeT2LoadShift()
3381 Inst.setOpcode(ARM::t2LDRSBpci); in DecodeT2LoadShift()
3384 Inst.setOpcode(ARM::t2LDRpci); in DecodeT2LoadShift()
3387 Inst.setOpcode(ARM::t2PLDpci); in DecodeT2LoadShift()
3390 Inst.setOpcode(ARM::t2PLIpci); in DecodeT2LoadShift()
3396 return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); in DecodeT2LoadShift()
3400 switch (Inst.getOpcode()) { in DecodeT2LoadShift()
3404 Inst.setOpcode(ARM::t2PLDWs); in DecodeT2LoadShift()
3407 Inst.setOpcode(ARM::t2PLIs); in DecodeT2LoadShift()
3414 switch (Inst.getOpcode()) { in DecodeT2LoadShift()
3426 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LoadShift()
3433 if (!Check(S, DecodeT2AddrModeSOReg(Inst, addrmode, Address, Decoder))) in DecodeT2LoadShift()
3439 static DecodeStatus DecodeT2LoadImm8(MCInst &Inst, unsigned Insn, in DecodeT2LoadImm8() argument
3458 switch (Inst.getOpcode()) { in DecodeT2LoadImm8()
3460 Inst.setOpcode(ARM::t2LDRpci); in DecodeT2LoadImm8()
3463 Inst.setOpcode(ARM::t2LDRBpci); in DecodeT2LoadImm8()
3466 Inst.setOpcode(ARM::t2LDRSBpci); in DecodeT2LoadImm8()
3469 Inst.setOpcode(ARM::t2LDRHpci); in DecodeT2LoadImm8()
3472 Inst.setOpcode(ARM::t2LDRSHpci); in DecodeT2LoadImm8()
3475 Inst.setOpcode(ARM::t2PLDpci); in DecodeT2LoadImm8()
3478 Inst.setOpcode(ARM::t2PLIpci); in DecodeT2LoadImm8()
3483 return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); in DecodeT2LoadImm8()
3487 switch (Inst.getOpcode()) { in DecodeT2LoadImm8()
3492 Inst.setOpcode(ARM::t2PLDWi8); in DecodeT2LoadImm8()
3495 Inst.setOpcode(ARM::t2PLIi8); in DecodeT2LoadImm8()
3502 switch (Inst.getOpcode()) { in DecodeT2LoadImm8()
3514 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LoadImm8()
3518 if (!Check(S, DecodeT2AddrModeImm8(Inst, imm, Address, Decoder))) in DecodeT2LoadImm8()
3523 static DecodeStatus DecodeT2LoadImm12(MCInst &Inst, unsigned Insn, in DecodeT2LoadImm12() argument
3539 switch (Inst.getOpcode()) { in DecodeT2LoadImm12()
3541 Inst.setOpcode(ARM::t2LDRpci); in DecodeT2LoadImm12()
3544 Inst.setOpcode(ARM::t2LDRHpci); in DecodeT2LoadImm12()
3547 Inst.setOpcode(ARM::t2LDRSHpci); in DecodeT2LoadImm12()
3550 Inst.setOpcode(ARM::t2LDRBpci); in DecodeT2LoadImm12()
3553 Inst.setOpcode(ARM::t2LDRSBpci); in DecodeT2LoadImm12()
3556 Inst.setOpcode(ARM::t2PLDpci); in DecodeT2LoadImm12()
3559 Inst.setOpcode(ARM::t2PLIpci); in DecodeT2LoadImm12()
3564 return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); in DecodeT2LoadImm12()
3568 switch (Inst.getOpcode()) { in DecodeT2LoadImm12()
3572 Inst.setOpcode(ARM::t2PLDWi12); in DecodeT2LoadImm12()
3575 Inst.setOpcode(ARM::t2PLIi12); in DecodeT2LoadImm12()
3582 switch (Inst.getOpcode()) { in DecodeT2LoadImm12()
3594 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LoadImm12()
3598 if (!Check(S, DecodeT2AddrModeImm12(Inst, imm, Address, Decoder))) in DecodeT2LoadImm12()
3603 static DecodeStatus DecodeT2LoadT(MCInst &Inst, unsigned Insn, in DecodeT2LoadT() argument
3613 switch (Inst.getOpcode()) { in DecodeT2LoadT()
3615 Inst.setOpcode(ARM::t2LDRpci); in DecodeT2LoadT()
3618 Inst.setOpcode(ARM::t2LDRBpci); in DecodeT2LoadT()
3621 Inst.setOpcode(ARM::t2LDRHpci); in DecodeT2LoadT()
3624 Inst.setOpcode(ARM::t2LDRSBpci); in DecodeT2LoadT()
3627 Inst.setOpcode(ARM::t2LDRSHpci); in DecodeT2LoadT()
3632 return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); in DecodeT2LoadT()
3635 if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LoadT()
3637 if (!Check(S, DecodeT2AddrModeImm8(Inst, imm, Address, Decoder))) in DecodeT2LoadT()
3642 static DecodeStatus DecodeT2LoadLabel(MCInst &Inst, unsigned Insn, in DecodeT2LoadLabel() argument
3656 switch (Inst.getOpcode()) { in DecodeT2LoadLabel()
3659 Inst.setOpcode(ARM::t2PLDpci); in DecodeT2LoadLabel()
3662 Inst.setOpcode(ARM::t2PLIpci); in DecodeT2LoadLabel()
3671 switch(Inst.getOpcode()) { in DecodeT2LoadLabel()
3679 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LoadLabel()
3690 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2LoadLabel()
3695 static DecodeStatus DecodeT2Imm8S4(MCInst &Inst, unsigned Val, in DecodeT2Imm8S4() argument
3698 Inst.addOperand(MCOperand::createImm(INT32_MIN)); in DecodeT2Imm8S4()
3703 Inst.addOperand(MCOperand::createImm(imm * 4)); in DecodeT2Imm8S4()
3709 static DecodeStatus DecodeT2AddrModeImm8s4(MCInst &Inst, unsigned Val, in DecodeT2AddrModeImm8s4() argument
3716 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2AddrModeImm8s4()
3718 if (!Check(S, DecodeT2Imm8S4(Inst, imm, Address, Decoder))) in DecodeT2AddrModeImm8s4()
3724 static DecodeStatus DecodeT2AddrModeImm0_1020s4(MCInst &Inst,unsigned Val, in DecodeT2AddrModeImm0_1020s4() argument
3731 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2AddrModeImm0_1020s4()
3734 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeImm0_1020s4()
3739 static DecodeStatus DecodeT2Imm8(MCInst &Inst, unsigned Val, in DecodeT2Imm8() argument
3746 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2Imm8()
3751 static DecodeStatus DecodeT2AddrModeImm8(MCInst &Inst, unsigned Val, in DecodeT2AddrModeImm8() argument
3759 switch (Inst.getOpcode()) { in DecodeT2AddrModeImm8()
3774 switch (Inst.getOpcode()) { in DecodeT2AddrModeImm8()
3789 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2AddrModeImm8()
3791 if (!Check(S, DecodeT2Imm8(Inst, imm, Address, Decoder))) in DecodeT2AddrModeImm8()
3797 static DecodeStatus DecodeT2LdStPre(MCInst &Inst, unsigned Insn, in DecodeT2LdStPre() argument
3809 switch (Inst.getOpcode()) { in DecodeT2LdStPre()
3812 Inst.setOpcode(ARM::t2LDRpci); in DecodeT2LdStPre()
3816 Inst.setOpcode(ARM::t2LDRBpci); in DecodeT2LdStPre()
3820 Inst.setOpcode(ARM::t2LDRHpci); in DecodeT2LdStPre()
3825 Inst.setOpcode(ARM::t2PLIpci); in DecodeT2LdStPre()
3827 Inst.setOpcode(ARM::t2LDRSBpci); in DecodeT2LdStPre()
3831 Inst.setOpcode(ARM::t2LDRSHpci); in DecodeT2LdStPre()
3836 return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); in DecodeT2LdStPre()
3840 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2LdStPre()
3844 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LdStPre()
3848 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2LdStPre()
3852 if (!Check(S, DecodeT2AddrModeImm8(Inst, addr, Address, Decoder))) in DecodeT2LdStPre()
3858 static DecodeStatus DecodeT2AddrModeImm12(MCInst &Inst, unsigned Val, in DecodeT2AddrModeImm12() argument
3866 switch (Inst.getOpcode()) { in DecodeT2AddrModeImm12()
3877 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2AddrModeImm12()
3879 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2AddrModeImm12()
3884 static DecodeStatus DecodeThumbAddSPImm(MCInst &Inst, uint16_t Insn, in DecodeThumbAddSPImm() argument
3888 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSPImm()
3889 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSPImm()
3890 Inst.addOperand(MCOperand::createImm(imm)); in DecodeThumbAddSPImm()
3895 static DecodeStatus DecodeThumbAddSPReg(MCInst &Inst, uint16_t Insn, in DecodeThumbAddSPReg() argument
3899 if (Inst.getOpcode() == ARM::tADDrSP) { in DecodeThumbAddSPReg()
3903 if (!Check(S, DecodeGPRRegisterClass(Inst, Rdm, Address, Decoder))) in DecodeThumbAddSPReg()
3905 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSPReg()
3906 if (!Check(S, DecodeGPRRegisterClass(Inst, Rdm, Address, Decoder))) in DecodeThumbAddSPReg()
3908 } else if (Inst.getOpcode() == ARM::tADDspr) { in DecodeThumbAddSPReg()
3911 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSPReg()
3912 Inst.addOperand(MCOperand::createReg(ARM::SP)); in DecodeThumbAddSPReg()
3913 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeThumbAddSPReg()
3920 static DecodeStatus DecodeThumbCPS(MCInst &Inst, uint16_t Insn, in DecodeThumbCPS() argument
3925 Inst.addOperand(MCOperand::createImm(imod)); in DecodeThumbCPS()
3926 Inst.addOperand(MCOperand::createImm(flags)); in DecodeThumbCPS()
3931 static DecodeStatus DecodePostIdxReg(MCInst &Inst, unsigned Insn, in DecodePostIdxReg() argument
3937 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder))) in DecodePostIdxReg()
3939 Inst.addOperand(MCOperand::createImm(add)); in DecodePostIdxReg()
3944 static DecodeStatus DecodeThumbBLXOffset(MCInst &Inst, unsigned Val, in DecodeThumbBLXOffset() argument
3963 true, 4, Inst, Decoder)) in DecodeThumbBLXOffset()
3964 Inst.addOperand(MCOperand::createImm(imm32)); in DecodeThumbBLXOffset()
3968 static DecodeStatus DecodeCoprocessor(MCInst &Inst, unsigned Val, in DecodeCoprocessor() argument
3979 Inst.addOperand(MCOperand::createImm(Val)); in DecodeCoprocessor()
3984 DecodeThumbTableBranch(MCInst &Inst, unsigned Insn, in DecodeThumbTableBranch() argument
3992 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeThumbTableBranch()
3994 if (!Check(S, DecoderGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeThumbTableBranch()
4000 DecodeThumb2BCCInstruction(MCInst &Inst, unsigned Insn, in DecodeThumb2BCCInstruction() argument
4011 Inst.setOpcode(ARM::t2DSB); in DecodeThumb2BCCInstruction()
4014 Inst.setOpcode(ARM::t2DMB); in DecodeThumb2BCCInstruction()
4017 Inst.setOpcode(ARM::t2ISB); in DecodeThumb2BCCInstruction()
4022 return DecodeMemBarrierOption(Inst, imm, Address, Decoder); in DecodeThumb2BCCInstruction()
4031 if (!Check(S, DecodeT2BROperand(Inst, brtarget, Address, Decoder))) in DecodeThumb2BCCInstruction()
4033 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeThumb2BCCInstruction()
4042 static DecodeStatus DecodeT2SOImm(MCInst &Inst, unsigned Val, in DecodeT2SOImm() argument
4050 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2SOImm()
4053 Inst.addOperand(MCOperand::createImm((imm << 16) | imm)); in DecodeT2SOImm()
4056 Inst.addOperand(MCOperand::createImm((imm << 24) | (imm << 8))); in DecodeT2SOImm()
4059 Inst.addOperand(MCOperand::createImm((imm << 24) | (imm << 16) | in DecodeT2SOImm()
4067 Inst.addOperand(MCOperand::createImm(imm)); in DecodeT2SOImm()
4074 DecodeThumbBCCTargetOperand(MCInst &Inst, unsigned Val, in DecodeThumbBCCTargetOperand() argument
4077 true, 2, Inst, Decoder)) in DecodeThumbBCCTargetOperand()
4078 Inst.addOperand(MCOperand::createImm(SignExtend32<9>(Val << 1))); in DecodeThumbBCCTargetOperand()
4082 static DecodeStatus DecodeThumbBLTargetOperand(MCInst &Inst, unsigned Val, in DecodeThumbBLTargetOperand() argument
4101 true, 4, Inst, Decoder)) in DecodeThumbBLTargetOperand()
4102 Inst.addOperand(MCOperand::createImm(imm32)); in DecodeThumbBLTargetOperand()
4106 static DecodeStatus DecodeMemBarrierOption(MCInst &Inst, unsigned Val, in DecodeMemBarrierOption() argument
4111 Inst.addOperand(MCOperand::createImm(Val)); in DecodeMemBarrierOption()
4115 static DecodeStatus DecodeInstSyncBarrierOption(MCInst &Inst, unsigned Val, in DecodeInstSyncBarrierOption() argument
4120 Inst.addOperand(MCOperand::createImm(Val)); in DecodeInstSyncBarrierOption()
4124 static DecodeStatus DecodeMSRMask(MCInst &Inst, unsigned Val, in DecodeMSRMask() argument
4177 if (Inst.getOpcode() == ARM::t2MSR_M) { in DecodeMSRMask()
4202 Inst.addOperand(MCOperand::createImm(Val)); in DecodeMSRMask()
4206 static DecodeStatus DecodeBankedReg(MCInst &Inst, unsigned Val, in DecodeBankedReg() argument
4217 Inst.addOperand(MCOperand::createImm(Val)); in DecodeBankedReg()
4221 static DecodeStatus DecodeDoubleRegLoad(MCInst &Inst, unsigned Insn, in DecodeDoubleRegLoad() argument
4232 if (!Check(S, DecodeGPRPairRegisterClass(Inst, Rt, Address, Decoder))) in DecodeDoubleRegLoad()
4234 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeDoubleRegLoad()
4236 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeDoubleRegLoad()
4242 static DecodeStatus DecodeDoubleRegStore(MCInst &Inst, unsigned Insn, in DecodeDoubleRegStore() argument
4252 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rd, Address, Decoder))) in DecodeDoubleRegStore()
4258 if (!Check(S, DecodeGPRPairRegisterClass(Inst, Rt, Address, Decoder))) in DecodeDoubleRegStore()
4260 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeDoubleRegStore()
4262 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeDoubleRegStore()
4268 static DecodeStatus DecodeLDRPreImm(MCInst &Inst, unsigned Insn, in DecodeLDRPreImm() argument
4281 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeLDRPreImm()
4283 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeLDRPreImm()
4285 if (!Check(S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder))) in DecodeLDRPreImm()
4287 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeLDRPreImm()
4293 static DecodeStatus DecodeLDRPreReg(MCInst &Inst, unsigned Insn, in DecodeLDRPreReg() argument
4308 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeLDRPreReg()
4310 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeLDRPreReg()
4312 if (!Check(S, DecodeSORegMemOperand(Inst, imm, Address, Decoder))) in DecodeLDRPreReg()
4314 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeLDRPreReg()
4320 static DecodeStatus DecodeSTRPreImm(MCInst &Inst, unsigned Insn, in DecodeSTRPreImm() argument
4333 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeSTRPreImm()
4335 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeSTRPreImm()
4337 if (!Check(S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder))) in DecodeSTRPreImm()
4339 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeSTRPreImm()
4345 static DecodeStatus DecodeSTRPreReg(MCInst &Inst, unsigned Insn, in DecodeSTRPreReg() argument
4358 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeSTRPreReg()
4360 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeSTRPreReg()
4362 if (!Check(S, DecodeSORegMemOperand(Inst, imm, Address, Decoder))) in DecodeSTRPreReg()
4364 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeSTRPreReg()
4370 static DecodeStatus DecodeVLD1LN(MCInst &Inst, unsigned Insn, in DecodeVLD1LN() argument
4413 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD1LN()
4416 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD1LN()
4419 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD1LN()
4421 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD1LN()
4424 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD1LN()
4427 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD1LN()
4430 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD1LN()
4432 Inst.addOperand(MCOperand::createImm(index)); in DecodeVLD1LN()
4437 static DecodeStatus DecodeVST1LN(MCInst &Inst, unsigned Insn, in DecodeVST1LN() argument
4481 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST1LN()
4484 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST1LN()
4486 Inst.addOperand(MCOperand::createImm(align)); in DecodeVST1LN()
4489 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVST1LN()
4492 Inst.addOperand(MCOperand::createReg(0)); in DecodeVST1LN()
4495 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVST1LN()
4497 Inst.addOperand(MCOperand::createImm(index)); in DecodeVST1LN()
4502 static DecodeStatus DecodeVLD2LN(MCInst &Inst, unsigned Insn, in DecodeVLD2LN() argument
4541 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD2LN()
4543 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD2LN()
4546 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD2LN()
4549 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD2LN()
4551 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD2LN()
4554 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD2LN()
4557 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD2LN()
4560 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD2LN()
4562 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD2LN()
4564 Inst.addOperand(MCOperand::createImm(index)); in DecodeVLD2LN()
4569 static DecodeStatus DecodeVST2LN(MCInst &Inst, unsigned Insn, in DecodeVST2LN() argument
4609 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST2LN()
4612 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST2LN()
4614 Inst.addOperand(MCOperand::createImm(align)); in DecodeVST2LN()
4617 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVST2LN()
4620 Inst.addOperand(MCOperand::createReg(0)); in DecodeVST2LN()
4623 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVST2LN()
4625 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVST2LN()
4627 Inst.addOperand(MCOperand::createImm(index)); in DecodeVST2LN()
4632 static DecodeStatus DecodeVLD3LN(MCInst &Inst, unsigned Insn, in DecodeVLD3LN() argument
4669 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD3LN()
4671 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD3LN()
4673 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVLD3LN()
4677 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD3LN()
4680 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD3LN()
4682 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD3LN()
4685 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD3LN()
4688 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD3LN()
4691 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD3LN()
4693 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD3LN()
4695 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVLD3LN()
4697 Inst.addOperand(MCOperand::createImm(index)); in DecodeVLD3LN()
4702 static DecodeStatus DecodeVST3LN(MCInst &Inst, unsigned Insn, in DecodeVST3LN() argument
4740 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST3LN()
4743 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST3LN()
4745 Inst.addOperand(MCOperand::createImm(align)); in DecodeVST3LN()
4748 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVST3LN()
4751 Inst.addOperand(MCOperand::createReg(0)); in DecodeVST3LN()
4754 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVST3LN()
4756 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVST3LN()
4758 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVST3LN()
4760 Inst.addOperand(MCOperand::createImm(index)); in DecodeVST3LN()
4765 static DecodeStatus DecodeVLD4LN(MCInst &Inst, unsigned Insn, in DecodeVLD4LN() argument
4809 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD4LN()
4811 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD4LN()
4813 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVLD4LN()
4815 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+3*inc, Address, Decoder))) in DecodeVLD4LN()
4819 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD4LN()
4822 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVLD4LN()
4824 Inst.addOperand(MCOperand::createImm(align)); in DecodeVLD4LN()
4827 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVLD4LN()
4830 Inst.addOperand(MCOperand::createReg(0)); in DecodeVLD4LN()
4833 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVLD4LN()
4835 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVLD4LN()
4837 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVLD4LN()
4839 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+3*inc, Address, Decoder))) in DecodeVLD4LN()
4841 Inst.addOperand(MCOperand::createImm(index)); in DecodeVLD4LN()
4846 static DecodeStatus DecodeVST4LN(MCInst &Inst, unsigned Insn, in DecodeVST4LN() argument
4891 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST4LN()
4894 if (!Check(S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeVST4LN()
4896 Inst.addOperand(MCOperand::createImm(align)); in DecodeVST4LN()
4899 if (!Check(S, DecodeGPRRegisterClass(Inst, Rm, Address, Decoder))) in DecodeVST4LN()
4902 Inst.addOperand(MCOperand::createReg(0)); in DecodeVST4LN()
4905 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd, Address, Decoder))) in DecodeVST4LN()
4907 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+inc, Address, Decoder))) in DecodeVST4LN()
4909 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+2*inc, Address, Decoder))) in DecodeVST4LN()
4911 if (!Check(S, DecodeDPRRegisterClass(Inst, Rd+3*inc, Address, Decoder))) in DecodeVST4LN()
4913 Inst.addOperand(MCOperand::createImm(index)); in DecodeVST4LN()
4918 static DecodeStatus DecodeVMOVSRR(MCInst &Inst, unsigned Insn, in DecodeVMOVSRR() argument
4930 if (!Check(S, DecodeSPRRegisterClass(Inst, Rm , Address, Decoder))) in DecodeVMOVSRR()
4932 if (!Check(S, DecodeSPRRegisterClass(Inst, Rm+1, Address, Decoder))) in DecodeVMOVSRR()
4934 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt , Address, Decoder))) in DecodeVMOVSRR()
4936 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt2 , Address, Decoder))) in DecodeVMOVSRR()
4938 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeVMOVSRR()
4944 static DecodeStatus DecodeVMOVRRS(MCInst &Inst, unsigned Insn, in DecodeVMOVRRS() argument
4956 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt , Address, Decoder))) in DecodeVMOVRRS()
4958 if (!Check(S, DecodeGPRRegisterClass(Inst, Rt2 , Address, Decoder))) in DecodeVMOVRRS()
4960 if (!Check(S, DecodeSPRRegisterClass(Inst, Rm , Address, Decoder))) in DecodeVMOVRRS()
4962 if (!Check(S, DecodeSPRRegisterClass(Inst, Rm+1, Address, Decoder))) in DecodeVMOVRRS()
4964 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeVMOVRRS()
4970 static DecodeStatus DecodeIT(MCInst &Inst, unsigned Insn, in DecodeIT() argument
4984 Inst.addOperand(MCOperand::createImm(pred)); in DecodeIT()
4985 Inst.addOperand(MCOperand::createImm(mask)); in DecodeIT()
4990 DecodeT2LDRDPreInstruction(MCInst &Inst, unsigned Insn, in DecodeT2LDRDPreInstruction() argument
5011 if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2LDRDPreInstruction()
5014 if (!Check(S, DecoderGPRRegisterClass(Inst, Rt2, Address, Decoder))) in DecodeT2LDRDPreInstruction()
5017 if (!Check(S, DecoderGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2LDRDPreInstruction()
5020 if (!Check(S, DecodeT2AddrModeImm8s4(Inst, addr, Address, Decoder))) in DecodeT2LDRDPreInstruction()
5027 DecodeT2STRDPreInstruction(MCInst &Inst, unsigned Insn, in DecodeT2STRDPreInstruction() argument
5046 if (!Check(S, DecoderGPRRegisterClass(Inst, Rn, Address, Decoder))) in DecodeT2STRDPreInstruction()
5049 if (!Check(S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder))) in DecodeT2STRDPreInstruction()
5052 if (!Check(S, DecoderGPRRegisterClass(Inst, Rt2, Address, Decoder))) in DecodeT2STRDPreInstruction()
5055 if (!Check(S, DecodeT2AddrModeImm8s4(Inst, addr, Address, Decoder))) in DecodeT2STRDPreInstruction()
5061 static DecodeStatus DecodeT2Adr(MCInst &Inst, uint32_t Insn, in DecodeT2Adr() argument
5071 Inst.addOperand(MCOperand::createImm(SignExtend32<13>(Val))); in DecodeT2Adr()
5076 static DecodeStatus DecodeT2ShifterImmOperand(MCInst &Inst, uint32_t Val, in DecodeT2ShifterImmOperand() argument
5083 Inst.addOperand(MCOperand::createImm(Val)); in DecodeT2ShifterImmOperand()
5087 static DecodeStatus DecodeSwap(MCInst &Inst, unsigned Insn, in DecodeSwap() argument
5095 return DecodeCPSInstruction(Inst, Insn, Address, Decoder); in DecodeSwap()
5102 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt, Address, Decoder))) in DecodeSwap()
5104 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt2, Address, Decoder))) in DecodeSwap()
5106 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) in DecodeSwap()
5108 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeSwap()
5114 static DecodeStatus DecodeVCVTD(MCInst &Inst, unsigned Insn, in DecodeVCVTD() argument
5134 Inst.setOpcode(ARM::VMOVv2f32); in DecodeVCVTD()
5139 Inst.setOpcode(ARM::VMOVv1i64); in DecodeVCVTD()
5141 Inst.setOpcode(ARM::VMOVv8i8); in DecodeVCVTD()
5146 Inst.setOpcode(ARM::VMVNv2i32); in DecodeVCVTD()
5148 Inst.setOpcode(ARM::VMOVv2i32); in DecodeVCVTD()
5153 Inst.setOpcode(ARM::VMVNv2i32); in DecodeVCVTD()
5155 Inst.setOpcode(ARM::VMOVv2i32); in DecodeVCVTD()
5159 return DecodeNEONModImmInstruction(Inst, Insn, Address, Decoder); in DecodeVCVTD()
5164 if (!Check(S, DecodeDPRRegisterClass(Inst, Vd, Address, Decoder))) in DecodeVCVTD()
5166 if (!Check(S, DecodeDPRRegisterClass(Inst, Vm, Address, Decoder))) in DecodeVCVTD()
5168 Inst.addOperand(MCOperand::createImm(64 - imm)); in DecodeVCVTD()
5173 static DecodeStatus DecodeVCVTQ(MCInst &Inst, unsigned Insn, in DecodeVCVTQ() argument
5193 Inst.setOpcode(ARM::VMOVv4f32); in DecodeVCVTQ()
5198 Inst.setOpcode(ARM::VMOVv2i64); in DecodeVCVTQ()
5200 Inst.setOpcode(ARM::VMOVv16i8); in DecodeVCVTQ()
5205 Inst.setOpcode(ARM::VMVNv4i32); in DecodeVCVTQ()
5207 Inst.setOpcode(ARM::VMOVv4i32); in DecodeVCVTQ()
5212 Inst.setOpcode(ARM::VMVNv4i32); in DecodeVCVTQ()
5214 Inst.setOpcode(ARM::VMOVv4i32); in DecodeVCVTQ()
5218 return DecodeNEONModImmInstruction(Inst, Insn, Address, Decoder); in DecodeVCVTQ()
5223 if (!Check(S, DecodeQPRRegisterClass(Inst, Vd, Address, Decoder))) in DecodeVCVTQ()
5225 if (!Check(S, DecodeQPRRegisterClass(Inst, Vm, Address, Decoder))) in DecodeVCVTQ()
5227 Inst.addOperand(MCOperand::createImm(64 - imm)); in DecodeVCVTQ()
5232 static DecodeStatus DecodeNEONComplexLane64Instruction(MCInst &Inst, in DecodeNEONComplexLane64Instruction() argument
5249 if (!Check(S, DestRegDecoder(Inst, Vd, Address, Decoder))) in DecodeNEONComplexLane64Instruction()
5251 if (!Check(S, DestRegDecoder(Inst, Vd, Address, Decoder))) in DecodeNEONComplexLane64Instruction()
5253 if (!Check(S, DestRegDecoder(Inst, Vn, Address, Decoder))) in DecodeNEONComplexLane64Instruction()
5255 if (!Check(S, DecodeDPRRegisterClass(Inst, Vm, Address, Decoder))) in DecodeNEONComplexLane64Instruction()
5259 Inst.addOperand(MCOperand::createImm(0)); in DecodeNEONComplexLane64Instruction()
5260 Inst.addOperand(MCOperand::createImm(rotate)); in DecodeNEONComplexLane64Instruction()
5265 static DecodeStatus DecodeLDR(MCInst &Inst, unsigned Val, in DecodeLDR() argument
5278 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt, Address, Decoder))) in DecodeLDR()
5280 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rn, Address, Decoder))) in DecodeLDR()
5282 if (!Check(S, DecodeAddrMode7Operand(Inst, Rn, Address, Decoder))) in DecodeLDR()
5284 if (!Check(S, DecodePostIdxReg(Inst, Rm, Address, Decoder))) in DecodeLDR()
5286 if (!Check(S, DecodePredicateOperand(Inst, Cond, Address, Decoder))) in DecodeLDR()
5292 static DecodeStatus DecoderForMRRC2AndMCRR2(MCInst &Inst, unsigned Val, in DecoderForMRRC2AndMCRR2() argument
5318 if (Inst.getOpcode() == ARM::MRRC2) { in DecoderForMRRC2AndMCRR2()
5319 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt, Address, Decoder))) in DecoderForMRRC2AndMCRR2()
5321 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt2, Address, Decoder))) in DecoderForMRRC2AndMCRR2()
5324 Inst.addOperand(MCOperand::createImm(cop)); in DecoderForMRRC2AndMCRR2()
5325 Inst.addOperand(MCOperand::createImm(opc1)); in DecoderForMRRC2AndMCRR2()
5326 if (Inst.getOpcode() == ARM::MCRR2) { in DecoderForMRRC2AndMCRR2()
5327 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt, Address, Decoder))) in DecoderForMRRC2AndMCRR2()
5329 if (!Check(S, DecodeGPRnopcRegisterClass(Inst, Rt2, Address, Decoder))) in DecoderForMRRC2AndMCRR2()
5332 Inst.addOperand(MCOperand::createImm(CRm)); in DecoderForMRRC2AndMCRR2()
5337 static DecodeStatus DecodeForVMRSandVMSR(MCInst &Inst, unsigned Val, in DecodeForVMRSandVMSR() argument
5349 Check(S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder)); in DecodeForVMRSandVMSR()
5351 Check(S, DecodeGPRnopcRegisterClass(Inst, Rt, Address, Decoder)); in DecodeForVMRSandVMSR()
5354 Inst.addOperand(MCOperand::createImm(ARMCC::AL)); in DecodeForVMRSandVMSR()
5355 Inst.addOperand(MCOperand::createReg(0)); in DecodeForVMRSandVMSR()
5358 if (!Check(S, DecodePredicateOperand(Inst, pred, Address, Decoder))) in DecodeForVMRSandVMSR()