mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
525 B
LLVM
18 lines
525 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc
|
|
target endian = big
|
|
target pointersize = 32
|
|
target triple = "powerpc-apple-darwin8.2.0"
|
|
implementation ; Functions:
|
|
|
|
void %bar(int %G, int %E, int %F, int %A, int %B, int %C, int %D, sbyte* %fmt, ...) {
|
|
%ap = alloca sbyte* ; <sbyte**> [#uses=2]
|
|
call void %llvm.va_start( sbyte** %ap )
|
|
%tmp.1 = load sbyte** %ap ; <sbyte*> [#uses=1]
|
|
%tmp.0 = call double %foo( sbyte* %tmp.1 ) ; <double> [#uses=0]
|
|
ret void
|
|
}
|
|
|
|
declare void %llvm.va_start(sbyte**)
|
|
|
|
declare double %foo(sbyte*)
|