mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
12ff96854d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17514 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
695 B
LLVM
20 lines
695 B
LLVM
; XFAIL: *
|
|
; RUN: llvm-as < %s | opt -raise | llvm-dis | grep '= cast' | not grep \*
|
|
|
|
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
|
|
%HashEntry = type { uint, sbyte *, \2 } *
|
|
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
|
|
%hash_entry = type { uint, sbyte *, \2 * }
|
|
implementation
|
|
|
|
%Hash "MakeHash"(int %size, int (uint) * %map) {
|
|
%reg112 = malloc sbyte * *, uint 3 ; <sbyte * * *> [#uses=5]
|
|
%reg107-uint = cast int %size to uint ; <uint> [#uses=1]
|
|
%reg115 = malloc sbyte *, uint %reg107-uint ; <sbyte * *> [#uses=1]
|
|
store sbyte * * %reg115, sbyte * * * %reg112
|
|
|
|
%cast246 = cast sbyte * * * %reg112 to %Hash ; <%Hash> [#uses=1]
|
|
ret %Hash %cast246
|
|
}
|
|
|