mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Manually convert this to new assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
; LevelRaise should eliminate all cast instructions from this testcase.
|
; LevelRaise should eliminate all cast instructions from this testcase.
|
||||||
;
|
;
|
||||||
; XFAIL: *
|
; XFAIL: *
|
||||||
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | notcast
|
; RUN: llvm-as < %s | opt -raise | llvm-dis | notcast
|
||||||
|
|
||||||
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
|
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
|
||||||
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
|
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
|
||||||
@ -13,10 +13,10 @@ implementation
|
|||||||
begin
|
begin
|
||||||
%reg112 = malloc sbyte, uint 24 ; <sbyte *> [#uses=5]
|
%reg112 = malloc sbyte, uint 24 ; <sbyte *> [#uses=5]
|
||||||
%reg115 = malloc sbyte, uint 96 ; <sbyte *> [#uses=1]
|
%reg115 = malloc sbyte, uint 96 ; <sbyte *> [#uses=1]
|
||||||
%cast237 = cast sbyte * %reg112 to sbyte * * ; <sbyte * *> [#uses=1]
|
%cast237 = bitcast sbyte * %reg112 to sbyte * * ; <sbyte * *> [#uses=1]
|
||||||
store sbyte * %reg115, sbyte * * %cast237
|
store sbyte * %reg115, sbyte * * %cast237
|
||||||
|
|
||||||
%cast246 = cast sbyte * %reg112 to %Hash ; <%Hash> [#uses=1]
|
%cast246 = bitcast sbyte * %reg112 to %Hash ; <%Hash> [#uses=1]
|
||||||
ret %Hash %cast246
|
ret %Hash %cast246
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user