aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/InstPrinter
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-01-25 21:48:36 +0000
committerBill Wendling <isanbard@gmail.com>2011-01-25 21:48:36 +0000
commit0f4db7efa1aa901d798df95f16d8361450b69fe1 (patch)
tree71d6a8ee72aa8625233d1ce706480ac3dd5dcd1c /lib/Target/ARM/InstPrinter
parent261b9c1a35e1c2ef7e4cc387443dd8544d8b48de (diff)
downloadexternal_llvm-0f4db7efa1aa901d798df95f16d8361450b69fe1.zip
external_llvm-0f4db7efa1aa901d798df95f16d8361450b69fe1.tar.gz
external_llvm-0f4db7efa1aa901d798df95f16d8361450b69fe1.tar.bz2
Revert 124230. It was causing test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/InstPrinter')
-rw-r--r--lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
index 46616f8..820c2e6 100644
--- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
@@ -673,14 +673,12 @@ void ARMInstPrinter::printT2AddrModeSoRegOperand(const MCInst *MI,
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,