[PATCH] D66458: [COFF] Fix section name for constants larger than 64 bits on Windows

Sr.Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 18:47:24 PDT 2019


zsrkmyn created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

`APIntToHexString` returns wrong value (`"0000000000000000ffffffffffffffff"`)
for integer larger than 64 bits, and thus
`TargetLoweringObjectFileCOFF::getSectionForConstant` returns same section name
for all numbers larger than 64 bits. This patch tries to fix it.


Repository:
  rL LLVM

https://reviews.llvm.org/D66458

Files:
  llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  llvm/test/CodeGen/X86/coff-fp-section-name.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66458.216035.patch
Type: text/x-patch
Size: 4403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190820/95eca47d/attachment.bin>


More information about the llvm-commits mailing list