Debian Codegraph @

llvm/test/CodeGen/PowerPC/private.ll

raw
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
4
5 ; CHECK: .Lfoo:
6 define private void @foo() nounwind {
7 ret void
8 }
9
10 define i32 @bar() nounwind {
11 ; CHECK: bl{{.*}}.Lfoo
12 call void @foo()
13
14 ; CHECK: lis{{.*}}.Lbaz
15 %1 = load i32, ptr @baz, align 4
16 ret i32 %1
17 }
18
19 ; CHECK: .Lbaz:
20 @baz = private global i32 4