repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
revert a hunk of r82018 that wasn't supposed to go in yet.
[llvm/avr.git]
/
test
/
CodeGen
/
SPARC
/
private.ll
blob
8fa3e7e52d8d8641a9b458dbba6324d94df46c45
1
; Test to make sure that the 'private' is used correctly.
2
;
3
; RUN: llc < %s -march=sparc > %t
4
; RUN: grep .foo: %t
5
; RUN: grep call.*\.foo %t
6
; RUN: grep .baz: %t
7
; RUN: grep ld.*\.baz %t
8
9
declare void @foo()
10
11
define private void @foo() {
12
ret void
13
}
14
15
@baz = private global i32 4;
16
17
define i32 @bar() {
18
call void @foo()
19
%1 = load i32* @baz, align 4
20
ret i32 %1
21
}