repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
CodeGen
/
AArch64
/
pie.ll
blob
5cd27a8761cc586e148dd8e530a506c27db96569
1
; RUN: llc -mtriple aarch64-pc-linux -relocation-model=pic < %s | FileCheck %s
2
3
@g1 = global i32 42
4
5
define i32* @get_g1() {
6
; CHECK: get_g1:
7
; CHECK: adrp x0, g1
8
; CHECK-NEXT: add x0, x0, :lo12:g1
9
ret i32* @g1
10
}
11
12
!llvm.module.flags = !{!0}
13
14
!0 = !{i32 1, !"PIE Level", i32 2}