mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-14 13:07:31 +00:00
91a23c8233
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56378 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
409 B
LLVM
13 lines
409 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | grep stub
|
|
; RUN: llvm-as < %s | llc -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*)
|