mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
21a82e6fc7
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29924 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
423 B
LLVM
24 lines
423 B
LLVM
; very simple test
|
|
;
|
|
; RUN: llvm-as < %s | opt -analyze -tddatastructure
|
|
|
|
implementation
|
|
|
|
int *%foo(ulong %A, double %B, long %C) {
|
|
%X = malloc int*
|
|
%D = cast int** %X to ulong
|
|
%E = cast ulong %D to int*
|
|
store int* %E, int** %X
|
|
|
|
%F = malloc {int}
|
|
%G = getelementptr {int}* %F, long 0, ubyte 0
|
|
store int* %G, int** %X
|
|
|
|
%K = malloc int **
|
|
store int** %X, int***%K
|
|
|
|
%H = cast long %C to int*
|
|
ret int* null ; %H
|
|
}
|
|
|