25#define DEBUG_TYPE "ve-asmprinter"
27#define GET_INSTRUCTION_NAME
28#define PRINT_ALIAS_INSTR
29#include "VEGenAsmWriter.inc"
54 int32_t TruncatedImm =
static_cast<int32_t
>(MO.
getImm());
59 assert(MO.
isExpr() &&
"Unknown operand kind in printOperand");
66 if (
MI->getOperand(OpNum + 2).isImm() &&
67 MI->getOperand(OpNum + 2).getImm() == 0) {
72 if (
MI->getOperand(OpNum + 1).isImm() &&
73 MI->getOperand(OpNum + 1).getImm() == 0 &&
74 MI->getOperand(OpNum).isImm() &&
MI->getOperand(OpNum).getImm() == 0) {
75 if (
MI->getOperand(OpNum + 2).isImm() &&
76 MI->getOperand(OpNum + 2).getImm() == 0) {
83 if (
MI->getOperand(OpNum + 1).isImm() &&
84 MI->getOperand(OpNum + 1).getImm() == 0) {
89 if (
MI->getOperand(OpNum).isImm() &&
MI->getOperand(OpNum).getImm() == 0) {
102 if (
MI->getOperand(OpNum + 1).isImm() &&
103 MI->getOperand(OpNum + 1).getImm() == 0) {
108 if (
MI->getOperand(OpNum).isImm() &&
MI->getOperand(OpNum).getImm() == 0) {
109 if (
MI->getOperand(OpNum + 1).isImm() &&
110 MI->getOperand(OpNum + 1).getImm() == 0) {
125 if (
MI->getOperand(OpNum + 1).isImm() &&
126 MI->getOperand(OpNum + 1).getImm() == 0) {
131 if (
MI->getOperand(OpNum).isImm() &&
MI->getOperand(OpNum).getImm() == 0) {
132 if (
MI->getOperand(OpNum + 1).isImm() &&
133 MI->getOperand(OpNum + 1).getImm() == 0) {
148 if (
MI->getOperand(OpNum + 1).isImm() &&
149 MI->getOperand(OpNum + 1).getImm() == 0) {
155 if (
MI->getOperand(OpNum).isReg())
163 int MImm = (int)
MI->getOperand(OpNum).getImm() & 0x7f;
165 O <<
"(" << MImm - 64 <<
")0";
167 O <<
"(" << MImm <<
")1";
172 int CC = (int)
MI->getOperand(OpNum).getImm();
178 int RD = (int)
MI->getOperand(OpNum).getImm();
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
void printAnnotation(raw_ostream &OS, StringRef Annot)
Utility function for printing annotations.
Instances of this class represent a single low-level machine instruction.
Instances of this class represent operands of the MCInst class.
MCRegister getReg() const
Returns the register number.
const MCExpr * getExpr() const
Wrapper class representing physical registers and target specific virtual registers.
Generic base class for all target subtargets.
Represent a constant reference to a string, i.e.
static const char * getRegisterName(MCRegister Reg)
void printMemASOperandHM(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printMImmOperand(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printRegName(raw_ostream &OS, MCRegister Reg) override
Print the assembler register name.
bool printAliasInstr(const MCInst *, uint64_t Address, const MCSubtargetInfo &, raw_ostream &)
void printOperand(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printMemASOperandASX(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printRDOperand(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printMemASOperandRRM(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printCCOperand(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printMemASXOperand(const MCInst *MI, int OpNum, const MCSubtargetInfo &STI, raw_ostream &OS)
void printInst(const MCInst *MI, uint64_t Address, StringRef Annot, const MCSubtargetInfo &STI, raw_ostream &OS) override
Print the specified MCInst to the specified raw_ostream.
void printInstruction(const MCInst *, uint64_t, const MCSubtargetInfo &, raw_ostream &)
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
static const char * VECondCodeToString(VECC::CondCode CC)
static const char * VERDToString(VERD::RoundingMode R)