mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-20 10:30:17 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -673,12 +673,14 @@ void ARMInstPrinter::printT2AddrModeSoRegOperand(const MCInst *MI,
|
|||||||
|
|
||||||
void ARMInstPrinter::printVFPf32ImmOperand(const MCInst *MI, unsigned OpNum,
|
void ARMInstPrinter::printVFPf32ImmOperand(const MCInst *MI, unsigned OpNum,
|
||||||
raw_ostream &O) {
|
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,
|
void ARMInstPrinter::printVFPf64ImmOperand(const MCInst *MI, unsigned OpNum,
|
||||||
raw_ostream &O) {
|
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,
|
void ARMInstPrinter::printNEONModImmOperand(const MCInst *MI, unsigned OpNum,
|
||||||
|
Reference in New Issue
Block a user