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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
XCore
/
private.ll
blob
2880c09cb907777aa7db1d2f04fcfa1e5ee02eee
1
; Test to make sure that the 'private' is used correctly.
2
;
3
; RUN: llc < %s -march=xcore | FileCheck %s
4
5
define private void @foo() {
6
; CHECK: .Lfoo:
7
ret void
8
}
9
10
@baz = private global i32 4
11
12
define i32 @bar() {
13
; CHECK-LABEL: bar:
14
; CHECK: bl .Lfoo
15
; CHECK: ldw r0, dp[.Lbaz]
16
call void @foo()
17
%1 = load i32, ptr @baz, align 4
18
ret i32 %1
19
}
20
21
; CHECK: .Lbaz: