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