mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
35191769a5
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1928 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
761 B
LLVM
18 lines
761 B
LLVM
; Level raise is making an incorrect transformation, which causes incorrect
|
|
; bytecode to be generated.
|
|
;
|
|
; RUN: as < %s | opt -raise | dis
|
|
;
|
|
|
|
%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 }
|
|
implementation
|
|
|
|
%Village *"get_results"(%Village * %village)
|
|
begin
|
|
bb0: ;[#uses=1]
|
|
%cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1]
|
|
%reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1]
|
|
%reg118 = load %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
|
|
ret %Village *%reg118
|
|
end
|