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
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
XCore
/
private.ll
blob
a188864a866cb5e0b809c80834d6d96c6b176f0d
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, i32* @baz, align 4
18
ret i32 %1
19
}
20
21
; CHECK: .Lbaz: