llvm-6502/test/CodeGen/X86/ptrtoint-constexpr.ll
Chris Lattner c19ee610f6 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
2009-08-01 22:25:12 +00:00

9 lines
221 B
LLVM

; RUN: llvm-as < %s | llc -mtriple=i386-linux | FileCheck %s
%union.x = type { i64 }
; CHECK: .globl r
; CHECK: r:
; CHECK: .quad ((r) & 4294967295)
@r = global %union.x { i64 ptrtoint (%union.x* @r to i64) }, align 4