mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-15 13:40:33 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3022 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c0ce68bf4a
commit
7e1635e895
21
test/Feature/indirectcall2.ll
Normal file
21
test/Feature/indirectcall2.ll
Normal file
@ -0,0 +1,21 @@
|
||||
implementation
|
||||
|
||||
ulong "test"(ulong %X)
|
||||
begin
|
||||
ret ulong %X
|
||||
end
|
||||
|
||||
ulong "fib"(ulong %n)
|
||||
begin
|
||||
%T = setlt ulong %n, 2 ; {bool}:0
|
||||
br bool %T, label %BaseCase, label %RecurseCase
|
||||
|
||||
RecurseCase:
|
||||
%result = call ulong %test(ulong %n)
|
||||
br label %BaseCase
|
||||
|
||||
BaseCase:
|
||||
%X = phi ulong [1, %0], [2, %RecurseCase]
|
||||
ret ulong %X
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user