mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2438 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4dca807d8
commit
e23a7e99b3
10
test/Assembler/2002-05-02-ParseError.ll
Normal file
10
test/Assembler/2002-05-02-ParseError.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; This should parse correctly without an 'implementation', but there seems to
|
||||
; be a problem...
|
||||
|
||||
%List = type { int, %List* }
|
||||
|
||||
%List* "test"()
|
||||
begin
|
||||
ret %List* null
|
||||
end
|
||||
|
23
test/Transforms/LevelRaise/2002-05-02-MissedRaise.ll
Normal file
23
test/Transforms/LevelRaise/2002-05-02-MissedRaise.ll
Normal file
@ -0,0 +1,23 @@
|
||||
; This testcase is not level raised properly...
|
||||
;
|
||||
; RUN: if as < %s | opt -raise | dis | grep ' cast ' | grep '*'
|
||||
; RUN: then exit 1
|
||||
; RUN: else exit 0
|
||||
; RUN: fi
|
||||
|
||||
%List = type { int, %List* }
|
||||
|
||||
implementation
|
||||
|
||||
%List* "createList"(uint %Depth)
|
||||
begin
|
||||
%reg110 = malloc uint, uint 4
|
||||
store uint %Depth, uint* %reg110
|
||||
%reg113 = call %List* %createList( uint %Depth )
|
||||
%reg217 = getelementptr uint* %reg110, uint 2
|
||||
%cast221 = cast uint* %reg217 to %List**
|
||||
store %List* %reg113, %List** %cast221
|
||||
%cast222 = cast uint* %reg110 to %List*
|
||||
ret %List* %cast222
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user