1 ; RUN: llc -mtriple=mips -relocation-model=pic -mips-tail-calls=1 < %s | FileCheck %s
3 define void @f1(i64 %ll1, float %f, i64 %ll, i32 %i, float %f2) nounwind {
5 ; CHECK-DAG: lw $[[R2:[0-9]+]], 80($sp)
6 ; CHECK-DAG: lw $[[R3:[0-9]+]], 84($sp)
7 ; CHECK-DAG: move $[[R1:[0-9]+]], $5
8 ; CHECK-DAG: move $[[R0:[0-9]+]], $4
9 ; CHECK-DAG: ori $6, ${{[0-9]+}}, 3855
10 ; CHECK-DAG: ori $7, ${{[0-9]+}}, 22136
11 ; CHECK-DAG: lw $25, %call16(ff1)
13 tail call void @ff1(i32 %i, i64 1085102592623924856) nounwind
14 ; CHECK-DAG: lw $25, %call16(ff2)
15 ; CHECK-DAG: move $4, $[[R2]]
16 ; CHECK-DAG: move $5, $[[R3]]
18 tail call void @ff2(i64 %ll, double 3.000000e+00) nounwind
19 %sub = add nsw i32 %i, -1
20 ; CHECK-DAG: lw $25, %call16(ff3)
21 ; CHECK-DAG: sw $[[R1]], 28($sp)
22 ; CHECK-DAG: sw $[[R0]], 24($sp)
23 ; CHECK-DAG: move $6, $[[R2]]
24 ; CHECK-DAG: move $7, $[[R3]]
26 tail call void @ff3(i32 %i, i64 %ll, i32 %sub, i64 %ll1) nounwind
30 declare void @ff1(i32, i64)
32 declare void @ff2(i64, double)
34 declare void @ff3(i32, i64, i32, i64)