mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e640f1fc9
commit
df268ceb06
23
test/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
Normal file
23
test/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
Normal file
@ -0,0 +1,23 @@
|
||||
; RUN: if as < %s | opt -raise | dis | grep '= cast' | grep \*
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
||||
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
|
||||
%HashEntry = type { uint, sbyte *, \2 } *
|
||||
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
|
||||
%hash_entry = type { uint, sbyte *, \2 * }
|
||||
implementation
|
||||
|
||||
%Hash "MakeHash"(int %size, int (uint) * %map)
|
||||
begin
|
||||
bb0: ;[#uses=1]
|
||||
%reg112 = malloc sbyte * *, uint 3 ; <sbyte * * *> [#uses=5]
|
||||
%reg107-uint = cast int %size to uint ; <uint> [#uses=1]
|
||||
%reg115 = malloc sbyte *, uint %reg107-uint ; <sbyte * *> [#uses=1]
|
||||
store sbyte * * %reg115, sbyte * * * %reg112
|
||||
|
||||
%cast246 = cast sbyte * * * %reg112 to %Hash ; <%Hash> [#uses=1]
|
||||
ret %Hash %cast246
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user