Fix the "test" optimization to recognize "dec" as an add of
[oota-llvm.git] / test / CodeGen / CellSPU / private.ll
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llvm-as < %s | llc -march=cellspu > %t
4 ; RUN: grep .Lfoo: %t
5 ; RUN: grep brsl.*\.Lfoo %t
6 ; RUN: grep .Lbaz: %t
7 ; RUN: grep ila.*\.Lbaz %t
8
9
10 declare void @foo()
11
12 define private void @foo() {
13         ret void
14 }
15
16 @baz = private global i32 4;
17
18 define i32 @bar() {
19         call void @foo()
20         %1 = load i32* @baz, align 4
21         ret i32 %1
22 }