mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-12 15:05:06 +00:00
28beeeac4d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
434 B
LLVM
15 lines
434 B
LLVM
; RUN: llvm-as < %s | llc | grep mflr | count 1
|
|
|
|
target datalayout = "e-p:32:32"
|
|
target triple = "powerpc-apple-darwin8"
|
|
@str = internal constant [18 x i8] c"hello world!, %d\0A\00" ; <[18 x i8]*> [#uses=1]
|
|
|
|
|
|
define i32 @main() {
|
|
entry:
|
|
%tmp = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([18 x i8]* @str, i32 0, i32 0) ) ; <i32> [#uses=0]
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @printf(i8*, ...)
|