comparison test/CodeGen/PowerPC/private.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children 54457678186b
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; Test to make sure that the 'private' is used correctly.
2 ;
3 ; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu > %t
4 ; RUN: grep .Lfoo: %t
5 ; RUN: grep bl.*\.Lfoo %t
6 ; RUN: grep .Lbaz: %t
7 ; RUN: grep lis.*\.Lbaz %t
8 ; RUN: llc < %s -mtriple=powerpc-apple-darwin > %t
9 ; RUN: grep L_foo: %t
10 ; RUN: grep bl.*\L_foo %t
11 ; RUN: grep L_baz: %t
12 ; RUN: grep lis.*\L_baz %t
13
14 define private void @foo() nounwind {
15 ret void
16 }
17
18 @baz = private global i32 4
19
20 define i32 @bar() nounwind {
21 call void @foo()
22 %1 = load i32* @baz, align 4
23 ret i32 %1
24 }