2004-11-06 20:38:27 +00:00
|
|
|
; XFAIL: *
|
2003-09-16 15:29:54 +00:00
|
|
|
; RUN: llvm-as < %s | opt -raise | llvm-dis | grep '= cast' | not grep \*
|
2002-03-21 23:00:48 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2003-06-28 23:02:20 +00:00
|
|
|
%Hash "MakeHash"(int %size, int (uint) * %map) {
|
2002-03-21 23:00:48 +00:00
|
|
|
%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
|
2003-06-28 23:02:20 +00:00
|
|
|
}
|
2002-03-21 23:00:48 +00:00
|
|
|
|