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