[llvm-commits] [llvm] r124233 - /llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Bill Wendling
isanbard at gmail.com
Tue Jan 25 13:48:36 PST 2011
Author: void
Date: Tue Jan 25 15:48:36 2011
New Revision: 124233
URL: http://llvm.org/viewvc/llvm-project?rev=124233&view=rev
Log:
Revert 124230. It was causing test failures.
Modified:
llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp?rev=124233&r1=124232&r2=124233&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp Tue Jan 25 15:48:36 2011
@@ -673,14 +673,12 @@
void ARMInstPrinter::printVFPf32ImmOperand(const MCInst *MI, unsigned OpNum,
raw_ostream &O) {
- const MCOperand &MO = MI->getOperand(OpNum);
- O << '#' << APInt(64, MO.getImm(), true).bitsToDouble();
+ O << '#' << (float)MI->getOperand(OpNum).getFPImm();
}
void ARMInstPrinter::printVFPf64ImmOperand(const MCInst *MI, unsigned OpNum,
raw_ostream &O) {
- const MCOperand &MO = MI->getOperand(OpNum);
- O << '#' << APInt(64, MO.getImm(), true).bitsToDouble();
+ O << '#' << MI->getOperand(OpNum).getFPImm();
}
void ARMInstPrinter::printNEONModImmOperand(const MCInst *MI, unsigned OpNum,
More information about the llvm-commits
mailing list