blob: 08e49ecd5e2f9103d6d5362828cddfb8dc6b1d41 [file] [log] [blame]
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
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