Mercurial > hg > CbC > CbC_llvm
annotate test/CodeGen/X86/darwin-stub.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children |
rev | line source |
---|---|
0 | 1 ; RUN: llc < %s -mtriple=i386-apple-darwin | grep stub |
2 ; RUN: llc < %s -mtriple=i386-apple-darwin9 | not grep stub | |
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: | |
95 | 8 %0 = tail call i32 @puts(i8* getelementptr ([13 x i8], [13 x i8]* @"\01LC", i32 0, i32 0)) nounwind ; <i32> [#uses=0] |
0 | 9 ret i32 0 |
10 } | |
11 | |
12 declare i32 @puts(i8*) |