2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s | grep mflr | count 1
|
2007-02-24 06:12:08 +08:00
|
|
|
|
|
|
|
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]
|
|
|
|
|
|
|
|
|
|
|
|
define i32 @main() {
|
|
|
|
entry:
|
2015-03-14 02:20:45 +08:00
|
|
|
%tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8], [18 x i8]* @str, i32 0, i32 0) ) ; <i32> [#uses=0]
|
2007-02-24 06:12:08 +08:00
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @printf(i8*, ...)
|