blob: 56f72e75b16abd409b70c5df96c01d5338f90722 [file] [log] [blame]
Rafael Espindolabb46f522009-01-15 20:18:42 +00001; Test to make sure that the 'private' is used correctly.
2;
Dan Gohmanfce288f2009-09-09 00:09:15 +00003; RUN: llc < %s -march=cellspu > %t
Rafael Espindolabb46f522009-01-15 20:18:42 +00004; RUN: grep .Lfoo: %t
5; RUN: grep brsl.*\.Lfoo %t
6; RUN: grep .Lbaz: %t
7; RUN: grep ila.*\.Lbaz %t
8
9
10declare void @foo()
11
12define private void @foo() {
13 ret void
14}
15
Dan Gohmanaceba312010-01-05 17:55:26 +000016@baz = private global i32 4
Rafael Espindolabb46f522009-01-15 20:18:42 +000017
18define i32 @bar() {
19 call void @foo()
20 %1 = load i32* @baz, align 4
21 ret i32 %1
22}