24 #define DEBUG_TYPE "asm-printer"
34 #define GET_INSTRUCTION_NAME
35 #define PRINT_ALIAS_INSTR
36 #include "SparcGenAsmWriter.inc"
58 default:
return false;
66 default:
return false;
72 case SP::I7: O <<
"\tret";
return true;
73 case SP::O7: O <<
"\tretl";
return true;
83 case SP::V9FCMPS:
case SP::V9FCMPD:
case SP::V9FCMPQ:
84 case SP::V9FCMPES:
case SP::V9FCMPED:
case SP::V9FCMPEQ: {
93 case SP::V9FCMPS: O <<
"\tfcmps ";
break;
94 case SP::V9FCMPD: O <<
"\tfcmpd ";
break;
95 case SP::V9FCMPQ: O <<
"\tfcmpq ";
break;
96 case SP::V9FCMPES: O <<
"\tfcmpes ";
break;
97 case SP::V9FCMPED: O <<
"\tfcmped ";
break;
98 case SP::V9FCMPEQ: O <<
"\tfcmpeq ";
break;
131 O << ((int) MO.
getImm() & 0x7f);
136 assert(MO.
isExpr() &&
"Unknown operand kind in printOperand");
146 if (Modifier && !
strcmp(Modifier,
"arith")) {
175 case SP::MOVFCCrr:
case SP::V9MOVFCCrr:
176 case SP::MOVFCCri:
case SP::V9MOVFCCri:
177 case SP::FMOVS_FCC:
case SP::V9FMOVS_FCC:
178 case SP::FMOVD_FCC:
case SP::V9FMOVD_FCC:
179 case SP::FMOVQ_FCC:
case SP::V9FMOVQ_FCC:
181 CC = (CC < 16) ? (CC + 16) : CC;
186 CC = (CC < 32) ? (CC + 32) : CC;
bool printAliasInstr(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
void printInstruction(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &O)
Maximum length of the test input libFuzzer tries to guess a good value based on the corpus and reports it always prefer smaller inputs during the corpus shuffle When libFuzzer itself reports a bug this exit code will be used If indicates the maximal total time in seconds to run the fuzzer minimizes the provided crash input Use with strcmp
void printInst(const MCInst *MI, raw_ostream &O, StringRef Annot, const MCSubtargetInfo &STI) override
Print the specified MCInst to the specified raw_ostream.
static const char * SPARCCondCodeToString(SPCC::CondCodes CC)
static const char * getRegisterName(unsigned RegNo)
unsigned getReg() const
Returns the register number.
void printRegName(raw_ostream &OS, unsigned RegNo) const override
Print the assembler register name.
Instances of this class represent a single low-level machine instruction.
const MCExpr * getExpr() const
void printMemOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS, const char *Modifier=nullptr)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
bool printGetPCX(const MCInst *MI, unsigned OpNo, const MCSubtargetInfo &STI, raw_ostream &OS)
const FeatureBitset & getFeatureBits() const
getFeatureBits - Return the feature bits.
void printOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS)
unsigned getOpcode() const
void printCCOperand(const MCInst *MI, int opNum, const MCSubtargetInfo &STI, raw_ostream &OS)
unsigned getNumOperands() const
MCSubtargetInfo - Generic base class for all target subtargets.
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
bool isV9(const MCSubtargetInfo &STI) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void printAnnotation(raw_ostream &OS, StringRef Annot)
Utility function for printing annotations.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Instances of this class represent operands of the MCInst class.
bool printSparcAliasInstr(const MCInst *MI, const MCSubtargetInfo &STI, raw_ostream &OS)
LLVM_NODISCARD std::string lower() const
const MCOperand & getOperand(unsigned i) const