Lines Matching refs:Opcode
196 unsigned Opcode = getOpcodeForOffset( in expandRXYPseudo() local
199 MI.setDesc(get(Opcode)); in expandRXYPseudo()
208 unsigned Opcode = SystemZ::isHighReg(Reg) ? HighOpcode : LowOpcode; in expandLOCPseudo() local
209 MI.setDesc(get(Opcode)); in expandLOCPseudo()
270 unsigned Opcode; in emitGRX32Move() local
274 Opcode = SystemZ::RISBHH; in emitGRX32Move()
276 Opcode = SystemZ::RISBHL; in emitGRX32Move()
278 Opcode = SystemZ::RISBLH; in emitGRX32Move()
284 return BuildMI(MBB, MBBI, DL, get(Opcode), DestReg) in emitGRX32Move()
691 unsigned Opcode = MI.getOpcode(); in isPredicable() local
692 if (Opcode == SystemZ::Return || in isPredicable()
693 Opcode == SystemZ::Return_XPLINK || in isPredicable()
694 Opcode == SystemZ::Trap || in isPredicable()
695 Opcode == SystemZ::CallJG || in isPredicable()
696 Opcode == SystemZ::CallBR) in isPredicable()
743 unsigned Opcode = MI.getOpcode(); in PredicateInstruction() local
744 if (Opcode == SystemZ::Trap) { in PredicateInstruction()
751 if (Opcode == SystemZ::Return || Opcode == SystemZ::Return_XPLINK) { in PredicateInstruction()
752 MI.setDesc(get(Opcode == SystemZ::Return ? SystemZ::CondReturn in PredicateInstruction()
760 if (Opcode == SystemZ::CallJG) { in PredicateInstruction()
774 if (Opcode == SystemZ::CallBR) { in PredicateInstruction()
848 unsigned Opcode = in copyPhysReg() local
850 BuildMI(MBB, MBBI, DL, get(Opcode)) in copyPhysReg()
857 unsigned Opcode; in copyPhysReg() local
859 Opcode = SystemZ::LGR; in copyPhysReg()
862 Opcode = STI.hasVector() ? SystemZ::LDR32 : SystemZ::LER; in copyPhysReg()
864 Opcode = SystemZ::LDR; in copyPhysReg()
866 Opcode = SystemZ::LXR; in copyPhysReg()
868 Opcode = SystemZ::VLR32; in copyPhysReg()
870 Opcode = SystemZ::VLR64; in copyPhysReg()
872 Opcode = SystemZ::VLR; in copyPhysReg()
874 Opcode = SystemZ::CPYA; in copyPhysReg()
878 BuildMI(MBB, MBBI, DL, get(Opcode), DestReg) in copyPhysReg()
938 static LogicOp interpretAndImmediate(unsigned Opcode) { in interpretAndImmediate() argument
939 switch (Opcode) { in interpretAndImmediate()
1027 unsigned Opcode = MI.getOpcode(); in foldMemoryOperandImpl() local
1042 if (!CCLiveAtMI && (Opcode == SystemZ::LA || Opcode == SystemZ::LAY) && in foldMemoryOperandImpl()
1067 if ((Opcode == SystemZ::AHI || Opcode == SystemZ::AGHI) && OpNum == 0 && in foldMemoryOperandImpl()
1070 Opcode = (Opcode == SystemZ::AHI ? SystemZ::ASI : SystemZ::AGSI); in foldMemoryOperandImpl()
1072 BuildMI(*InsertPt->getParent(), InsertPt, MI.getDebugLoc(), get(Opcode)) in foldMemoryOperandImpl()
1081 if ((Opcode == SystemZ::ALFI && OpNum == 0 && in foldMemoryOperandImpl()
1083 (Opcode == SystemZ::ALGFI && OpNum == 0 && in foldMemoryOperandImpl()
1086 Opcode = (Opcode == SystemZ::ALFI ? SystemZ::ALSI : SystemZ::ALGSI); in foldMemoryOperandImpl()
1088 BuildMI(*InsertPt->getParent(), InsertPt, MI.getDebugLoc(), get(Opcode)) in foldMemoryOperandImpl()
1096 if ((Opcode == SystemZ::SLFI && OpNum == 0 && in foldMemoryOperandImpl()
1098 (Opcode == SystemZ::SLGFI && OpNum == 0 && in foldMemoryOperandImpl()
1101 Opcode = (Opcode == SystemZ::SLFI ? SystemZ::ALSI : SystemZ::ALGSI); in foldMemoryOperandImpl()
1103 BuildMI(*InsertPt->getParent(), InsertPt, MI.getDebugLoc(), get(Opcode)) in foldMemoryOperandImpl()
1112 switch (Opcode) { in foldMemoryOperandImpl()
1137 if (Opcode == SystemZ::LGDR || Opcode == SystemZ::LDGR) { in foldMemoryOperandImpl()
1138 bool Op0IsGPR = (Opcode == SystemZ::LGDR); in foldMemoryOperandImpl()
1139 bool Op1IsGPR = (Opcode == SystemZ::LDGR); in foldMemoryOperandImpl()
1209 int MemOpcode = SystemZ::getMemOpcode(Opcode); in foldMemoryOperandImpl()
1236 bool FusedFPOp = (Opcode == SystemZ::WFMADB || Opcode == SystemZ::WFMASB || in foldMemoryOperandImpl()
1237 Opcode == SystemZ::WFMSDB || Opcode == SystemZ::WFMSSB); in foldMemoryOperandImpl()
1646 unsigned SystemZInstrInfo::getOpcodeForOffset(unsigned Opcode, in getOpcodeForOffset() argument
1649 const MCInstrDesc &MCID = get(Opcode); in getOpcodeForOffset()
1653 int Disp12Opcode = SystemZ::getDisp12Opcode(Opcode); in getOpcodeForOffset()
1659 return Opcode; in getOpcodeForOffset()
1663 int Disp20Opcode = SystemZ::getDisp20Opcode(Opcode); in getOpcodeForOffset()
1669 return Opcode; in getOpcodeForOffset()
1675 switch (Opcode) { in getOpcodeForOffset()
1692 bool SystemZInstrInfo::hasDisplacementPairInsn(unsigned Opcode) const { in hasDisplacementPairInsn()
1693 const MCInstrDesc &MCID = get(Opcode); in hasDisplacementPairInsn()
1695 return SystemZ::getDisp12Opcode(Opcode) >= 0; in hasDisplacementPairInsn()
1696 return SystemZ::getDisp20Opcode(Opcode) >= 0; in hasDisplacementPairInsn()
1699 unsigned SystemZInstrInfo::getLoadAndTest(unsigned Opcode) const { in getLoadAndTest()
1700 switch (Opcode) { in getLoadAndTest()
1752 unsigned SystemZInstrInfo::getFusedCompare(unsigned Opcode, in getFusedCompare() argument
1755 switch (Opcode) { in getFusedCompare()
1776 switch (Opcode) { in getFusedCompare()
1797 switch (Opcode) { in getFusedCompare()
1818 switch (Opcode) { in getFusedCompare()
1839 switch (Opcode) { in getFusedCompare()
1940 unsigned SystemZInstrInfo::getLoadAndTrap(unsigned Opcode) const { in getLoadAndTrap()
1943 switch (Opcode) { in getLoadAndTrap()
1963 unsigned Opcode = 0; in loadImmediate() local
1965 Opcode = SystemZ::LGHI; in loadImmediate()
1967 Opcode = SystemZ::LLILL; in loadImmediate()
1969 Opcode = SystemZ::LLILH; in loadImmediate()
1973 Opcode = SystemZ::LGFI; in loadImmediate()
1974 if (Opcode) { in loadImmediate()
1975 BuildMI(MBB, MBBI, DL, get(Opcode), Reg).addImm(Value); in loadImmediate()