New test - practically wrote itself.

llvm-svn: 34538
This commit is contained in:
Jim Laskey 2007-02-23 22:12:08 +00:00
parent 0eb70ebbe5
commit 4938bb7268
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
; RUN: llvm-as < %s | llc | grep mflr | wc -l | grep 1
target datalayout = "e-p:32:32"
target triple = "powerpc-apple-darwin8"
@str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
implementation ; Functions:
define i32 @main() {
entry:
%tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @str, i32 0, i32 0) ) ; <i32> [#uses=0]
ret i32 0
}
declare i32 @printf(i8*, ...)