llvm.org GIT mirror llvm / 7e1635e
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3022 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 implementation
1
2 ulong "test"(ulong %X)
3 begin
4 ret ulong %X
5 end
6
7 ulong "fib"(ulong %n)
8 begin
9 %T = setlt ulong %n, 2 ; {bool}:0
10 br bool %T, label %BaseCase, label %RecurseCase
11
12 RecurseCase:
13 %result = call ulong %test(ulong %n)
14 br label %BaseCase
15
16 BaseCase:
17 %X = phi ulong [1, %0], [2, %RecurseCase]
18 ret ulong %X
19 end
20