• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; Test to make sure that the 'private' is used correctly.
2;
3; RUN: llc < %s  -march=sparc | FileCheck %s
4
5define private void @foo() {
6        ret void
7}
8; CHECK: [[FOO:\..*foo]]:
9
10@baz = private global i32 4
11
12define i32 @bar() {
13        call void @foo()
14	%1 = load i32, i32* @baz, align 4
15        ret i32 %1
16}
17
18; CHECK: call [[FOO]]
19; CHECK: ld {{.+}}[[BAZ:\..*baz]]
20
21; CHECK: [[BAZ]]
22