repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
CodeGen
/
XCore
/
private.ll
blob
537d63b903a0492e54c0f1b6937c5b061ce1877a
1
; Test to make sure that the 'private' is used correctly.
2
;
3
; RUN: llc < %s -march=xcore > %t
4
; RUN: grep .Lfoo: %t
5
; RUN: grep bl.*\.Lfoo %t
6
; RUN: grep .Lbaz: %t
7
; RUN: grep ldw.*\.Lbaz %t
8
9
define private void @foo() {
10
ret void
11
}
12
13
@baz = private global i32 4
14
15
define i32 @bar() {
16
call void @foo()
17
%1 = load i32* @baz, align 4
18
ret i32 %1
19
}