blob: 1fd48a0d394d6532676a14c0d509b170ffad9f86 [file] [log] [blame]
Reid Spencerc0948362007-01-16 18:08:22 +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
5implementation
6
7define i63 "test"(i63 %X)
8begin
9 ret i63 %X
10end
11
12define i63 "fib"(i63 %n)
13begin
14 %T = icmp ult i63 %n, 2 ; {i1}:0
15 br i1 %T, label %BaseCase, label %RecurseCase
16
17RecurseCase:
18 %result = call i63 %test(i63 %n)
19 br label %BaseCase
20
21BaseCase:
22 %X = phi i63 [1, %0], [2, %RecurseCase]
23 ret i63 %X
24end
25