Make the testcase more interesting so that DCE does not eliminate it.
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-03-20-Crash.ll
1 ; Level raise is making an incorrect transformation, which causes incorrect 
2 ; bytecode to be generated.
3 ;
4 ; RUN: as < %s | opt -raise | dis
5 ;
6
7         %Village = type { [4 x \3 *], \2 *, { \2 *, { int, int, int, \5 * } *, \2 * }, { int, int, int, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * }, { \2 *, { int, int, int, \6 * } *, \2 * } }, int, int }
8 implementation
9
10 %Village *"get_results"(%Village * %village)
11 begin
12 bb0:                                    ;[#uses=1]
13         %cast121 = cast int 24 to %Village *            ; <%Village *> [#uses=1]
14         %reg123 = add %Village * %village, %cast121             ; <%Village *> [#uses=1]
15         %reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0              ; <%Village *> [#uses=1]
16         ret %Village *%reg118
17 end