AArch64/PowerPC/SystemZ/X86: This patch fixes the interface, usage, and all
[oota-llvm.git] / test / CodeGen / PowerPC / private.ll
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu > %t
4 ; RUN: grep .Lfoo: %t
5 ; RUN: grep bl.*\.Lfoo %t
6 ; RUN: grep .Lbaz: %t
7 ; RUN: grep lis.*\.Lbaz %t
8 ; RUN: llc < %s -mtriple=powerpc-apple-darwin > %t
9 ; RUN: grep L_foo: %t
10 ; RUN: grep bl.*\L_foo %t
11 ; RUN: grep L_baz: %t
12 ; RUN: grep lis.*\L_baz %t
13
14 define private void @foo() nounwind {
15         ret void
16 }
17
18 @baz = private global i32 4
19
20 define i32 @bar() nounwind {
21         call void @foo()
22         %1 = load i32* @baz, align 4
23         ret i32 %1
24 }