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
Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
X86
/
private.ll
blob
aeaf0f7ac7ae795c7c3115745ef51f4681d63827
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, ptr @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: