]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/XCore/private.ll
Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to function...
[opencl/llvm.git] / test / CodeGen / XCore / private.ll
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llc < %s -march=xcore | FileCheck %s
5 define private void @foo() {
6 ; CHECK: .Lfoo:
7         ret void
8 }
10 @baz = private global i32 4
12 define i32 @bar() {
13 ; CHECK-LABEL: bar:
14 ; CHECK: bl .Lfoo
15 ; CHECK: ldw r0, dp[.Lbaz]
16         call void @foo()
17         %1 = load i32* @baz, align 4
18         ret i32 %1
19 }
21 ; CHECK: .Lbaz: