blob: 3eef9c551b75f6ae0a7dee97e4e2202685b42747 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc | grep mflr | count 1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3target datalayout = "e-p:32:32"
4target triple = "powerpc-apple-darwin8"
5@str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
6
7
8define i32 @main() {
9entry:
10 %tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @str, i32 0, i32 0) ) ; <i32> [#uses=0]
11 ret i32 0
12}
13
14declare i32 @printf(i8*, ...)