Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / Mips / private.ll
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llc -march=mips < %s | FileCheck %s
4
5 define private void @foo() {
6 ; CHECK-LABEL: foo:
7   ret void
8 }
9
10 @baz = private global i32 4
11
12 define 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* @baz, align 4
19   ret i32 %1
20 }