diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-09-29 19:59:06 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-09-29 19:59:06 +0000 |
commit | 6fdd9e1f3566ec9cc7a66c0ca2cd742057ac95f0 (patch) | |
tree | bd70bcce436de8fca43b1e7956f51a360af81686 /lib/Target/Sparc | |
parent | a96879a26dad2e68af65fc985e89b4e8773ea726 (diff) |
Don't use .quad to output double constants. The assembler must have a bug or
something, because the wrong bit patterns get output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcAsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index c2a596873a..56ec97a088 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -261,7 +261,8 @@ void V8Printer::emitGlobalConstant(const Constant *CV) { uint64_t UVal; } U; U.FVal = Val; - O << ".quad\t" << U.UVal << "\t! double " << Val << "\n"; + O << ".word\t0x" << std::hex << (U.UVal >> 32) << std::dec << "\t! double " << Val << "\n"; + O << ".word\t0x" << std::hex << (U.UVal & 0xffffffffUL) << std::dec << "\t! double " << Val << "\n"; return; } } |