mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
The floating point value is encoded in its binary form as an Imm. Convert it
appropriately so that it prints out the decimal representation. llvm-svn: 124230
This commit is contained in:
parent
195d8c3988
commit
80dd6f7494
@ -673,12 +673,14 @@ void ARMInstPrinter::printT2AddrModeSoRegOperand(const MCInst *MI,
|
||||
|
||||
void ARMInstPrinter::printVFPf32ImmOperand(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O) {
|
||||
O << '#' << (float)MI->getOperand(OpNum).getFPImm();
|
||||
const MCOperand &MO = MI->getOperand(OpNum);
|
||||
O << '#' << APInt(64, MO.getImm(), true).bitsToDouble();
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printVFPf64ImmOperand(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O) {
|
||||
O << '#' << MI->getOperand(OpNum).getFPImm();
|
||||
const MCOperand &MO = MI->getOperand(OpNum);
|
||||
O << '#' << APInt(64, MO.getImm(), true).bitsToDouble();
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printNEONModImmOperand(const MCInst *MI, unsigned OpNum,
|
||||
|
Loading…
Reference in New Issue
Block a user