Initial checkin
[oota-llvm.git] / test / Feature / indirectcall2.ll
1 implementation
2
3 ulong "test"(ulong %X)
4 begin
5         ret ulong %X
6 end
7
8 ulong "fib"(ulong %n)
9 begin
10   %T = setlt ulong %n, 2       ; {bool}:0
11   br bool %T, label %BaseCase, label %RecurseCase
12
13 RecurseCase:
14   %result = call ulong %test(ulong %n)
15   br label %BaseCase
16
17 BaseCase:
18   %X = phi ulong [1, %0], [2, %RecurseCase]
19   ret ulong %X
20 end
21