repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
X86
/
ptrtoint-constexpr.ll
blob
58d1895f0b15850ff6d698711a061f38bea9551b
1
; RUN: llc < %s -mtriple=i386-linux | FileCheck %s
2
%union.x = type { i32 }
3
4
; CHECK: .globl r
5
; CHECK: r:
6
; CHECK: .long r
7
8
@r = global %union.x { i32 ptrtoint (ptr @r to i32) }, align 4
9
10
; CHECK: .globl x
11
; CHECK: x:
12
; CHECK: .quad 3
13
14
@x = global i64 mul (i64 3, i64 ptrtoint (ptr getelementptr (i2, ptr null, i64 1) to i64))