1 ; RUN: llc -march=mipsel -relocation-model=pic -mips-tail-calls=1 < %s | FileCheck %s
5 ; CHECK: lw $25, %call16(foo2)(${{[0-9]+}})
9 define void @foo6(i32 %n) {
11 %tobool1 = icmp eq i32 %n, 0
12 br i1 %tobool1, label %while.end, label %while.body
14 while.body: ; preds = %entry, %while.body
15 %n.addr.02 = phi i32 [ %dec, %while.body ], [ %n, %entry ]
16 %dec = add nsw i32 %n.addr.02, -1
17 tail call void @foo2()
18 %tobool = icmp eq i32 %dec, 0
19 br i1 %tobool, label %while.end, label %while.body
21 while.end: ; preds = %while.body, %entry
28 ; CHECK: lw $25, %call16(foo2)(${{[0-9]+}})
30 ; CHECK: lw $25, %call16(foo2)(${{[0-9]+}})
32 ; CHECK: lw $25, %call16(foo2)(${{[0-9]+}})
37 tail call void @foo2()
38 tail call void @foo2()
39 tail call void @foo2()