2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin | grep stub
|
|
|
|
; RUN: llc < %s -mtriple=i386-apple-darwin9 | not grep stub
|
2008-09-20 08:13:45 +08:00
|
|
|
|
|
|
|
@"\01LC" = internal constant [13 x i8] c"Hello World!\00" ; <[13 x i8]*> [#uses=1]
|
|
|
|
|
|
|
|
define i32 @main() nounwind {
|
|
|
|
entry:
|
2015-03-14 02:20:45 +08:00
|
|
|
%0 = tail call i32 @puts(i8* getelementptr ([13 x i8], [13 x i8]* @"\01LC", i32 0, i32 0)) nounwind ; <i32> [#uses=0]
|
2008-09-20 08:13:45 +08:00
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @puts(i8*)
|