Removing Makefiles. Regression tests are now run by QMTest.
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-03-21-MissedRaise.ll
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.
3 ;
4
5 ; RUN: as < %s | opt -raise | dis | not grep cast 
6
7         %Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
8         %hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
9         %hash_el = type { uint, sbyte *, \2 } *
10 implementation
11
12 %Hash "MakeHash"(int %size, int (uint) * %map)
13 begin
14         %reg112 = malloc sbyte, uint 24         ; <sbyte *> [#uses=5]
15         %reg115 = malloc sbyte, uint 96         ; <sbyte *> [#uses=1]
16         %cast237 = cast sbyte * %reg112 to sbyte * *            ; <sbyte * *> [#uses=1]
17         store sbyte * %reg115, sbyte * * %cast237
18
19         %cast246 = cast sbyte * %reg112 to %Hash                ; <%Hash> [#uses=1]
20         ret %Hash %cast246
21 end
22