mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
e3ff5ada8a
Remove "target endian/pointersize" or add "target datalayout" to make the test parse properly or set the datalayout because defaults changes. For PR645: Make global names use the @ prefix. For llvm-upgrade changes: Fix test cases or completely remove use of llvm-upgrade for test cases that cannot survive the new renaming or upgrade capabilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
868 B
LLVM
25 lines
868 B
LLVM
; This example should be raised to return a Hash directly without casting.
|
|
; LevelRaise should eliminate all cast instructions from this testcase.
|
|
;
|
|
; XFAIL: *
|
|
; RUN: llvm-upgrade < %s &&
|
|
; RUN: llvm-upgrade < %s | llvm-as > /dev/null &&
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | notcast
|
|
|
|
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
|
|
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
|
|
%hash_el = type { uint, sbyte *, \2 } *
|
|
implementation
|
|
|
|
%Hash "MakeHash"(int %size, int (uint) * %map)
|
|
begin
|
|
%reg112 = malloc sbyte, uint 24 ; <sbyte *> [#uses=5]
|
|
%reg115 = malloc sbyte, uint 96 ; <sbyte *> [#uses=1]
|
|
%cast237 = bitcast sbyte * %reg112 to sbyte * * ; <sbyte * *> [#uses=1]
|
|
store sbyte * %reg115, sbyte * * %cast237
|
|
|
|
%cast246 = bitcast sbyte * %reg112 to %Hash ; <%Hash> [#uses=1]
|
|
ret %Hash %cast246
|
|
end
|
|
|