repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment
[llvm-core.git]
/
test
/
CodeGen
/
X86
/
private.ll
blob
4b936d2323ec034fdfbc1ee8449dcc85629cb5a1
1
; Test to make sure that the 'private' is used correctly.
2
;
3
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
4
5
define private void @foo() {
6
ret void
7
8
; CHECK: .Lfoo:
9
}
10
11
define i32 @bar() {
12
call void @foo()
13
%1 = load i32, i32* @baz, align 4
14
ret i32 %1
15
16
; CHECK-LABEL: bar:
17
; CHECK: callq .Lfoo
18
; CHECK: movl .Lbaz(%rip)
19
}
20
21
@baz = private global i32 4
22
; CHECK: .Lbaz: