Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=i386-apple-darwin | grep stub |
2 | ; RUN: llc < %s -mtriple=i386-apple-darwin9 | not grep stub | ||||
Evan Cheng | 91a23c8 | 2008-09-20 00:13:45 +0000 | [diff] [blame] | 3 | |
4 | @"\01LC" = internal constant [13 x i8] c"Hello World!\00" ; <[13 x i8]*> [#uses=1] | ||||
5 | |||||
6 | define i32 @main() nounwind { | ||||
7 | entry: | ||||
8 | %0 = tail call i32 @puts(i8* getelementptr ([13 x i8]* @"\01LC", i32 0, i32 0)) nounwind ; <i32> [#uses=0] | ||||
9 | ret i32 0 | ||||
10 | } | ||||
11 | |||||
12 | declare i32 @puts(i8*) |