Lines Matching refs:Inst

40 static DecodeStatus DecodeFPR128RegisterClass(MCInst &Inst,
43 static DecodeStatus DecodeFPR128_loRegisterClass(MCInst &Inst,
47 static DecodeStatus DecodeFPR64RegisterClass(MCInst &Inst, unsigned RegNo,
50 static DecodeStatus DecodeFPR32RegisterClass(MCInst &Inst, unsigned RegNo,
53 static DecodeStatus DecodeFPR16RegisterClass(MCInst &Inst, unsigned RegNo,
56 static DecodeStatus DecodeFPR8RegisterClass(MCInst &Inst, unsigned RegNo,
59 static DecodeStatus DecodeGPR64commonRegisterClass(MCInst &Inst, unsigned RegNo,
62 static DecodeStatus DecodeGPR64RegisterClass(MCInst &Inst, unsigned RegNo,
65 static DecodeStatus DecodeGPR64spRegisterClass(MCInst &Inst,
68 static DecodeStatus DecodeGPR32RegisterClass(MCInst &Inst, unsigned RegNo,
71 static DecodeStatus DecodeGPR32spRegisterClass(MCInst &Inst,
74 static DecodeStatus DecodeQQRegisterClass(MCInst &Inst, unsigned RegNo,
77 static DecodeStatus DecodeQQQRegisterClass(MCInst &Inst, unsigned RegNo,
80 static DecodeStatus DecodeQQQQRegisterClass(MCInst &Inst, unsigned RegNo,
83 static DecodeStatus DecodeDDRegisterClass(MCInst &Inst, unsigned RegNo,
86 static DecodeStatus DecodeDDDRegisterClass(MCInst &Inst, unsigned RegNo,
89 static DecodeStatus DecodeDDDDRegisterClass(MCInst &Inst, unsigned RegNo,
92 static DecodeStatus DecodeZPRRegisterClass(MCInst &Inst, unsigned RegNo,
95 static DecodeStatus DecodeZPR_4bRegisterClass(MCInst &Inst, unsigned RegNo,
98 static DecodeStatus DecodeZPR_3bRegisterClass(MCInst &Inst, unsigned RegNo,
101 static DecodeStatus DecodeZPR2RegisterClass(MCInst &Inst, unsigned RegNo,
104 static DecodeStatus DecodeZPR3RegisterClass(MCInst &Inst, unsigned RegNo,
107 static DecodeStatus DecodeZPR4RegisterClass(MCInst &Inst, unsigned RegNo,
110 static DecodeStatus DecodePPRRegisterClass(MCInst &Inst, unsigned RegNo,
113 static DecodeStatus DecodePPR_3bRegisterClass(MCInst &Inst, unsigned RegNo,
117 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm,
120 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm,
123 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm,
125 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm,
127 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm,
129 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm,
131 static DecodeStatus DecodeThreeAddrSRegInstruction(MCInst &Inst, uint32_t insn,
134 static DecodeStatus DecodeMoveImmInstruction(MCInst &Inst, uint32_t insn,
137 static DecodeStatus DecodeUnsignedLdStInstruction(MCInst &Inst, uint32_t insn,
140 static DecodeStatus DecodeSignedLdStInstruction(MCInst &Inst, uint32_t insn,
143 static DecodeStatus DecodeExclusiveLdStInstruction(MCInst &Inst, uint32_t insn,
146 static DecodeStatus DecodePairLdStInstruction(MCInst &Inst, uint32_t insn,
149 static DecodeStatus DecodeAddSubERegInstruction(MCInst &Inst, uint32_t insn,
152 static DecodeStatus DecodeLogicalImmInstruction(MCInst &Inst, uint32_t insn,
155 static DecodeStatus DecodeModImmInstruction(MCInst &Inst, uint32_t insn,
158 static DecodeStatus DecodeModImmTiedInstruction(MCInst &Inst, uint32_t insn,
161 static DecodeStatus DecodeAdrInstruction(MCInst &Inst, uint32_t insn,
163 static DecodeStatus DecodeAddSubImmShift(MCInst &Inst, uint32_t insn,
165 static DecodeStatus DecodeUnconditionalBranch(MCInst &Inst, uint32_t insn,
168 static DecodeStatus DecodeSystemPStateInstruction(MCInst &Inst, uint32_t insn,
171 static DecodeStatus DecodeTestAndBranch(MCInst &Inst, uint32_t insn,
174 static DecodeStatus DecodeFMOVLaneInstruction(MCInst &Inst, unsigned Insn,
177 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm,
179 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm,
182 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm,
184 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm,
187 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm,
189 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm,
192 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm,
194 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm,
196 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm,
198 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm,
200 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm,
202 static DecodeStatus DecodeWSeqPairsClassRegisterClass(MCInst &Inst,
206 static DecodeStatus DecodeXSeqPairsClassRegisterClass(MCInst &Inst,
210 static DecodeStatus DecodeSVELogicalImmInstruction(llvm::MCInst &Inst,
215 static DecodeStatus DecodeSImm(llvm::MCInst &Inst, uint64_t Imm,
218 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm,
220 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm,
223 static DecodeStatus DecodeLoadAllocTagArrayInstruction(MCInst &Inst,
312 static DecodeStatus DecodeFPR128RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR128RegisterClass() argument
319 Inst.addOperand(MCOperand::createReg(Register)); in DecodeFPR128RegisterClass()
323 static DecodeStatus DecodeFPR128_loRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR128_loRegisterClass() argument
328 return DecodeFPR128RegisterClass(Inst, RegNo, Addr, Decoder); in DecodeFPR128_loRegisterClass()
341 static DecodeStatus DecodeFPR64RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR64RegisterClass() argument
348 Inst.addOperand(MCOperand::createReg(Register)); in DecodeFPR64RegisterClass()
362 static DecodeStatus DecodeFPR32RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR32RegisterClass() argument
369 Inst.addOperand(MCOperand::createReg(Register)); in DecodeFPR32RegisterClass()
383 static DecodeStatus DecodeFPR16RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR16RegisterClass() argument
390 Inst.addOperand(MCOperand::createReg(Register)); in DecodeFPR16RegisterClass()
404 static DecodeStatus DecodeFPR8RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeFPR8RegisterClass() argument
411 Inst.addOperand(MCOperand::createReg(Register)); in DecodeFPR8RegisterClass()
425 static DecodeStatus DecodeGPR64commonRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR64commonRegisterClass() argument
432 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR64commonRegisterClass()
436 static DecodeStatus DecodeGPR64RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR64RegisterClass() argument
443 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR64RegisterClass()
447 static DecodeStatus DecodeGPR64spRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR64spRegisterClass() argument
455 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR64spRegisterClass()
469 static DecodeStatus DecodeGPR32RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR32RegisterClass() argument
476 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR32RegisterClass()
480 static DecodeStatus DecodeGPR32spRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeGPR32spRegisterClass() argument
489 Inst.addOperand(MCOperand::createReg(Register)); in DecodeGPR32spRegisterClass()
503 static DecodeStatus DecodeZPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPRRegisterClass() argument
510 Inst.addOperand(MCOperand::createReg(Register)); in DecodeZPRRegisterClass()
514 static DecodeStatus DecodeZPR_4bRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPR_4bRegisterClass() argument
519 return DecodeZPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeZPR_4bRegisterClass()
522 static DecodeStatus DecodeZPR_3bRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPR_3bRegisterClass() argument
527 return DecodeZPRRegisterClass(Inst, RegNo, Address, Decoder); in DecodeZPR_3bRegisterClass()
541 static DecodeStatus DecodeZPR2RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPR2RegisterClass() argument
547 Inst.addOperand(MCOperand::createReg(Register)); in DecodeZPR2RegisterClass()
565 static DecodeStatus DecodeZPR3RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPR3RegisterClass() argument
571 Inst.addOperand(MCOperand::createReg(Register)); in DecodeZPR3RegisterClass()
589 static DecodeStatus DecodeZPR4RegisterClass(MCInst &Inst, unsigned RegNo, in DecodeZPR4RegisterClass() argument
595 Inst.addOperand(MCOperand::createReg(Register)); in DecodeZPR4RegisterClass()
606 static DecodeStatus DecodePPRRegisterClass(MCInst &Inst, unsigned RegNo, in DecodePPRRegisterClass() argument
612 Inst.addOperand(MCOperand::createReg(Register)); in DecodePPRRegisterClass()
616 static DecodeStatus DecodePPR_3bRegisterClass(MCInst &Inst, unsigned RegNo, in DecodePPR_3bRegisterClass() argument
623 return DecodePPRRegisterClass(Inst, RegNo, Addr, Decoder); in DecodePPR_3bRegisterClass()
636 static DecodeStatus DecodeVectorRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeVectorRegisterClass() argument
643 Inst.addOperand(MCOperand::createReg(Register)); in DecodeVectorRegisterClass()
658 static DecodeStatus DecodeQQRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeQQRegisterClass() argument
663 Inst.addOperand(MCOperand::createReg(Register)); in DecodeQQRegisterClass()
681 static DecodeStatus DecodeQQQRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeQQQRegisterClass() argument
686 Inst.addOperand(MCOperand::createReg(Register)); in DecodeQQQRegisterClass()
704 static DecodeStatus DecodeQQQQRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeQQQQRegisterClass() argument
710 Inst.addOperand(MCOperand::createReg(Register)); in DecodeQQQQRegisterClass()
725 static DecodeStatus DecodeDDRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDDRegisterClass() argument
730 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDDRegisterClass()
748 static DecodeStatus DecodeDDDRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDDDRegisterClass() argument
753 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDDDRegisterClass()
771 static DecodeStatus DecodeDDDDRegisterClass(MCInst &Inst, unsigned RegNo, in DecodeDDDDRegisterClass() argument
777 Inst.addOperand(MCOperand::createReg(Register)); in DecodeDDDDRegisterClass()
781 static DecodeStatus DecodeFixedPointScaleImm32(MCInst &Inst, unsigned Imm, in DecodeFixedPointScaleImm32() argument
786 Inst.addOperand(MCOperand::createImm(64 - Imm)); in DecodeFixedPointScaleImm32()
790 static DecodeStatus DecodeFixedPointScaleImm64(MCInst &Inst, unsigned Imm, in DecodeFixedPointScaleImm64() argument
793 Inst.addOperand(MCOperand::createImm(64 - Imm)); in DecodeFixedPointScaleImm64()
797 static DecodeStatus DecodePCRelLabel19(MCInst &Inst, unsigned Imm, in DecodePCRelLabel19() argument
807 if (!Dis->tryAddingSymbolicOperand(Inst, ImmVal * 4, Addr, in DecodePCRelLabel19()
808 Inst.getOpcode() != AArch64::LDRXl, 0, 4)) in DecodePCRelLabel19()
809 Inst.addOperand(MCOperand::createImm(ImmVal)); in DecodePCRelLabel19()
813 static DecodeStatus DecodeMemExtend(MCInst &Inst, unsigned Imm, in DecodeMemExtend() argument
815 Inst.addOperand(MCOperand::createImm((Imm >> 1) & 1)); in DecodeMemExtend()
816 Inst.addOperand(MCOperand::createImm(Imm & 1)); in DecodeMemExtend()
820 static DecodeStatus DecodeMRSSystemRegister(MCInst &Inst, unsigned Imm, in DecodeMRSSystemRegister() argument
823 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeMRSSystemRegister()
830 static DecodeStatus DecodeMSRSystemRegister(MCInst &Inst, unsigned Imm, in DecodeMSRSystemRegister() argument
833 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeMSRSystemRegister()
838 static DecodeStatus DecodeFMOVLaneInstruction(MCInst &Inst, unsigned Insn, in DecodeFMOVLaneInstruction() argument
848 DecodeFPR128RegisterClass(Inst, Rd, Address, Decoder); in DecodeFMOVLaneInstruction()
849 DecodeGPR64RegisterClass(Inst, Rn, Address, Decoder); in DecodeFMOVLaneInstruction()
851 DecodeGPR64RegisterClass(Inst, Rd, Address, Decoder); in DecodeFMOVLaneInstruction()
852 DecodeFPR128RegisterClass(Inst, Rn, Address, Decoder); in DecodeFMOVLaneInstruction()
856 Inst.addOperand(MCOperand::createImm(1)); in DecodeFMOVLaneInstruction()
861 static DecodeStatus DecodeVecShiftRImm(MCInst &Inst, unsigned Imm, in DecodeVecShiftRImm() argument
863 Inst.addOperand(MCOperand::createImm(Add - Imm)); in DecodeVecShiftRImm()
867 static DecodeStatus DecodeVecShiftLImm(MCInst &Inst, unsigned Imm, in DecodeVecShiftLImm() argument
869 Inst.addOperand(MCOperand::createImm((Imm + Add) & (Add - 1))); in DecodeVecShiftLImm()
873 static DecodeStatus DecodeVecShiftR64Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR64Imm() argument
875 return DecodeVecShiftRImm(Inst, Imm, 64); in DecodeVecShiftR64Imm()
878 static DecodeStatus DecodeVecShiftR64ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR64ImmNarrow() argument
881 return DecodeVecShiftRImm(Inst, Imm | 0x20, 64); in DecodeVecShiftR64ImmNarrow()
884 static DecodeStatus DecodeVecShiftR32Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR32Imm() argument
886 return DecodeVecShiftRImm(Inst, Imm, 32); in DecodeVecShiftR32Imm()
889 static DecodeStatus DecodeVecShiftR32ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR32ImmNarrow() argument
892 return DecodeVecShiftRImm(Inst, Imm | 0x10, 32); in DecodeVecShiftR32ImmNarrow()
895 static DecodeStatus DecodeVecShiftR16Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR16Imm() argument
897 return DecodeVecShiftRImm(Inst, Imm, 16); in DecodeVecShiftR16Imm()
900 static DecodeStatus DecodeVecShiftR16ImmNarrow(MCInst &Inst, unsigned Imm, in DecodeVecShiftR16ImmNarrow() argument
903 return DecodeVecShiftRImm(Inst, Imm | 0x8, 16); in DecodeVecShiftR16ImmNarrow()
906 static DecodeStatus DecodeVecShiftR8Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftR8Imm() argument
908 return DecodeVecShiftRImm(Inst, Imm, 8); in DecodeVecShiftR8Imm()
911 static DecodeStatus DecodeVecShiftL64Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL64Imm() argument
913 return DecodeVecShiftLImm(Inst, Imm, 64); in DecodeVecShiftL64Imm()
916 static DecodeStatus DecodeVecShiftL32Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL32Imm() argument
918 return DecodeVecShiftLImm(Inst, Imm, 32); in DecodeVecShiftL32Imm()
921 static DecodeStatus DecodeVecShiftL16Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL16Imm() argument
923 return DecodeVecShiftLImm(Inst, Imm, 16); in DecodeVecShiftL16Imm()
926 static DecodeStatus DecodeVecShiftL8Imm(MCInst &Inst, unsigned Imm, in DecodeVecShiftL8Imm() argument
928 return DecodeVecShiftLImm(Inst, Imm, 8); in DecodeVecShiftL8Imm()
931 static DecodeStatus DecodeThreeAddrSRegInstruction(MCInst &Inst, uint32_t insn, in DecodeThreeAddrSRegInstruction() argument
940 switch (Inst.getOpcode()) { in DecodeThreeAddrSRegInstruction()
962 DecodeGPR32RegisterClass(Inst, Rd, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
963 DecodeGPR32RegisterClass(Inst, Rn, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
964 DecodeGPR32RegisterClass(Inst, Rm, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
983 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
984 DecodeGPR64RegisterClass(Inst, Rn, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
985 DecodeGPR64RegisterClass(Inst, Rm, Addr, Decoder); in DecodeThreeAddrSRegInstruction()
989 Inst.addOperand(MCOperand::createImm(shift)); in DecodeThreeAddrSRegInstruction()
993 static DecodeStatus DecodeMoveImmInstruction(MCInst &Inst, uint32_t insn, in DecodeMoveImmInstruction() argument
1000 switch (Inst.getOpcode()) { in DecodeMoveImmInstruction()
1008 DecodeGPR32RegisterClass(Inst, Rd, Addr, Decoder); in DecodeMoveImmInstruction()
1013 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeMoveImmInstruction()
1017 if (Inst.getOpcode() == AArch64::MOVKWi || in DecodeMoveImmInstruction()
1018 Inst.getOpcode() == AArch64::MOVKXi) in DecodeMoveImmInstruction()
1019 Inst.addOperand(Inst.getOperand(0)); in DecodeMoveImmInstruction()
1021 Inst.addOperand(MCOperand::createImm(imm)); in DecodeMoveImmInstruction()
1022 Inst.addOperand(MCOperand::createImm(shift)); in DecodeMoveImmInstruction()
1026 static DecodeStatus DecodeUnsignedLdStInstruction(MCInst &Inst, uint32_t insn, in DecodeUnsignedLdStInstruction() argument
1035 switch (Inst.getOpcode()) { in DecodeUnsignedLdStInstruction()
1040 Inst.addOperand(MCOperand::createImm(Rt)); in DecodeUnsignedLdStInstruction()
1050 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1057 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1061 DecodeFPR128RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1065 DecodeFPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1069 DecodeFPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1073 DecodeFPR16RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1077 DecodeFPR8RegisterClass(Inst, Rt, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1081 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeUnsignedLdStInstruction()
1082 if (!Dis->tryAddingSymbolicOperand(Inst, offset, Addr, Fail, 0, 4)) in DecodeUnsignedLdStInstruction()
1083 Inst.addOperand(MCOperand::createImm(offset)); in DecodeUnsignedLdStInstruction()
1087 static DecodeStatus DecodeSignedLdStInstruction(MCInst &Inst, uint32_t insn, in DecodeSignedLdStInstruction() argument
1100 switch (Inst.getOpcode()) { in DecodeSignedLdStInstruction()
1149 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeSignedLdStInstruction()
1153 switch (Inst.getOpcode()) { in DecodeSignedLdStInstruction()
1158 Inst.addOperand(MCOperand::createImm(Rt)); in DecodeSignedLdStInstruction()
1200 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1227 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1235 DecodeFPR128RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1243 DecodeFPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1251 DecodeFPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1259 DecodeFPR16RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1267 DecodeFPR8RegisterClass(Inst, Rt, Addr, Decoder); in DecodeSignedLdStInstruction()
1271 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeSignedLdStInstruction()
1272 Inst.addOperand(MCOperand::createImm(offset)); in DecodeSignedLdStInstruction()
1285 static DecodeStatus DecodeExclusiveLdStInstruction(MCInst &Inst, uint32_t insn, in DecodeExclusiveLdStInstruction() argument
1293 unsigned Opcode = Inst.getOpcode(); in DecodeExclusiveLdStInstruction()
1303 DecodeGPR32RegisterClass(Inst, Rs, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1323 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1327 DecodeGPR32RegisterClass(Inst, Rs, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1335 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1339 DecodeGPR32RegisterClass(Inst, Rs, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1343 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1344 DecodeGPR32RegisterClass(Inst, Rt2, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1348 DecodeGPR32RegisterClass(Inst, Rs, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1352 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1353 DecodeGPR64RegisterClass(Inst, Rt2, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1357 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeExclusiveLdStInstruction()
1368 static DecodeStatus DecodePairLdStInstruction(MCInst &Inst, uint32_t insn, in DecodePairLdStInstruction() argument
1382 unsigned Opcode = Inst.getOpcode(); in DecodePairLdStInstruction()
1413 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodePairLdStInstruction()
1436 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodePairLdStInstruction()
1437 DecodeGPR64RegisterClass(Inst, Rt2, Addr, Decoder); in DecodePairLdStInstruction()
1449 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodePairLdStInstruction()
1450 DecodeGPR32RegisterClass(Inst, Rt2, Addr, Decoder); in DecodePairLdStInstruction()
1460 DecodeFPR128RegisterClass(Inst, Rt, Addr, Decoder); in DecodePairLdStInstruction()
1461 DecodeFPR128RegisterClass(Inst, Rt2, Addr, Decoder); in DecodePairLdStInstruction()
1471 DecodeFPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodePairLdStInstruction()
1472 DecodeFPR64RegisterClass(Inst, Rt2, Addr, Decoder); in DecodePairLdStInstruction()
1482 DecodeFPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodePairLdStInstruction()
1483 DecodeFPR32RegisterClass(Inst, Rt2, Addr, Decoder); in DecodePairLdStInstruction()
1487 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodePairLdStInstruction()
1488 Inst.addOperand(MCOperand::createImm(offset)); in DecodePairLdStInstruction()
1502 static DecodeStatus DecodeAddSubERegInstruction(MCInst &Inst, uint32_t insn, in DecodeAddSubERegInstruction() argument
1514 switch (Inst.getOpcode()) { in DecodeAddSubERegInstruction()
1519 DecodeGPR32spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1520 DecodeGPR32spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1521 DecodeGPR32RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1525 DecodeGPR32RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1526 DecodeGPR32spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1527 DecodeGPR32RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1531 DecodeGPR64spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1532 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1533 DecodeGPR32RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1537 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1538 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1539 DecodeGPR32RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1543 DecodeGPR64spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1544 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1545 DecodeGPR64RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1549 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubERegInstruction()
1550 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubERegInstruction()
1551 DecodeGPR64RegisterClass(Inst, Rm, Addr, Decoder); in DecodeAddSubERegInstruction()
1555 Inst.addOperand(MCOperand::createImm(extend)); in DecodeAddSubERegInstruction()
1559 static DecodeStatus DecodeLogicalImmInstruction(MCInst &Inst, uint32_t insn, in DecodeLogicalImmInstruction() argument
1568 if (Inst.getOpcode() == AArch64::ANDSXri) in DecodeLogicalImmInstruction()
1569 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeLogicalImmInstruction()
1571 DecodeGPR64spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeLogicalImmInstruction()
1572 DecodeGPR64RegisterClass(Inst, Rn, Addr, Decoder); in DecodeLogicalImmInstruction()
1577 if (Inst.getOpcode() == AArch64::ANDSWri) in DecodeLogicalImmInstruction()
1578 DecodeGPR32RegisterClass(Inst, Rd, Addr, Decoder); in DecodeLogicalImmInstruction()
1580 DecodeGPR32spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeLogicalImmInstruction()
1581 DecodeGPR32RegisterClass(Inst, Rn, Addr, Decoder); in DecodeLogicalImmInstruction()
1586 Inst.addOperand(MCOperand::createImm(imm)); in DecodeLogicalImmInstruction()
1590 static DecodeStatus DecodeModImmInstruction(MCInst &Inst, uint32_t insn, in DecodeModImmInstruction() argument
1598 if (Inst.getOpcode() == AArch64::MOVID) in DecodeModImmInstruction()
1599 DecodeFPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeModImmInstruction()
1601 DecodeVectorRegisterClass(Inst, Rd, Addr, Decoder); in DecodeModImmInstruction()
1603 Inst.addOperand(MCOperand::createImm(imm)); in DecodeModImmInstruction()
1605 switch (Inst.getOpcode()) { in DecodeModImmInstruction()
1616 Inst.addOperand(MCOperand::createImm((cmode & 6) << 2)); in DecodeModImmInstruction()
1622 Inst.addOperand(MCOperand::createImm(cmode & 1 ? 0x110 : 0x108)); in DecodeModImmInstruction()
1629 static DecodeStatus DecodeModImmTiedInstruction(MCInst &Inst, uint32_t insn, in DecodeModImmTiedInstruction() argument
1638 DecodeVectorRegisterClass(Inst, Rd, Addr, Decoder); in DecodeModImmTiedInstruction()
1639 DecodeVectorRegisterClass(Inst, Rd, Addr, Decoder); in DecodeModImmTiedInstruction()
1641 Inst.addOperand(MCOperand::createImm(imm)); in DecodeModImmTiedInstruction()
1642 Inst.addOperand(MCOperand::createImm((cmode & 6) << 2)); in DecodeModImmTiedInstruction()
1647 static DecodeStatus DecodeAdrInstruction(MCInst &Inst, uint32_t insn, in DecodeAdrInstruction() argument
1659 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAdrInstruction()
1660 if (!Dis->tryAddingSymbolicOperand(Inst, imm, Addr, Fail, 0, 4)) in DecodeAdrInstruction()
1661 Inst.addOperand(MCOperand::createImm(imm)); in DecodeAdrInstruction()
1666 static DecodeStatus DecodeAddSubImmShift(MCInst &Inst, uint32_t insn, in DecodeAddSubImmShift() argument
1684 DecodeGPR64spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubImmShift()
1686 DecodeGPR64RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubImmShift()
1687 DecodeGPR64spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubImmShift()
1690 DecodeGPR32spRegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubImmShift()
1692 DecodeGPR32RegisterClass(Inst, Rd, Addr, Decoder); in DecodeAddSubImmShift()
1693 DecodeGPR32spRegisterClass(Inst, Rn, Addr, Decoder); in DecodeAddSubImmShift()
1696 if (!Dis->tryAddingSymbolicOperand(Inst, Imm, Addr, Fail, 0, 4)) in DecodeAddSubImmShift()
1697 Inst.addOperand(MCOperand::createImm(ImmVal)); in DecodeAddSubImmShift()
1698 Inst.addOperand(MCOperand::createImm(12 * ShifterVal)); in DecodeAddSubImmShift()
1702 static DecodeStatus DecodeUnconditionalBranch(MCInst &Inst, uint32_t insn, in DecodeUnconditionalBranch() argument
1713 if (!Dis->tryAddingSymbolicOperand(Inst, imm * 4, Addr, true, 0, 4)) in DecodeUnconditionalBranch()
1714 Inst.addOperand(MCOperand::createImm(imm)); in DecodeUnconditionalBranch()
1719 static DecodeStatus DecodeSystemPStateInstruction(MCInst &Inst, uint32_t insn, in DecodeSystemPStateInstruction() argument
1738 Inst.addOperand(MCOperand::createImm(pstate_field)); in DecodeSystemPStateInstruction()
1739 Inst.addOperand(MCOperand::createImm(crm)); in DecodeSystemPStateInstruction()
1749 static DecodeStatus DecodeTestAndBranch(MCInst &Inst, uint32_t insn, in DecodeTestAndBranch() argument
1763 DecodeGPR32RegisterClass(Inst, Rt, Addr, Decoder); in DecodeTestAndBranch()
1765 DecodeGPR64RegisterClass(Inst, Rt, Addr, Decoder); in DecodeTestAndBranch()
1766 Inst.addOperand(MCOperand::createImm(bit)); in DecodeTestAndBranch()
1767 if (!Dis->tryAddingSymbolicOperand(Inst, dst * 4, Addr, true, 0, 4)) in DecodeTestAndBranch()
1768 Inst.addOperand(MCOperand::createImm(dst)); in DecodeTestAndBranch()
1773 static DecodeStatus DecodeGPRSeqPairsClassRegisterClass(MCInst &Inst, in DecodeGPRSeqPairsClassRegisterClass() argument
1783 Inst.addOperand(MCOperand::createReg(Reg)); in DecodeGPRSeqPairsClassRegisterClass()
1787 static DecodeStatus DecodeWSeqPairsClassRegisterClass(MCInst &Inst, in DecodeWSeqPairsClassRegisterClass() argument
1791 return DecodeGPRSeqPairsClassRegisterClass(Inst, in DecodeWSeqPairsClassRegisterClass()
1796 static DecodeStatus DecodeXSeqPairsClassRegisterClass(MCInst &Inst, in DecodeXSeqPairsClassRegisterClass() argument
1800 return DecodeGPRSeqPairsClassRegisterClass(Inst, in DecodeXSeqPairsClassRegisterClass()
1805 static DecodeStatus DecodeSVELogicalImmInstruction(llvm::MCInst &Inst, in DecodeSVELogicalImmInstruction() argument
1815 DecodeZPRRegisterClass(Inst, Zdn, Addr, Decoder); in DecodeSVELogicalImmInstruction()
1816 if (Inst.getOpcode() != AArch64::DUPM_ZI) in DecodeSVELogicalImmInstruction()
1817 DecodeZPRRegisterClass(Inst, Zdn, Addr, Decoder); in DecodeSVELogicalImmInstruction()
1818 Inst.addOperand(MCOperand::createImm(imm)); in DecodeSVELogicalImmInstruction()
1823 static DecodeStatus DecodeSImm(llvm::MCInst &Inst, uint64_t Imm, in DecodeSImm() argument
1832 Inst.addOperand(MCOperand::createImm(Imm)); in DecodeSImm()
1838 static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, in DecodeImm8OptLsl() argument
1844 Inst.addOperand(MCOperand::createImm(Val)); in DecodeImm8OptLsl()
1845 Inst.addOperand(MCOperand::createImm(Shift)); in DecodeImm8OptLsl()
1850 static DecodeStatus DecodeSVEIncDecImm(MCInst &Inst, unsigned Imm, in DecodeSVEIncDecImm() argument
1852 Inst.addOperand(MCOperand::createImm(Imm + 1)); in DecodeSVEIncDecImm()
1856 static DecodeStatus DecodeLoadAllocTagArrayInstruction(MCInst &Inst, in DecodeLoadAllocTagArrayInstruction() argument
1864 DecodeGPR64spRegisterClass(Inst, Rn, address, Decoder); in DecodeLoadAllocTagArrayInstruction()
1865 DecodeGPR64RegisterClass(Inst, Rt, address, Decoder); in DecodeLoadAllocTagArrayInstruction()
1868 Inst.addOperand(Inst.getOperand(0)); in DecodeLoadAllocTagArrayInstruction()
1871 if (Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg()) { in DecodeLoadAllocTagArrayInstruction()