diff options
Diffstat (limited to 'test/CodeGen/X86/darwin-stub.ll')
-rw-r--r-- | test/CodeGen/X86/darwin-stub.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/darwin-stub.ll b/test/CodeGen/X86/darwin-stub.ll new file mode 100644 index 0000000..b4d2e1a --- /dev/null +++ b/test/CodeGen/X86/darwin-stub.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -mtriple=i386-apple-darwin | grep stub +; RUN: llc < %s -mtriple=i386-apple-darwin9 | not grep stub + +@"\01LC" = internal constant [13 x i8] c"Hello World!\00" ; <[13 x i8]*> [#uses=1] + +define i32 @main() nounwind { +entry: + %0 = tail call i32 @puts(i8* getelementptr ([13 x i8]* @"\01LC", i32 0, i32 0)) nounwind ; <i32> [#uses=0] + ret i32 0 +} + +declare i32 @puts(i8*) |