llvm.org GIT mirror llvm / da10e33
New test - practically wrote itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34538 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Laskey 13 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc | grep mflr | wc -l | grep 1
1
2 target datalayout = "e-p:32:32"
3 target triple = "powerpc-apple-darwin8"
4 @str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
5
6 implementation ; Functions:
7
8 define i32 @main() {
9 entry:
10 %tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @str, i32 0, i32 0) ) ; [#uses=0]
11 ret i32 0
12 }
13
14 declare i32 @printf(i8*, ...)