forked from OSchip/llvm-project
parent
236d9afd18
commit
762ef017db
|
@ -216,13 +216,8 @@ void AMDGPUInstPrinter::printClamp(const MCInst *MI, unsigned OpNo,
|
|||
|
||||
void AMDGPUInstPrinter::printLiteral(const MCInst *MI, unsigned OpNo,
|
||||
raw_ostream &O) {
|
||||
union Literal {
|
||||
float f;
|
||||
int32_t i;
|
||||
} L;
|
||||
|
||||
L.i = MI->getOperand(OpNo).getImm();
|
||||
O << L.i << "(" << L.f << ")";
|
||||
int32_t Imm = MI->getOperand(OpNo).getImm();
|
||||
O << Imm << '(' << BitsToFloat(Imm) << ')';
|
||||
}
|
||||
|
||||
void AMDGPUInstPrinter::printLast(const MCInst *MI, unsigned OpNo,
|
||||
|
|
Loading…
Reference in New Issue