]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/PowerPC/private.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.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 | \
4 ; RUN: FileCheck --check-prefix=LINUX %s
5 ;
6 ; RUN: llc < %s -mtriple=powerpc-apple-darwin | \
7 ; RUN: FileCheck --check-prefix=OSX %s
8
9 ; LINUX: .Lfoo:
10 ; OSX: l_foo:
11 define private void @foo() nounwind {
12         ret void
13 }
14
15 define i32 @bar() nounwind {
16 ; LINUX: bl{{.*}}.Lfoo
17 ; OSX: bl{{.*}}l_foo
18         call void @foo()
19
20 ; LINUX: lis{{.*}}.Lbaz
21 ; OSX:  lis{{.*}}l_baz
22         %1 = load i32* @baz, align 4
23         ret i32 %1
24 }
25
26 ; LINUX: .Lbaz:
27 ; OSX: l_baz:
28 @baz = private global i32 4