OSDN Git Service

fix a problem Eli noticed where we would compile the attached ptrtoint
authorChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 22:25:12 +0000 (22:25 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Aug 2009 22:25:12 +0000 (22:25 +0000)
commitc19ee610f6ca1ff90b8298160c78283acb9cbaa1
tree09d6f121d8461291c6f1beb9d2d49434c6a009e2
parentcea01bfe7d764714d13079014f7d812c8b66b202
fix a problem Eli noticed where we would compile the attached ptrtoint
to:

.quad X

even on a 32-bit system, where X is not 64-bits.  There isn't much that
we can do here, so we just print:

.quad ((X) & 4294967295)

instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77818 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/ptrtoint-constexpr.ll [new file with mode: 0644]