Lines Matching refs:Inst
237 for (const MCInst &Inst : PendingConditionalInsts) { in flushPendingInstructions() local
238 Out.EmitInstruction(Inst, getSTI()); in flushPendingInstructions()
378 bool validatetLDMRegList(const MCInst &Inst, const OperandVector &Operands,
380 bool validatetSTMRegList(const MCInst &Inst, const OperandVector &Operands,
557 void cvtThumbMultiply(MCInst &Inst, const OperandVector &);
558 void cvtThumbBranches(MCInst &Inst, const OperandVector &);
560 bool validateInstruction(MCInst &Inst, const OperandVector &Ops);
561 bool processInstruction(MCInst &Inst, const OperandVector &Ops, MCStreamer &Out);
564 bool isITBlockTerminator(MCInst &Inst) const;
566 bool validateLDRDSTRD(MCInst &Inst, const OperandVector &Operands,
611 unsigned checkTargetMatchPredicate(MCInst &Inst) override;
617 unsigned MatchInstruction(OperandVector &Operands, MCInst &Inst,
1995 void addExpr(MCInst &Inst, const MCExpr *Expr) const { in addExpr() argument
1998 Inst.addOperand(MCOperand::createImm(0)); in addExpr()
2000 Inst.addOperand(MCOperand::createImm(CE->getValue())); in addExpr()
2002 Inst.addOperand(MCOperand::createExpr(Expr)); in addExpr()
2005 void addARMBranchTargetOperands(MCInst &Inst, unsigned N) const { in addARMBranchTargetOperands() argument
2007 addExpr(Inst, getImm()); in addARMBranchTargetOperands()
2010 void addThumbBranchTargetOperands(MCInst &Inst, unsigned N) const { in addThumbBranchTargetOperands() argument
2012 addExpr(Inst, getImm()); in addThumbBranchTargetOperands()
2015 void addCondCodeOperands(MCInst &Inst, unsigned N) const { in addCondCodeOperands() argument
2017 Inst.addOperand(MCOperand::createImm(unsigned(getCondCode()))); in addCondCodeOperands()
2019 Inst.addOperand(MCOperand::createReg(RegNum)); in addCondCodeOperands()
2022 void addCoprocNumOperands(MCInst &Inst, unsigned N) const { in addCoprocNumOperands() argument
2024 Inst.addOperand(MCOperand::createImm(getCoproc())); in addCoprocNumOperands()
2027 void addCoprocRegOperands(MCInst &Inst, unsigned N) const { in addCoprocRegOperands() argument
2029 Inst.addOperand(MCOperand::createImm(getCoproc())); in addCoprocRegOperands()
2032 void addCoprocOptionOperands(MCInst &Inst, unsigned N) const { in addCoprocOptionOperands() argument
2034 Inst.addOperand(MCOperand::createImm(CoprocOption.Val)); in addCoprocOptionOperands()
2037 void addITMaskOperands(MCInst &Inst, unsigned N) const { in addITMaskOperands() argument
2039 Inst.addOperand(MCOperand::createImm(ITMask.Mask)); in addITMaskOperands()
2042 void addITCondCodeOperands(MCInst &Inst, unsigned N) const { in addITCondCodeOperands() argument
2044 Inst.addOperand(MCOperand::createImm(unsigned(getCondCode()))); in addITCondCodeOperands()
2047 void addCCOutOperands(MCInst &Inst, unsigned N) const { in addCCOutOperands() argument
2049 Inst.addOperand(MCOperand::createReg(getReg())); in addCCOutOperands()
2052 void addRegOperands(MCInst &Inst, unsigned N) const { in addRegOperands() argument
2054 Inst.addOperand(MCOperand::createReg(getReg())); in addRegOperands()
2057 void addRegShiftedRegOperands(MCInst &Inst, unsigned N) const { in addRegShiftedRegOperands() argument
2061 Inst.addOperand(MCOperand::createReg(RegShiftedReg.SrcReg)); in addRegShiftedRegOperands()
2062 Inst.addOperand(MCOperand::createReg(RegShiftedReg.ShiftReg)); in addRegShiftedRegOperands()
2063 Inst.addOperand(MCOperand::createImm( in addRegShiftedRegOperands()
2067 void addRegShiftedImmOperands(MCInst &Inst, unsigned N) const { in addRegShiftedImmOperands() argument
2071 Inst.addOperand(MCOperand::createReg(RegShiftedImm.SrcReg)); in addRegShiftedImmOperands()
2074 Inst.addOperand(MCOperand::createImm( in addRegShiftedImmOperands()
2078 void addShifterImmOperands(MCInst &Inst, unsigned N) const { in addShifterImmOperands() argument
2080 Inst.addOperand(MCOperand::createImm((ShifterImm.isASR << 5) | in addShifterImmOperands()
2084 void addRegListOperands(MCInst &Inst, unsigned N) const { in addRegListOperands() argument
2089 Inst.addOperand(MCOperand::createReg(*I)); in addRegListOperands()
2092 void addDPRRegListOperands(MCInst &Inst, unsigned N) const { in addDPRRegListOperands() argument
2093 addRegListOperands(Inst, N); in addDPRRegListOperands()
2096 void addSPRRegListOperands(MCInst &Inst, unsigned N) const { in addSPRRegListOperands() argument
2097 addRegListOperands(Inst, N); in addSPRRegListOperands()
2100 void addRotImmOperands(MCInst &Inst, unsigned N) const { in addRotImmOperands() argument
2103 Inst.addOperand(MCOperand::createImm(RotImm.Imm >> 3)); in addRotImmOperands()
2106 void addModImmOperands(MCInst &Inst, unsigned N) const { in addModImmOperands() argument
2111 return addImmOperands(Inst, N); in addModImmOperands()
2113 Inst.addOperand(MCOperand::createImm(ModImm.Bits | (ModImm.Rot << 7))); in addModImmOperands()
2116 void addModImmNotOperands(MCInst &Inst, unsigned N) const { in addModImmNotOperands() argument
2120 Inst.addOperand(MCOperand::createImm(Enc)); in addModImmNotOperands()
2123 void addModImmNegOperands(MCInst &Inst, unsigned N) const { in addModImmNegOperands() argument
2127 Inst.addOperand(MCOperand::createImm(Enc)); in addModImmNegOperands()
2130 void addThumbModImmNeg8_255Operands(MCInst &Inst, unsigned N) const { in addThumbModImmNeg8_255Operands() argument
2134 Inst.addOperand(MCOperand::createImm(Val)); in addThumbModImmNeg8_255Operands()
2137 void addThumbModImmNeg1_7Operands(MCInst &Inst, unsigned N) const { in addThumbModImmNeg1_7Operands() argument
2141 Inst.addOperand(MCOperand::createImm(Val)); in addThumbModImmNeg1_7Operands()
2144 void addBitfieldOperands(MCInst &Inst, unsigned N) const { in addBitfieldOperands() argument
2152 Inst.addOperand(MCOperand::createImm(Mask)); in addBitfieldOperands()
2155 void addImmOperands(MCInst &Inst, unsigned N) const { in addImmOperands() argument
2157 addExpr(Inst, getImm()); in addImmOperands()
2160 void addFBits16Operands(MCInst &Inst, unsigned N) const { in addFBits16Operands() argument
2163 Inst.addOperand(MCOperand::createImm(16 - CE->getValue())); in addFBits16Operands()
2166 void addFBits32Operands(MCInst &Inst, unsigned N) const { in addFBits32Operands() argument
2169 Inst.addOperand(MCOperand::createImm(32 - CE->getValue())); in addFBits32Operands()
2172 void addFPImmOperands(MCInst &Inst, unsigned N) const { in addFPImmOperands() argument
2176 Inst.addOperand(MCOperand::createImm(Val)); in addFPImmOperands()
2179 void addImm8s4Operands(MCInst &Inst, unsigned N) const { in addImm8s4Operands() argument
2184 Inst.addOperand(MCOperand::createImm(CE->getValue())); in addImm8s4Operands()
2187 void addImm0_1020s4Operands(MCInst &Inst, unsigned N) const { in addImm0_1020s4Operands() argument
2192 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4)); in addImm0_1020s4Operands()
2195 void addImm0_508s4NegOperands(MCInst &Inst, unsigned N) const { in addImm0_508s4NegOperands() argument
2200 Inst.addOperand(MCOperand::createImm(-(CE->getValue() / 4))); in addImm0_508s4NegOperands()
2203 void addImm0_508s4Operands(MCInst &Inst, unsigned N) const { in addImm0_508s4Operands() argument
2208 Inst.addOperand(MCOperand::createImm(CE->getValue() / 4)); in addImm0_508s4Operands()
2211 void addImm1_16Operands(MCInst &Inst, unsigned N) const { in addImm1_16Operands() argument
2216 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1)); in addImm1_16Operands()
2219 void addImm1_32Operands(MCInst &Inst, unsigned N) const { in addImm1_32Operands() argument
2224 Inst.addOperand(MCOperand::createImm(CE->getValue() - 1)); in addImm1_32Operands()
2227 void addImmThumbSROperands(MCInst &Inst, unsigned N) const { in addImmThumbSROperands() argument
2233 Inst.addOperand(MCOperand::createImm((Imm == 32 ? 0 : Imm))); in addImmThumbSROperands()
2236 void addPKHASRImmOperands(MCInst &Inst, unsigned N) const { in addPKHASRImmOperands() argument
2242 Inst.addOperand(MCOperand::createImm(Val == 32 ? 0 : Val)); in addPKHASRImmOperands()
2245 void addT2SOImmNotOperands(MCInst &Inst, unsigned N) const { in addT2SOImmNotOperands() argument
2250 Inst.addOperand(MCOperand::createImm(~(uint32_t)CE->getValue())); in addT2SOImmNotOperands()
2253 void addT2SOImmNegOperands(MCInst &Inst, unsigned N) const { in addT2SOImmNegOperands() argument
2258 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue())); in addT2SOImmNegOperands()
2261 void addImm0_4095NegOperands(MCInst &Inst, unsigned N) const { in addImm0_4095NegOperands() argument
2266 Inst.addOperand(MCOperand::createImm(-(uint32_t)CE->getValue())); in addImm0_4095NegOperands()
2269 void addUnsignedOffset_b8s2Operands(MCInst &Inst, unsigned N) const { in addUnsignedOffset_b8s2Operands() argument
2271 Inst.addOperand(MCOperand::createImm(CE->getValue() >> 2)); in addUnsignedOffset_b8s2Operands()
2277 Inst.addOperand(MCOperand::createExpr(SR)); in addUnsignedOffset_b8s2Operands()
2280 void addThumbMemPCOperands(MCInst &Inst, unsigned N) const { in addThumbMemPCOperands() argument
2285 Inst.addOperand(MCOperand::createImm(CE->getValue())); in addThumbMemPCOperands()
2292 Inst.addOperand(MCOperand::createExpr(SR)); in addThumbMemPCOperands()
2298 Inst.addOperand(MCOperand::createImm(Memory.OffsetImm->getValue())); in addThumbMemPCOperands()
2301 void addMemBarrierOptOperands(MCInst &Inst, unsigned N) const { in addMemBarrierOptOperands() argument
2303 Inst.addOperand(MCOperand::createImm(unsigned(getMemBarrierOpt()))); in addMemBarrierOptOperands()
2306 void addInstSyncBarrierOptOperands(MCInst &Inst, unsigned N) const { in addInstSyncBarrierOptOperands() argument
2308 Inst.addOperand(MCOperand::createImm(unsigned(getInstSyncBarrierOpt()))); in addInstSyncBarrierOptOperands()
2311 void addTraceSyncBarrierOptOperands(MCInst &Inst, unsigned N) const { in addTraceSyncBarrierOptOperands() argument
2313 Inst.addOperand(MCOperand::createImm(unsigned(getTraceSyncBarrierOpt()))); in addTraceSyncBarrierOptOperands()
2316 void addMemNoOffsetOperands(MCInst &Inst, unsigned N) const { in addMemNoOffsetOperands() argument
2318 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemNoOffsetOperands()
2321 void addMemPCRelImm12Operands(MCInst &Inst, unsigned N) const { in addMemPCRelImm12Operands() argument
2324 Inst.addOperand(MCOperand::createImm(Imm)); in addMemPCRelImm12Operands()
2327 void addAdrLabelOperands(MCInst &Inst, unsigned N) const { in addAdrLabelOperands() argument
2334 Inst.addOperand(MCOperand::createExpr(getImm())); in addAdrLabelOperands()
2340 Inst.addOperand(MCOperand::createImm(Val)); in addAdrLabelOperands()
2343 void addAlignedMemoryOperands(MCInst &Inst, unsigned N) const { in addAlignedMemoryOperands() argument
2345 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addAlignedMemoryOperands()
2346 Inst.addOperand(MCOperand::createImm(Memory.Alignment)); in addAlignedMemoryOperands()
2349 void addDupAlignedMemoryNoneOperands(MCInst &Inst, unsigned N) const { in addDupAlignedMemoryNoneOperands() argument
2350 addAlignedMemoryOperands(Inst, N); in addDupAlignedMemoryNoneOperands()
2353 void addAlignedMemoryNoneOperands(MCInst &Inst, unsigned N) const { in addAlignedMemoryNoneOperands() argument
2354 addAlignedMemoryOperands(Inst, N); in addAlignedMemoryNoneOperands()
2357 void addAlignedMemory16Operands(MCInst &Inst, unsigned N) const { in addAlignedMemory16Operands() argument
2358 addAlignedMemoryOperands(Inst, N); in addAlignedMemory16Operands()
2361 void addDupAlignedMemory16Operands(MCInst &Inst, unsigned N) const { in addDupAlignedMemory16Operands() argument
2362 addAlignedMemoryOperands(Inst, N); in addDupAlignedMemory16Operands()
2365 void addAlignedMemory32Operands(MCInst &Inst, unsigned N) const { in addAlignedMemory32Operands() argument
2366 addAlignedMemoryOperands(Inst, N); in addAlignedMemory32Operands()
2369 void addDupAlignedMemory32Operands(MCInst &Inst, unsigned N) const { in addDupAlignedMemory32Operands() argument
2370 addAlignedMemoryOperands(Inst, N); in addDupAlignedMemory32Operands()
2373 void addAlignedMemory64Operands(MCInst &Inst, unsigned N) const { in addAlignedMemory64Operands() argument
2374 addAlignedMemoryOperands(Inst, N); in addAlignedMemory64Operands()
2377 void addDupAlignedMemory64Operands(MCInst &Inst, unsigned N) const { in addDupAlignedMemory64Operands() argument
2378 addAlignedMemoryOperands(Inst, N); in addDupAlignedMemory64Operands()
2381 void addAlignedMemory64or128Operands(MCInst &Inst, unsigned N) const { in addAlignedMemory64or128Operands() argument
2382 addAlignedMemoryOperands(Inst, N); in addAlignedMemory64or128Operands()
2385 void addDupAlignedMemory64or128Operands(MCInst &Inst, unsigned N) const { in addDupAlignedMemory64or128Operands() argument
2386 addAlignedMemoryOperands(Inst, N); in addDupAlignedMemory64or128Operands()
2389 void addAlignedMemory64or128or256Operands(MCInst &Inst, unsigned N) const { in addAlignedMemory64or128or256Operands() argument
2390 addAlignedMemoryOperands(Inst, N); in addAlignedMemory64or128or256Operands()
2393 void addAddrMode2Operands(MCInst &Inst, unsigned N) const { in addAddrMode2Operands() argument
2408 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addAddrMode2Operands()
2409 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addAddrMode2Operands()
2410 Inst.addOperand(MCOperand::createImm(Val)); in addAddrMode2Operands()
2413 void addAM2OffsetImmOperands(MCInst &Inst, unsigned N) const { in addAM2OffsetImmOperands() argument
2423 Inst.addOperand(MCOperand::createReg(0)); in addAM2OffsetImmOperands()
2424 Inst.addOperand(MCOperand::createImm(Val)); in addAM2OffsetImmOperands()
2427 void addAddrMode3Operands(MCInst &Inst, unsigned N) const { in addAddrMode3Operands() argument
2433 Inst.addOperand(MCOperand::createExpr(getImm())); in addAddrMode3Operands()
2434 Inst.addOperand(MCOperand::createReg(0)); in addAddrMode3Operands()
2435 Inst.addOperand(MCOperand::createImm(0)); in addAddrMode3Operands()
2451 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addAddrMode3Operands()
2452 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addAddrMode3Operands()
2453 Inst.addOperand(MCOperand::createImm(Val)); in addAddrMode3Operands()
2456 void addAM3OffsetOperands(MCInst &Inst, unsigned N) const { in addAM3OffsetOperands() argument
2461 Inst.addOperand(MCOperand::createReg(PostIdxReg.RegNum)); in addAM3OffsetOperands()
2462 Inst.addOperand(MCOperand::createImm(Val)); in addAM3OffsetOperands()
2474 Inst.addOperand(MCOperand::createReg(0)); in addAM3OffsetOperands()
2475 Inst.addOperand(MCOperand::createImm(Val)); in addAM3OffsetOperands()
2478 void addAddrMode5Operands(MCInst &Inst, unsigned N) const { in addAddrMode5Operands() argument
2484 Inst.addOperand(MCOperand::createExpr(getImm())); in addAddrMode5Operands()
2485 Inst.addOperand(MCOperand::createImm(0)); in addAddrMode5Operands()
2496 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addAddrMode5Operands()
2497 Inst.addOperand(MCOperand::createImm(Val)); in addAddrMode5Operands()
2500 void addAddrMode5FP16Operands(MCInst &Inst, unsigned N) const { in addAddrMode5FP16Operands() argument
2506 Inst.addOperand(MCOperand::createExpr(getImm())); in addAddrMode5FP16Operands()
2507 Inst.addOperand(MCOperand::createImm(0)); in addAddrMode5FP16Operands()
2518 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addAddrMode5FP16Operands()
2519 Inst.addOperand(MCOperand::createImm(Val)); in addAddrMode5FP16Operands()
2522 void addMemImm8s4OffsetOperands(MCInst &Inst, unsigned N) const { in addMemImm8s4OffsetOperands() argument
2528 Inst.addOperand(MCOperand::createExpr(getImm())); in addMemImm8s4OffsetOperands()
2529 Inst.addOperand(MCOperand::createImm(0)); in addMemImm8s4OffsetOperands()
2534 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemImm8s4OffsetOperands()
2535 Inst.addOperand(MCOperand::createImm(Val)); in addMemImm8s4OffsetOperands()
2538 void addMemImm0_1020s4OffsetOperands(MCInst &Inst, unsigned N) const { in addMemImm0_1020s4OffsetOperands() argument
2542 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemImm0_1020s4OffsetOperands()
2543 Inst.addOperand(MCOperand::createImm(Val)); in addMemImm0_1020s4OffsetOperands()
2546 void addMemImm8OffsetOperands(MCInst &Inst, unsigned N) const { in addMemImm8OffsetOperands() argument
2549 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemImm8OffsetOperands()
2550 Inst.addOperand(MCOperand::createImm(Val)); in addMemImm8OffsetOperands()
2553 void addMemPosImm8OffsetOperands(MCInst &Inst, unsigned N) const { in addMemPosImm8OffsetOperands() argument
2554 addMemImm8OffsetOperands(Inst, N); in addMemPosImm8OffsetOperands()
2557 void addMemNegImm8OffsetOperands(MCInst &Inst, unsigned N) const { in addMemNegImm8OffsetOperands() argument
2558 addMemImm8OffsetOperands(Inst, N); in addMemNegImm8OffsetOperands()
2561 void addMemUImm12OffsetOperands(MCInst &Inst, unsigned N) const { in addMemUImm12OffsetOperands() argument
2565 addExpr(Inst, getImm()); in addMemUImm12OffsetOperands()
2566 Inst.addOperand(MCOperand::createImm(0)); in addMemUImm12OffsetOperands()
2572 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemUImm12OffsetOperands()
2573 Inst.addOperand(MCOperand::createImm(Val)); in addMemUImm12OffsetOperands()
2576 void addMemImm12OffsetOperands(MCInst &Inst, unsigned N) const { in addMemImm12OffsetOperands() argument
2580 addExpr(Inst, getImm()); in addMemImm12OffsetOperands()
2581 Inst.addOperand(MCOperand::createImm(0)); in addMemImm12OffsetOperands()
2587 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemImm12OffsetOperands()
2588 Inst.addOperand(MCOperand::createImm(Val)); in addMemImm12OffsetOperands()
2591 void addConstPoolAsmImmOperands(MCInst &Inst, unsigned N) const { in addConstPoolAsmImmOperands() argument
2595 addExpr(Inst, getConstantPoolImm()); in addConstPoolAsmImmOperands()
2599 void addMemTBBOperands(MCInst &Inst, unsigned N) const { in addMemTBBOperands() argument
2601 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemTBBOperands()
2602 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addMemTBBOperands()
2605 void addMemTBHOperands(MCInst &Inst, unsigned N) const { in addMemTBHOperands() argument
2607 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemTBHOperands()
2608 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addMemTBHOperands()
2611 void addMemRegOffsetOperands(MCInst &Inst, unsigned N) const { in addMemRegOffsetOperands() argument
2616 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemRegOffsetOperands()
2617 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addMemRegOffsetOperands()
2618 Inst.addOperand(MCOperand::createImm(Val)); in addMemRegOffsetOperands()
2621 void addT2MemRegOffsetOperands(MCInst &Inst, unsigned N) const { in addT2MemRegOffsetOperands() argument
2623 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addT2MemRegOffsetOperands()
2624 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addT2MemRegOffsetOperands()
2625 Inst.addOperand(MCOperand::createImm(Memory.ShiftImm)); in addT2MemRegOffsetOperands()
2628 void addMemThumbRROperands(MCInst &Inst, unsigned N) const { in addMemThumbRROperands() argument
2630 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemThumbRROperands()
2631 Inst.addOperand(MCOperand::createReg(Memory.OffsetRegNum)); in addMemThumbRROperands()
2634 void addMemThumbRIs4Operands(MCInst &Inst, unsigned N) const { in addMemThumbRIs4Operands() argument
2637 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemThumbRIs4Operands()
2638 Inst.addOperand(MCOperand::createImm(Val)); in addMemThumbRIs4Operands()
2641 void addMemThumbRIs2Operands(MCInst &Inst, unsigned N) const { in addMemThumbRIs2Operands() argument
2644 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemThumbRIs2Operands()
2645 Inst.addOperand(MCOperand::createImm(Val)); in addMemThumbRIs2Operands()
2648 void addMemThumbRIs1Operands(MCInst &Inst, unsigned N) const { in addMemThumbRIs1Operands() argument
2651 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemThumbRIs1Operands()
2652 Inst.addOperand(MCOperand::createImm(Val)); in addMemThumbRIs1Operands()
2655 void addMemThumbSPIOperands(MCInst &Inst, unsigned N) const { in addMemThumbSPIOperands() argument
2658 Inst.addOperand(MCOperand::createReg(Memory.BaseRegNum)); in addMemThumbSPIOperands()
2659 Inst.addOperand(MCOperand::createImm(Val)); in addMemThumbSPIOperands()
2662 void addPostIdxImm8Operands(MCInst &Inst, unsigned N) const { in addPostIdxImm8Operands() argument
2670 Inst.addOperand(MCOperand::createImm(Imm)); in addPostIdxImm8Operands()
2673 void addPostIdxImm8s4Operands(MCInst &Inst, unsigned N) const { in addPostIdxImm8s4Operands() argument
2682 Inst.addOperand(MCOperand::createImm(Imm)); in addPostIdxImm8s4Operands()
2685 void addPostIdxRegOperands(MCInst &Inst, unsigned N) const { in addPostIdxRegOperands() argument
2687 Inst.addOperand(MCOperand::createReg(PostIdxReg.RegNum)); in addPostIdxRegOperands()
2688 Inst.addOperand(MCOperand::createImm(PostIdxReg.isAdd)); in addPostIdxRegOperands()
2691 void addPostIdxRegShiftedOperands(MCInst &Inst, unsigned N) const { in addPostIdxRegShiftedOperands() argument
2693 Inst.addOperand(MCOperand::createReg(PostIdxReg.RegNum)); in addPostIdxRegShiftedOperands()
2699 Inst.addOperand(MCOperand::createImm(Imm)); in addPostIdxRegShiftedOperands()
2702 void addMSRMaskOperands(MCInst &Inst, unsigned N) const { in addMSRMaskOperands() argument
2704 Inst.addOperand(MCOperand::createImm(unsigned(getMSRMask()))); in addMSRMaskOperands()
2707 void addBankedRegOperands(MCInst &Inst, unsigned N) const { in addBankedRegOperands() argument
2709 Inst.addOperand(MCOperand::createImm(unsigned(getBankedReg()))); in addBankedRegOperands()
2712 void addProcIFlagsOperands(MCInst &Inst, unsigned N) const { in addProcIFlagsOperands() argument
2714 Inst.addOperand(MCOperand::createImm(unsigned(getProcIFlags()))); in addProcIFlagsOperands()
2717 void addVecListOperands(MCInst &Inst, unsigned N) const { in addVecListOperands() argument
2719 Inst.addOperand(MCOperand::createReg(VectorList.RegNum)); in addVecListOperands()
2722 void addVecListIndexedOperands(MCInst &Inst, unsigned N) const { in addVecListIndexedOperands() argument
2724 Inst.addOperand(MCOperand::createReg(VectorList.RegNum)); in addVecListIndexedOperands()
2725 Inst.addOperand(MCOperand::createImm(VectorList.LaneIndex)); in addVecListIndexedOperands()
2728 void addVectorIndex8Operands(MCInst &Inst, unsigned N) const { in addVectorIndex8Operands() argument
2730 Inst.addOperand(MCOperand::createImm(getVectorIndex())); in addVectorIndex8Operands()
2733 void addVectorIndex16Operands(MCInst &Inst, unsigned N) const { in addVectorIndex16Operands() argument
2735 Inst.addOperand(MCOperand::createImm(getVectorIndex())); in addVectorIndex16Operands()
2738 void addVectorIndex32Operands(MCInst &Inst, unsigned N) const { in addVectorIndex32Operands() argument
2740 Inst.addOperand(MCOperand::createImm(getVectorIndex())); in addVectorIndex32Operands()
2743 void addVectorIndex64Operands(MCInst &Inst, unsigned N) const { in addVectorIndex64Operands() argument
2745 Inst.addOperand(MCOperand::createImm(getVectorIndex())); in addVectorIndex64Operands()
2748 void addNEONi8splatOperands(MCInst &Inst, unsigned N) const { in addNEONi8splatOperands() argument
2753 Inst.addOperand(MCOperand::createImm(CE->getValue() | 0xe00)); in addNEONi8splatOperands()
2756 void addNEONi16splatOperands(MCInst &Inst, unsigned N) const { in addNEONi16splatOperands() argument
2762 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi16splatOperands()
2765 void addNEONi16splatNotOperands(MCInst &Inst, unsigned N) const { in addNEONi16splatNotOperands() argument
2771 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi16splatNotOperands()
2774 void addNEONi32splatOperands(MCInst &Inst, unsigned N) const { in addNEONi32splatOperands() argument
2780 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi32splatOperands()
2783 void addNEONi32splatNotOperands(MCInst &Inst, unsigned N) const { in addNEONi32splatNotOperands() argument
2789 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi32splatNotOperands()
2792 void addNEONi8ReplicateOperands(MCInst &Inst, bool Inv) const { in addNEONi8ReplicateOperands() argument
2795 assert((Inst.getOpcode() == ARM::VMOVv8i8 || in addNEONi8ReplicateOperands()
2796 Inst.getOpcode() == ARM::VMOVv16i8) && in addNEONi8ReplicateOperands()
2804 Inst.addOperand(MCOperand::createImm(B)); in addNEONi8ReplicateOperands()
2807 void addNEONinvi8ReplicateOperands(MCInst &Inst, unsigned N) const { in addNEONinvi8ReplicateOperands() argument
2809 addNEONi8ReplicateOperands(Inst, true); in addNEONinvi8ReplicateOperands()
2822 void addNEONi32vmovOperands(MCInst &Inst, unsigned N) const { in addNEONi32vmovOperands() argument
2827 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi32vmovOperands()
2830 void addNEONvmovi8ReplicateOperands(MCInst &Inst, unsigned N) const { in addNEONvmovi8ReplicateOperands() argument
2832 addNEONi8ReplicateOperands(Inst, false); in addNEONvmovi8ReplicateOperands()
2835 void addNEONvmovi16ReplicateOperands(MCInst &Inst, unsigned N) const { in addNEONvmovi16ReplicateOperands() argument
2838 assert((Inst.getOpcode() == ARM::VMOVv4i16 || in addNEONvmovi16ReplicateOperands()
2839 Inst.getOpcode() == ARM::VMOVv8i16 || in addNEONvmovi16ReplicateOperands()
2840 Inst.getOpcode() == ARM::VMVNv4i16 || in addNEONvmovi16ReplicateOperands()
2841 Inst.getOpcode() == ARM::VMVNv8i16) && in addNEONvmovi16ReplicateOperands()
2848 Inst.addOperand(MCOperand::createImm(Elem)); in addNEONvmovi16ReplicateOperands()
2851 void addNEONi32vmovNegOperands(MCInst &Inst, unsigned N) const { in addNEONi32vmovNegOperands() argument
2856 Inst.addOperand(MCOperand::createImm(Value)); in addNEONi32vmovNegOperands()
2859 void addNEONvmovi32ReplicateOperands(MCInst &Inst, unsigned N) const { in addNEONvmovi32ReplicateOperands() argument
2862 assert((Inst.getOpcode() == ARM::VMOVv2i32 || in addNEONvmovi32ReplicateOperands()
2863 Inst.getOpcode() == ARM::VMOVv4i32 || in addNEONvmovi32ReplicateOperands()
2864 Inst.getOpcode() == ARM::VMVNv2i32 || in addNEONvmovi32ReplicateOperands()
2865 Inst.getOpcode() == ARM::VMVNv4i32) && in addNEONvmovi32ReplicateOperands()
2870 Inst.addOperand(MCOperand::createImm(Elem)); in addNEONvmovi32ReplicateOperands()
2873 void addNEONi64splatOperands(MCInst &Inst, unsigned N) const { in addNEONi64splatOperands() argument
2882 Inst.addOperand(MCOperand::createImm(Imm | 0x1e00)); in addNEONi64splatOperands()
2885 void addComplexRotationEvenOperands(MCInst &Inst, unsigned N) const { in addComplexRotationEvenOperands() argument
2888 Inst.addOperand(MCOperand::createImm(CE->getValue() / 90)); in addComplexRotationEvenOperands()
2891 void addComplexRotationOddOperands(MCInst &Inst, unsigned N) const { in addComplexRotationOddOperands() argument
2894 Inst.addOperand(MCOperand::createImm((CE->getValue() - 90) / 180)); in addComplexRotationOddOperands()
4990 void ARMAsmParser::cvtThumbMultiply(MCInst &Inst, in cvtThumbMultiply() argument
4992 ((ARMOperand &)*Operands[3]).addRegOperands(Inst, 1); in cvtThumbMultiply()
4993 ((ARMOperand &)*Operands[1]).addCCOutOperands(Inst, 1); in cvtThumbMultiply()
5001 ((ARMOperand &)*Operands[RegOp]).addRegOperands(Inst, 1); in cvtThumbMultiply()
5002 Inst.addOperand(Inst.getOperand(0)); in cvtThumbMultiply()
5003 ((ARMOperand &)*Operands[2]).addCondCodeOperands(Inst, 2); in cvtThumbMultiply()
5006 void ARMAsmParser::cvtThumbBranches(MCInst &Inst, in cvtThumbBranches() argument
5009 switch(Inst.getOpcode()) { in cvtThumbBranches()
5023 switch(Inst.getOpcode()) { in cvtThumbBranches()
5024 case ARM::tBcc: Inst.setOpcode(ARM::tB); break; in cvtThumbBranches()
5025 case ARM::t2Bcc: Inst.setOpcode(ARM::t2B); break; in cvtThumbBranches()
5031 switch(Inst.getOpcode()) { in cvtThumbBranches()
5034 Inst.setOpcode(Cond == ARMCC::AL ? ARM::tB : ARM::tBcc); in cvtThumbBranches()
5038 Inst.setOpcode(Cond == ARMCC::AL ? ARM::t2B : ARM::t2Bcc); in cvtThumbBranches()
5044 switch(Inst.getOpcode()) { in cvtThumbBranches()
5049 Inst.setOpcode(ARM::t2B); in cvtThumbBranches()
5056 Inst.setOpcode(ARM::t2Bcc); in cvtThumbBranches()
5060 ((ARMOperand &)*Operands[ImmOp]).addImmOperands(Inst, 1); in cvtThumbBranches()
5061 ((ARMOperand &)*Operands[CondOp]).addCondCodeOperands(Inst, 2); in cvtThumbBranches()
6312 static bool checkLowRegisterList(const MCInst &Inst, unsigned OpNo, in checkLowRegisterList() argument
6316 for (unsigned i = OpNo; i < Inst.getNumOperands(); ++i) { in checkLowRegisterList()
6317 unsigned OpReg = Inst.getOperand(i).getReg(); in checkLowRegisterList()
6329 static bool listContainsReg(const MCInst &Inst, unsigned OpNo, unsigned Reg) { in listContainsReg() argument
6330 for (unsigned i = OpNo, e = Inst.getNumOperands(); i < e; ++i) { in listContainsReg()
6331 unsigned OpReg = Inst.getOperand(i).getReg(); in listContainsReg()
6340 static bool instIsBreakpoint(const MCInst &Inst) { in instIsBreakpoint() argument
6341 return Inst.getOpcode() == ARM::tBKPT || in instIsBreakpoint()
6342 Inst.getOpcode() == ARM::BKPT || in instIsBreakpoint()
6343 Inst.getOpcode() == ARM::tHLT || in instIsBreakpoint()
6344 Inst.getOpcode() == ARM::HLT; in instIsBreakpoint()
6347 bool ARMAsmParser::validatetLDMRegList(const MCInst &Inst, in validatetLDMRegList() argument
6353 bool ListContainsSP = listContainsReg(Inst, ListNo, ARM::SP); in validatetLDMRegList()
6354 bool ListContainsLR = listContainsReg(Inst, ListNo, ARM::LR); in validatetLDMRegList()
6355 bool ListContainsPC = listContainsReg(Inst, ListNo, ARM::PC); in validatetLDMRegList()
6366 bool ARMAsmParser::validatetSTMRegList(const MCInst &Inst, in validatetSTMRegList() argument
6372 bool ListContainsSP = listContainsReg(Inst, ListNo, ARM::SP); in validatetSTMRegList()
6373 bool ListContainsPC = listContainsReg(Inst, ListNo, ARM::PC); in validatetSTMRegList()
6387 bool ARMAsmParser::validateLDRDSTRD(MCInst &Inst, in validateLDRDSTRD() argument
6391 unsigned Rt = MRI->getEncodingValue(Inst.getOperand(RtIndex).getReg()); in validateLDRDSTRD()
6392 unsigned Rt2 = MRI->getEncodingValue(Inst.getOperand(RtIndex + 1).getReg()); in validateLDRDSTRD()
6426 unsigned Rn = MRI->getEncodingValue(Inst.getOperand(3).getReg()); in validateLDRDSTRD()
6447 bool ARMAsmParser::validateInstruction(MCInst &Inst, in validateInstruction() argument
6449 const MCInstrDesc &MCID = MII.get(Inst.getOpcode()); in validateInstruction()
6455 if (inITBlock() && !instIsBreakpoint(Inst)) { in validateInstruction()
6460 Inst.getOperand(MCID.findFirstPredOperandIdx()).getImm()); in validateInstruction()
6474 Inst.getOperand(MCID.findFirstPredOperandIdx()).getImm() != in validateInstruction()
6475 ARMCC::AL && Inst.getOpcode() != ARM::tBcc && in validateInstruction()
6476 Inst.getOpcode() != ARM::t2Bcc) { in validateInstruction()
6479 Inst.getOperand(MCID.findFirstPredOperandIdx()).getImm() != in validateInstruction()
6486 if (inExplicitITBlock() && !lastInITBlock() && isITBlockTerminator(Inst)) { in validateInstruction()
6490 const unsigned Opcode = Inst.getOpcode(); in validateInstruction()
6496 unsigned Cond = Inst.getOperand(0).getImm(); in validateInstruction()
6497 unsigned Mask = Inst.getOperand(1).getImm(); in validateInstruction()
6508 if (validateLDRDSTRD(Inst, Operands, /*Load*/true, /*ARMMode*/true, in validateInstruction()
6514 if (validateLDRDSTRD(Inst, Operands, /*Load*/true, /*ARMMode*/true, in validateInstruction()
6519 if (validateLDRDSTRD(Inst, Operands, /*Load*/true, /*ARMMode*/false, in validateInstruction()
6525 if (validateLDRDSTRD(Inst, Operands, /*Load*/true, /*ARMMode*/false, in validateInstruction()
6530 const unsigned RmReg = Inst.getOperand(0).getReg(); in validateInstruction()
6538 if (validateLDRDSTRD(Inst, Operands, /*Load*/false, /*ARMMode*/true, in validateInstruction()
6544 if (validateLDRDSTRD(Inst, Operands, /*Load*/false, /*ARMMode*/true, in validateInstruction()
6550 if (validateLDRDSTRD(Inst, Operands, /*Load*/false, /*ARMMode*/false, in validateInstruction()
6571 const unsigned Rt = MRI->getEncodingValue(Inst.getOperand(1).getReg()); in validateInstruction()
6572 const unsigned Rn = MRI->getEncodingValue(Inst.getOperand(2).getReg()); in validateInstruction()
6604 const unsigned Rt = MRI->getEncodingValue(Inst.getOperand(0).getReg()); in validateInstruction()
6605 const unsigned Rn = MRI->getEncodingValue(Inst.getOperand(2).getReg()); in validateInstruction()
6617 unsigned LSB = Inst.getOperand(2).getImm(); in validateInstruction()
6618 unsigned Widthm1 = Inst.getOperand(3).getImm(); in validateInstruction()
6632 unsigned Rn = Inst.getOperand(0).getReg(); in validateInstruction()
6637 if (checkLowRegisterList(Inst, 3, Rn, 0, ListContainsBase) && !isThumbTwo()) in validateInstruction()
6651 if (validatetLDMRegList(Inst, Operands, 3)) in validateInstruction()
6663 if (listContainsReg(Inst, 3, Inst.getOperand(0).getReg())) in validateInstruction()
6669 if (validatetLDMRegList(Inst, Operands, 3)) in validateInstruction()
6674 if (validatetSTMRegList(Inst, Operands, 3)) in validateInstruction()
6681 if (listContainsReg(Inst, 3, Inst.getOperand(0).getReg())) in validateInstruction()
6686 if (validatetLDMRegList(Inst, Operands, 3)) in validateInstruction()
6689 if (validatetSTMRegList(Inst, Operands, 3)) in validateInstruction()
6698 if (!listContainsReg(Inst, 3, ARM::PC)) in validateInstruction()
6732 if (checkLowRegisterList(Inst, 2, 0, ARM::PC, ListContainsBase) && in validateInstruction()
6736 if (validatetLDMRegList(Inst, Operands, 2, !isMClass())) in validateInstruction()
6742 if (checkLowRegisterList(Inst, 2, 0, ARM::LR, ListContainsBase) && in validateInstruction()
6746 if (validatetSTMRegList(Inst, Operands, 2)) in validateInstruction()
6752 InvalidLowList = checkLowRegisterList(Inst, 4, Inst.getOperand(0).getReg(), in validateInstruction()
6765 if (validatetSTMRegList(Inst, Operands, 4)) in validateInstruction()
6773 Inst.getOperand(0).getReg() != Inst.getOperand(2).getReg()) { in validateInstruction()
6834 unsigned Imm8 = Inst.getOperand(0).getImm(); in validateInstruction()
6835 unsigned Pred = Inst.getOperand(1).getImm(); in validateInstruction()
6851 if (Inst.getNumOperands() < 2) in validateInstruction()
6854 unsigned Option = Inst.getOperand(0).getImm(); in validateInstruction()
6855 unsigned Pred = Inst.getOperand(1).getImm(); in validateInstruction()
6870 const unsigned Sm = MRI->getEncodingValue(Inst.getOperand(2).getReg()); in validateInstruction()
6871 const unsigned Sm1 = MRI->getEncodingValue(Inst.getOperand(3).getReg()); in validateInstruction()
6879 const unsigned Sm = MRI->getEncodingValue(Inst.getOperand(0).getReg()); in validateInstruction()
6880 const unsigned Sm1 = MRI->getEncodingValue(Inst.getOperand(1).getReg()); in validateInstruction()
7156 bool ARMAsmParser::processInstruction(MCInst &Inst, in processInstruction() argument
7170 switch (Inst.getOpcode()) { in processInstruction()
7175 (Inst.getOpcode() == ARM::LDRT_POST) ? ARM::LDRT_POST_IMM in processInstruction()
7179 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
7180 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
7181 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
7184 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
7185 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
7186 Inst = TmpInst; in processInstruction()
7193 (Inst.getOpcode() == ARM::STRT_POST) ? ARM::STRT_POST_IMM in processInstruction()
7197 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
7198 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
7199 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
7202 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
7203 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
7204 Inst = TmpInst; in processInstruction()
7209 if (Inst.getOperand(1).getReg() != ARM::PC || in processInstruction()
7210 Inst.getOperand(5).getReg() != 0 || in processInstruction()
7211 !(Inst.getOperand(2).isExpr() || Inst.getOperand(2).isImm())) in processInstruction()
7215 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
7216 if (Inst.getOperand(2).isImm()) { in processInstruction()
7219 unsigned Enc = Inst.getOperand(2).getImm(); in processInstruction()
7228 const MCExpr *OpExpr = Inst.getOperand(2).getExpr(); in processInstruction()
7239 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
7240 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
7241 Inst = TmpInst; in processInstruction()
7247 if (Inst.getOperand(1).getImm() > 0 && in processInstruction()
7248 Inst.getOperand(1).getImm() <= 0xff && in processInstruction()
7250 Inst.setOpcode(ARM::tLDRpci); in processInstruction()
7252 Inst.setOpcode(ARM::t2LDRpci); in processInstruction()
7255 Inst.setOpcode(ARM::t2LDRBpci); in processInstruction()
7258 Inst.setOpcode(ARM::t2LDRHpci); in processInstruction()
7261 Inst.setOpcode(ARM::t2LDRSBpci); in processInstruction()
7264 Inst.setOpcode(ARM::t2LDRSHpci); in processInstruction()
7273 if (Inst.getOpcode() == ARM::LDRConstPool) in processInstruction()
7275 else if (Inst.getOpcode() == ARM::tLDRConstPool) in processInstruction()
7277 else if (Inst.getOpcode() == ARM::t2LDRConstPool) in processInstruction()
7286 Inst.getOperand(0).getReg() != ARM::PC && in processInstruction()
7287 Inst.getOperand(0).getReg() != ARM::SP) { in processInstruction()
7292 if (Inst.getOpcode() == ARM::LDRConstPool) { in processInstruction()
7329 TmpInst.addOperand(Inst.getOperand(0)); // Rt in processInstruction()
7331 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
7332 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
7335 Inst = TmpInst; in processInstruction()
7343 TmpInst.addOperand(Inst.getOperand(0)); // Rt in processInstruction()
7347 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
7348 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
7349 Inst = TmpInst; in processInstruction()
7360 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7361 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7362 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7363 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7364 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7365 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7366 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7367 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7368 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7369 Inst = TmpInst; in processInstruction()
7382 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7383 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7384 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7385 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7386 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7387 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7388 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7390 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7391 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7392 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7393 Inst = TmpInst; in processInstruction()
7406 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7407 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7408 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7409 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7410 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7411 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7412 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7414 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7416 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7417 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7418 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7419 Inst = TmpInst; in processInstruction()
7432 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7433 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7434 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7435 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7436 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7437 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7438 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7440 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7442 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7444 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7445 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7446 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7447 Inst = TmpInst; in processInstruction()
7458 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7459 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7460 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7461 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7463 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7464 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7465 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7466 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7467 Inst = TmpInst; in processInstruction()
7480 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7481 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7482 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7483 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7485 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7486 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7488 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7489 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7490 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7491 Inst = TmpInst; in processInstruction()
7504 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7505 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7506 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7507 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7509 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7510 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7512 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7514 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7515 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7516 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7517 Inst = TmpInst; in processInstruction()
7530 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7531 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7532 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7533 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7535 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7536 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7538 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7540 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7542 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7543 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7544 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7545 Inst = TmpInst; in processInstruction()
7556 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7557 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7558 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7559 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7560 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7561 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7562 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7563 Inst = TmpInst; in processInstruction()
7576 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7577 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7578 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7579 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7580 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7582 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7583 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7584 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7585 Inst = TmpInst; in processInstruction()
7598 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7599 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7600 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7601 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7602 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7604 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7606 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7607 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7608 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7609 Inst = TmpInst; in processInstruction()
7622 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7623 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7624 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7625 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7626 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7628 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7630 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7632 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7633 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7634 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7635 Inst = TmpInst; in processInstruction()
7647 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7648 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7649 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7650 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7651 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7652 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7653 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7654 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7655 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7656 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7657 Inst = TmpInst; in processInstruction()
7670 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7671 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7672 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7674 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7675 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7676 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7677 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7678 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7679 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7681 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7682 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7683 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7684 Inst = TmpInst; in processInstruction()
7697 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7698 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7699 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7701 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7703 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7704 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7705 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7706 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7707 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7708 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7710 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7712 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7713 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7714 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7715 Inst = TmpInst; in processInstruction()
7728 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7729 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7730 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7732 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7734 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7736 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7737 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7738 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7739 TmpInst.addOperand(Inst.getOperand(4)); // Rm in processInstruction()
7740 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7741 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7743 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7745 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7747 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7748 TmpInst.addOperand(Inst.getOperand(5)); // CondCode in processInstruction()
7749 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
7750 Inst = TmpInst; in processInstruction()
7761 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7762 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7763 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7764 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7765 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7767 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7768 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7769 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7770 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7771 Inst = TmpInst; in processInstruction()
7784 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7785 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7786 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7788 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7789 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7790 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7792 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7793 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7795 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7796 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7797 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7798 Inst = TmpInst; in processInstruction()
7811 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7812 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7813 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7815 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7817 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7818 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7819 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7821 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7822 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7824 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7826 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7827 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7828 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7829 Inst = TmpInst; in processInstruction()
7842 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7843 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7844 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7846 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7848 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7850 TmpInst.addOperand(Inst.getOperand(2)); // Rn_wb in processInstruction()
7851 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7852 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7854 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7855 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7857 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7859 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7861 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7862 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7863 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7864 Inst = TmpInst; in processInstruction()
7875 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7876 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7877 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7878 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7879 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7880 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7881 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7882 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7883 Inst = TmpInst; in processInstruction()
7896 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7897 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7898 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7900 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7901 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7902 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7903 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7905 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7906 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7907 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7908 Inst = TmpInst; in processInstruction()
7921 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7922 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7923 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7925 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7927 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7928 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7929 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7930 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7932 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7934 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7935 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7936 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7937 Inst = TmpInst; in processInstruction()
7950 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7951 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7952 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7954 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7956 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7958 TmpInst.addOperand(Inst.getOperand(2)); // Rn in processInstruction()
7959 TmpInst.addOperand(Inst.getOperand(3)); // alignment in processInstruction()
7960 TmpInst.addOperand(Inst.getOperand(0)); // Tied operand src (== Vd) in processInstruction()
7961 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7963 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7965 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7967 TmpInst.addOperand(Inst.getOperand(1)); // lane in processInstruction()
7968 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
7969 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
7970 Inst = TmpInst; in processInstruction()
7983 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
7984 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
7985 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7987 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
7989 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
7990 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
7991 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
7992 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
7993 Inst = TmpInst; in processInstruction()
8005 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8006 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8007 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8009 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8011 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8012 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8013 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8015 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8016 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8017 Inst = TmpInst; in processInstruction()
8029 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8030 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8031 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8033 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8035 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8036 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8037 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8038 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8039 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8040 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8041 Inst = TmpInst; in processInstruction()
8054 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8055 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8056 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8058 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8060 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8061 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8062 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8063 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8064 Inst = TmpInst; in processInstruction()
8076 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8077 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8078 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8080 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8082 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8083 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8084 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8086 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8087 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8088 Inst = TmpInst; in processInstruction()
8100 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8101 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8102 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8104 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8106 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8107 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8108 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8109 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8110 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8111 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8112 Inst = TmpInst; in processInstruction()
8125 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8126 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8127 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8129 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8131 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8133 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8134 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8135 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8136 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8137 Inst = TmpInst; in processInstruction()
8149 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8150 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8151 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8153 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8155 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8157 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8158 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8159 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8161 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8162 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8163 Inst = TmpInst; in processInstruction()
8175 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8176 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8177 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8179 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8181 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8183 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8184 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8185 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8186 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8187 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8188 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8189 Inst = TmpInst; in processInstruction()
8202 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8203 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8204 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8206 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8208 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8210 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8211 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8212 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8213 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8214 Inst = TmpInst; in processInstruction()
8226 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8227 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8228 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8230 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8232 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8234 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8235 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8236 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8238 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8239 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8240 Inst = TmpInst; in processInstruction()
8252 TmpInst.setOpcode(getRealVLDOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8253 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8254 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8256 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8258 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8260 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8261 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8262 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8263 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8264 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8265 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8266 Inst = TmpInst; in processInstruction()
8279 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8280 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8281 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8282 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8283 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8285 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8287 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8288 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8289 Inst = TmpInst; in processInstruction()
8301 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8302 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8303 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8304 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8306 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8307 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8309 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8311 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8312 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8313 Inst = TmpInst; in processInstruction()
8325 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8326 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8327 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8328 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8329 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8330 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8331 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8333 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8335 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8336 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8337 Inst = TmpInst; in processInstruction()
8350 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8351 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8352 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8353 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8354 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8356 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8358 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8360 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8361 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8362 Inst = TmpInst; in processInstruction()
8374 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8375 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8376 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8377 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8379 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8380 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8382 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8384 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8386 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8387 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8388 Inst = TmpInst; in processInstruction()
8400 TmpInst.setOpcode(getRealVSTOpcode(Inst.getOpcode(), Spacing)); in processInstruction()
8401 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8402 TmpInst.addOperand(Inst.getOperand(1)); // Rn_wb == tied Rn in processInstruction()
8403 TmpInst.addOperand(Inst.getOperand(2)); // alignment in processInstruction()
8404 TmpInst.addOperand(Inst.getOperand(3)); // Rm in processInstruction()
8405 TmpInst.addOperand(Inst.getOperand(0)); // Vd in processInstruction()
8406 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8408 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8410 TmpInst.addOperand(MCOperand::createReg(Inst.getOperand(0).getReg() + in processInstruction()
8412 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8413 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8414 Inst = TmpInst; in processInstruction()
8422 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8423 isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
8424 Inst.getOperand(5).getReg() == (inITBlock() ? 0 : ARM::CPSR) && in processInstruction()
8427 switch (Inst.getOpcode()) { in processInstruction()
8436 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8437 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8438 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8439 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
8440 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8441 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8442 Inst = TmpInst; in processInstruction()
8454 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8455 isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
8456 isARMLowRegister(Inst.getOperand(2).getReg()) && in processInstruction()
8457 Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg() && in processInstruction()
8458 inITBlock() == (Inst.getOpcode() == ARM::t2MOVsr) && in processInstruction()
8463 switch(ARM_AM::getSORegShOp(Inst.getOperand(3).getImm())) { in processInstruction()
8471 TmpInst.addOperand(Inst.getOperand(0)); // Rd in processInstruction()
8474 Inst.getOpcode() == ARM::t2MOVSsr ? ARM::CPSR : 0)); in processInstruction()
8475 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8476 TmpInst.addOperand(Inst.getOperand(2)); // Rm in processInstruction()
8477 TmpInst.addOperand(Inst.getOperand(4)); // CondCode in processInstruction()
8478 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8481 Inst.getOpcode() == ARM::t2MOVSsr ? ARM::CPSR : 0)); in processInstruction()
8482 Inst = TmpInst; in processInstruction()
8491 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8492 isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
8493 inITBlock() == (Inst.getOpcode() == ARM::t2MOVsi) && in processInstruction()
8498 unsigned Shift = ARM_AM::getSORegShOp(Inst.getOperand(2).getImm()); in processInstruction()
8499 unsigned Amount = ARM_AM::getSORegOffset(Inst.getOperand(2).getImm()); in processInstruction()
8524 TmpInst.addOperand(Inst.getOperand(0)); // Rd in processInstruction()
8527 Inst.getOpcode() == ARM::t2MOVSsi ? ARM::CPSR : 0)); in processInstruction()
8528 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8531 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8532 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8535 Inst.getOpcode() == ARM::t2MOVSsi ? ARM::CPSR : 0)); in processInstruction()
8536 Inst = TmpInst; in processInstruction()
8545 switch(Inst.getOpcode()) { in processInstruction()
8555 TmpInst.addOperand(Inst.getOperand(0)); // Rd in processInstruction()
8556 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8557 TmpInst.addOperand(Inst.getOperand(2)); // Rm in processInstruction()
8559 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8560 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8561 TmpInst.addOperand(Inst.getOperand(5)); // cc_out in processInstruction()
8562 Inst = TmpInst; in processInstruction()
8570 switch(Inst.getOpcode()) { in processInstruction()
8578 unsigned Amt = Inst.getOperand(2).getImm(); in processInstruction()
8586 TmpInst.addOperand(Inst.getOperand(0)); // Rd in processInstruction()
8587 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8590 TmpInst.addOperand(Inst.getOperand(3)); // CondCode in processInstruction()
8591 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8592 TmpInst.addOperand(Inst.getOperand(5)); // cc_out in processInstruction()
8593 Inst = TmpInst; in processInstruction()
8600 TmpInst.addOperand(Inst.getOperand(0)); // Rd in processInstruction()
8601 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8603 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
8604 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8605 TmpInst.addOperand(Inst.getOperand(4)); // cc_out in processInstruction()
8606 Inst = TmpInst; in processInstruction()
8612 if (Inst.getNumOperands() != 5) in processInstruction()
8616 TmpInst.addOperand(Inst.getOperand(4)); // Rt in processInstruction()
8617 TmpInst.addOperand(Inst.getOperand(0)); // Rn_wb in processInstruction()
8618 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8620 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
8621 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8622 Inst = TmpInst; in processInstruction()
8628 if (Inst.getNumOperands() != 5) in processInstruction()
8632 TmpInst.addOperand(Inst.getOperand(0)); // Rn_wb in processInstruction()
8633 TmpInst.addOperand(Inst.getOperand(4)); // Rt in processInstruction()
8634 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8636 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
8637 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8638 Inst = TmpInst; in processInstruction()
8645 Inst.getNumOperands() == 5) { in processInstruction()
8648 TmpInst.addOperand(Inst.getOperand(4)); // Rt in processInstruction()
8649 TmpInst.addOperand(Inst.getOperand(0)); // Rn_wb in processInstruction()
8650 TmpInst.addOperand(Inst.getOperand(1)); // Rn in processInstruction()
8653 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
8654 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8655 Inst = TmpInst; in processInstruction()
8663 Inst.getNumOperands() == 5) { in processInstruction()
8666 TmpInst.addOperand(Inst.getOperand(0)); // Rn_wb in processInstruction()
8667 TmpInst.addOperand(Inst.getOperand(4)); // Rt in processInstruction()
8668 TmpInst.addOperand(Inst.getOperand(1)); // addrmode_imm12 in processInstruction()
8670 TmpInst.addOperand(Inst.getOperand(2)); // CondCode in processInstruction()
8671 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8672 Inst = TmpInst; in processInstruction()
8679 ARM_AM::getT2SOImmVal(Inst.getOperand(2).getImm()) == -1) in processInstruction()
8681 Inst.setOpcode(ARM::t2ADDri); in processInstruction()
8682 Inst.addOperand(MCOperand::createReg(0)); // cc_out in processInstruction()
8688 ARM_AM::getT2SOImmVal(Inst.getOperand(2).getImm()) == -1) in processInstruction()
8690 Inst.setOpcode(ARM::t2SUBri); in processInstruction()
8691 Inst.addOperand(MCOperand::createReg(0)); // cc_out in processInstruction()
8698 if ((unsigned)Inst.getOperand(3).getImm() < 8 && Operands.size() == 6) { in processInstruction()
8699 Inst.setOpcode(ARM::tADDi3); in processInstruction()
8708 if ((unsigned)Inst.getOperand(3).getImm() < 8 && Operands.size() == 6) { in processInstruction()
8709 Inst.setOpcode(ARM::tSUBi3); in processInstruction()
8719 if (Inst.getOperand(0).getReg() != Inst.getOperand(1).getReg() || in processInstruction()
8720 !isARMLowRegister(Inst.getOperand(0).getReg()) || in processInstruction()
8721 (Inst.getOperand(2).isImm() && in processInstruction()
8722 (unsigned)Inst.getOperand(2).getImm() > 255) || in processInstruction()
8723 Inst.getOperand(5).getReg() != (inITBlock() ? 0 : ARM::CPSR) || in processInstruction()
8727 TmpInst.setOpcode(Inst.getOpcode() == ARM::t2ADDri ? in processInstruction()
8729 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8730 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8731 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8732 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
8733 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8734 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8735 Inst = TmpInst; in processInstruction()
8745 auto DestReg = Inst.getOperand(0).getReg(); in processInstruction()
8746 bool Transform = DestReg == Inst.getOperand(1).getReg(); in processInstruction()
8747 if (!Transform && DestReg == Inst.getOperand(2).getReg()) { in processInstruction()
8752 Inst.getOperand(5).getReg() != 0 || in processInstruction()
8757 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8758 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8759 TmpInst.addOperand(Inst.getOperand(Swap ? 1 : 2)); in processInstruction()
8760 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8761 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8762 Inst = TmpInst; in processInstruction()
8768 if (Inst.getOperand(0).getReg() != Inst.getOperand(2).getReg()) { in processInstruction()
8769 Inst.setOpcode(ARM::t2ADDrr); in processInstruction()
8770 Inst.addOperand(MCOperand::createReg(0)); // cc_out in processInstruction()
8776 if (Inst.getOperand(1).getImm() != ARMCC::AL && !inITBlock()) { in processInstruction()
8777 Inst.setOpcode(ARM::tBcc); in processInstruction()
8783 if (Inst.getOperand(1).getImm() != ARMCC::AL && !inITBlock()){ in processInstruction()
8784 Inst.setOpcode(ARM::t2Bcc); in processInstruction()
8790 if (Inst.getOperand(1).getImm() == ARMCC::AL || inITBlock()) { in processInstruction()
8791 Inst.setOpcode(ARM::t2B); in processInstruction()
8797 if (Inst.getOperand(1).getImm() == ARMCC::AL) { in processInstruction()
8798 Inst.setOpcode(ARM::tB); in processInstruction()
8807 unsigned Rn = Inst.getOperand(0).getReg(); in processInstruction()
8812 if (checkLowRegisterList(Inst, 3, Rn, 0, listContainsBase) || in processInstruction()
8817 Inst.setOpcode(hasWritebackToken ? ARM::t2LDMIA_UPD : ARM::t2LDMIA); in processInstruction()
8821 Inst.insert(Inst.begin(), in processInstruction()
8822 MCOperand::createReg(Inst.getOperand(0).getReg())); in processInstruction()
8831 unsigned Rn = Inst.getOperand(0).getReg(); in processInstruction()
8833 if (checkLowRegisterList(Inst, 4, Rn, 0, listContainsBase)) { in processInstruction()
8836 Inst.setOpcode(ARM::t2STMIA_UPD); in processInstruction()
8846 if (!checkLowRegisterList(Inst, 2, 0, ARM::PC, listContainsBase)) in processInstruction()
8849 Inst.setOpcode(ARM::t2LDMIA_UPD); in processInstruction()
8851 Inst.insert(Inst.begin(), MCOperand::createReg(ARM::SP)); in processInstruction()
8852 Inst.insert(Inst.begin(), MCOperand::createReg(ARM::SP)); in processInstruction()
8857 if (!checkLowRegisterList(Inst, 2, 0, ARM::LR, listContainsBase)) in processInstruction()
8860 Inst.setOpcode(ARM::t2STMDB_UPD); in processInstruction()
8862 Inst.insert(Inst.begin(), MCOperand::createReg(ARM::SP)); in processInstruction()
8863 Inst.insert(Inst.begin(), MCOperand::createReg(ARM::SP)); in processInstruction()
8869 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8870 (Inst.getOperand(1).isImm() && in processInstruction()
8871 (unsigned)Inst.getOperand(1).getImm() <= 255) && in processInstruction()
8872 Inst.getOperand(4).getReg() == (inITBlock() ? 0 : ARM::CPSR) && in processInstruction()
8877 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8878 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8879 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8880 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
8881 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8882 Inst = TmpInst; in processInstruction()
8890 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8891 isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
8892 Inst.getOperand(2).getImm() == ARMCC::AL && in processInstruction()
8893 Inst.getOperand(4).getReg() == ARM::CPSR && in processInstruction()
8897 TmpInst.setOpcode(Inst.getOperand(4).getReg() ? ARM::tMOVSr : ARM::tMOVr); in processInstruction()
8898 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8899 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8900 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
8901 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8902 Inst = TmpInst; in processInstruction()
8913 if (isARMLowRegister(Inst.getOperand(0).getReg()) && in processInstruction()
8914 isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
8915 Inst.getOperand(2).getImm() == 0 && in processInstruction()
8918 switch (Inst.getOpcode()) { in processInstruction()
8928 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8929 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8930 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8931 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8932 Inst = TmpInst; in processInstruction()
8938 ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(Inst.getOperand(2).getImm()); in processInstruction()
8942 if (ARM_AM::getSORegOffset(Inst.getOperand(2).getImm()) == 0) { in processInstruction()
8946 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8947 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8948 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
8949 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8950 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8951 Inst = TmpInst; in processInstruction()
8963 ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(Inst.getOperand(3).getImm()); in processInstruction()
8965 switch (Inst.getOpcode()) { in processInstruction()
8976 if (ARM_AM::getSORegOffset(Inst.getOperand(3).getImm()) == 0 && in processInstruction()
8980 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
8981 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
8982 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
8983 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
8984 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
8985 TmpInst.addOperand(Inst.getOperand(6)); in processInstruction()
8986 Inst = TmpInst; in processInstruction()
8993 MCOperand &MO = Inst.getOperand(1); in processInstruction()
8995 ARMCC::CondCodes Cond = ARMCC::CondCodes(Inst.getOperand(0).getImm()); in processInstruction()
9011 if ((isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
9012 isARMLowRegister(Inst.getOperand(2).getReg())) && in processInstruction()
9013 Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg() && in processInstruction()
9014 Inst.getOperand(5).getReg() == (inITBlock() ? 0 : ARM::CPSR) && in processInstruction()
9017 switch (Inst.getOpcode()) { in processInstruction()
9028 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
9029 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
9030 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
9031 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
9032 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
9033 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
9034 Inst = TmpInst; in processInstruction()
9046 if ((isARMLowRegister(Inst.getOperand(1).getReg()) && in processInstruction()
9047 isARMLowRegister(Inst.getOperand(2).getReg())) && in processInstruction()
9048 (Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg() || in processInstruction()
9049 Inst.getOperand(0).getReg() == Inst.getOperand(2).getReg()) && in processInstruction()
9050 Inst.getOperand(5).getReg() == (inITBlock() ? 0 : ARM::CPSR) && in processInstruction()
9053 switch (Inst.getOpcode()) { in processInstruction()
9062 TmpInst.addOperand(Inst.getOperand(0)); in processInstruction()
9063 TmpInst.addOperand(Inst.getOperand(5)); in processInstruction()
9064 if (Inst.getOperand(0).getReg() == Inst.getOperand(1).getReg()) { in processInstruction()
9065 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
9066 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
9068 TmpInst.addOperand(Inst.getOperand(2)); in processInstruction()
9069 TmpInst.addOperand(Inst.getOperand(1)); in processInstruction()
9071 TmpInst.addOperand(Inst.getOperand(3)); in processInstruction()
9072 TmpInst.addOperand(Inst.getOperand(4)); in processInstruction()
9073 Inst = TmpInst; in processInstruction()
9081 unsigned ARMAsmParser::checkTargetMatchPredicate(MCInst &Inst) { in checkTargetMatchPredicate() argument
9084 unsigned Opc = Inst.getOpcode(); in checkTargetMatchPredicate()
9089 assert(MCID.NumOperands == Inst.getNumOperands() && in checkTargetMatchPredicate()
9098 if (isThumbOne() && Inst.getOperand(OpNo).getReg() != ARM::CPSR) in checkTargetMatchPredicate()
9102 if (isThumbTwo() && Inst.getOperand(OpNo).getReg() != ARM::CPSR && in checkTargetMatchPredicate()
9105 if (isThumbTwo() && Inst.getOperand(OpNo).getReg() == ARM::CPSR && in checkTargetMatchPredicate()
9109 if (Opc == ARM::tLSLri && Inst.getOperand(3).getImm() == 0 && inITBlock()) in checkTargetMatchPredicate()
9115 isARMLowRegister(Inst.getOperand(1).getReg()) && in checkTargetMatchPredicate()
9116 isARMLowRegister(Inst.getOperand(2).getReg())) in checkTargetMatchPredicate()
9120 isARMLowRegister(Inst.getOperand(0).getReg()) && in checkTargetMatchPredicate()
9121 isARMLowRegister(Inst.getOperand(1).getReg())) in checkTargetMatchPredicate()
9131 if (Inst.getOperand(0).getReg() == ARM::SP && in checkTargetMatchPredicate()
9132 Inst.getOperand(1).getReg() == ARM::SP) in checkTargetMatchPredicate()
9135 if (Inst.getOperand(4).getReg() == ARM::CPSR && in checkTargetMatchPredicate()
9136 (Inst.getOperand(0).getReg() == ARM::SP || in checkTargetMatchPredicate()
9137 Inst.getOperand(1).getReg() == ARM::SP)) in checkTargetMatchPredicate()
9143 if ((Inst.getOpcode() == ARM::VMRS || Inst.getOpcode() == ARM::VMSR) && in checkTargetMatchPredicate()
9144 Inst.getOperand(0).getReg() == ARM::SP && (isThumb() && !hasV8Ops())) in checkTargetMatchPredicate()
9150 if ((Inst.getOperand(I).getReg() == ARM::SP) && !hasV8Ops()) in checkTargetMatchPredicate()
9152 else if (Inst.getOperand(I).getReg() == ARM::PC) in checkTargetMatchPredicate()
9169 bool ARMAsmParser::isITBlockTerminator(MCInst &Inst) const { in isITBlockTerminator()
9170 const MCInstrDesc &MCID = MII.get(Inst.getOpcode()); in isITBlockTerminator()
9174 if (MCID.isTerminator() || (MCID.isCall() && Inst.getOpcode() != ARM::tSVC) || in isITBlockTerminator()
9180 if (MCID.hasDefOfPhysReg(Inst, ARM::PC, *MRI)) in isITBlockTerminator()
9186 unsigned ARMAsmParser::MatchInstruction(OperandVector &Operands, MCInst &Inst, in MatchInstruction() argument
9193 return MatchInstructionImpl(Operands, Inst, &NearMisses, MatchingInlineAsm); in MatchInstruction()
9199 if (MatchInstructionImpl(Operands, Inst, nullptr, MatchingInlineAsm) == in MatchInstruction()
9203 const MCInstrDesc &MCID = MII.get(Inst.getOpcode()); in MatchInstruction()
9206 (ARMCC::CondCodes)Inst.getOperand(MCID.findFirstPredOperandIdx()) in MatchInstruction()
9225 MatchInstructionImpl(Operands, Inst, &NearMisses, MatchingInlineAsm); in MatchInstruction()
9227 const MCInstrDesc &MCID = MII.get(Inst.getOpcode()); in MatchInstruction()
9230 (ARMCC::CondCodes)Inst.getOperand(MCID.findFirstPredOperandIdx()) in MatchInstruction()
9234 if (Inst.getOpcode() == ARM::tBcc || Inst.getOpcode() == ARM::t2Bcc) { in MatchInstruction()
9252 if (MatchInstructionImpl(Operands, Inst, nullptr, MatchingInlineAsm) == in MatchInstruction()
9254 const MCInstrDesc &MCID = MII.get(Inst.getOpcode()); in MatchInstruction()
9257 (ARMCC::CondCodes)Inst.getOperand(MCID.findFirstPredOperandIdx()) in MatchInstruction()
9279 MCInst Inst; in MatchAndEmitInstruction() local
9284 MatchResult = MatchInstruction(Operands, Inst, NearMisses, MatchingInlineAsm, in MatchAndEmitInstruction()
9290 Inst.dump_pretty(dbgs(), MII.getName(Inst.getOpcode())); in MatchAndEmitInstruction()
9295 if (validateInstruction(Inst, Operands)) { in MatchAndEmitInstruction()
9309 while (processInstruction(Inst, Operands, Out)) in MatchAndEmitInstruction()
9311 Inst.dump_pretty(dbgs(), MII.getName(Inst.getOpcode())); in MatchAndEmitInstruction()
9316 !isV8EligibleForIT(&Inst)) { in MatchAndEmitInstruction()
9328 if (Inst.getOpcode() == ARM::ITasm) in MatchAndEmitInstruction()
9331 Inst.setLoc(IDLoc); in MatchAndEmitInstruction()
9333 PendingConditionalInsts.push_back(Inst); in MatchAndEmitInstruction()
9334 if (isITBlockFull() || isITBlockTerminator(Inst)) in MatchAndEmitInstruction()
9337 Out.EmitInstruction(Inst, getSTI()); in MatchAndEmitInstruction()