blob: 5b7c68df22c2054f655f713c2e442d2bf816f837 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5
6define i63 @"test"(i63 %X)
7begin
8 ret i63 %X
9end
10
11define i63 @"fib"(i63 %n)
12begin
13 %T = icmp ult i63 %n, 2 ; {i1}:0
14 br i1 %T, label %BaseCase, label %RecurseCase
15
16RecurseCase:
17 %result = call i63 @test(i63 %n)
18 br label %BaseCase
19
20BaseCase:
21 %X = phi i63 [1, %0], [2, %RecurseCase]
22 ret i63 %X
23end
24