1 ; Level raise is making an incorrect transformation, which causes incorrect
2 ; bytecode to be generated.
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis
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 }
10 %Village *"get_results"(%Village * %village)
13 %cast121 = cast int 24 to ulong ; <%Village *> [#uses=1]
14 %A = cast %Village* %village to ulong
15 %reg123 = add ulong %A, %cast121 ; <%Village *> [#uses=1]
16 %reg123 = cast ulong %reg123 to %Village*
17 %idx = getelementptr %Village * %reg123, long 0, uint 0, long 0 ; <%Village *> [#uses=1]
18 %reg118 = load %Village** %idx