mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
New testcase
llvm-svn: 3022
This commit is contained in:
parent
5bd9f0689a
commit
5368ef05ab
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