mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Use helper function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f93cf49fc
commit
261698fbd5
@ -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…
x
Reference in New Issue
Block a user