1 ; This example should be raised to return a Hash directly without casting. To
2 ; successful, all cast instructions should be eliminated from this testcase.
5 ; RUN: if as < %s | opt -raise | dis | grep cast
10 %Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
11 %hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
12 %hash_el = type { uint, sbyte *, \2 } *
15 %Hash "MakeHash"(int %size, int (uint) * %map)
17 %reg112 = malloc sbyte, uint 24 ; <sbyte *> [#uses=5]
18 %reg115 = malloc sbyte, uint 96 ; <sbyte *> [#uses=1]
19 %cast237 = cast sbyte * %reg112 to sbyte * * ; <sbyte * *> [#uses=1]
20 store sbyte * %reg115, sbyte * * %cast237
22 %cast246 = cast sbyte * %reg112 to %Hash ; <%Hash> [#uses=1]