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,
|
void AMDGPUInstPrinter::printLiteral(const MCInst *MI, unsigned OpNo,
|
||||||
raw_ostream &O) {
|
raw_ostream &O) {
|
||||||
union Literal {
|
int32_t Imm = MI->getOperand(OpNo).getImm();
|
||||||
float f;
|
O << Imm << '(' << BitsToFloat(Imm) << ')';
|
||||||
int32_t i;
|
|
||||||
} L;
|
|
||||||
|
|
||||||
L.i = MI->getOperand(OpNo).getImm();
|
|
||||||
O << L.i << "(" << L.f << ")";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMDGPUInstPrinter::printLast(const MCInst *MI, unsigned OpNo,
|
void AMDGPUInstPrinter::printLast(const MCInst *MI, unsigned OpNo,
|
||||||
|
|
Loading…
Reference in New Issue