mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
5944ba6336
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6959 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
513 B
LLVM
21 lines
513 B
LLVM
; This testcase is not level raised properly...
|
|
;
|
|
; RUN: as < %s | opt -raise | dis | grep ' cast ' | not grep '*'
|
|
|
|
%List = type { int, %List* }
|
|
|
|
implementation
|
|
|
|
%List* "createList"(uint %Depth)
|
|
begin
|
|
%reg110 = malloc uint, uint 4
|
|
store uint %Depth, uint* %reg110
|
|
%reg113 = call %List* %createList( uint %Depth )
|
|
%reg217 = getelementptr uint* %reg110, long 2
|
|
%cast221 = cast uint* %reg217 to %List**
|
|
store %List* %reg113, %List** %cast221
|
|
%cast222 = cast uint* %reg110 to %List*
|
|
ret %List* %cast222
|
|
end
|
|
|