2011-09-10 01:14:58 +02:00
|
|
|
; RUN: llc -march=mips < %s | FileCheck %s
|
2011-05-19 22:29:48 +02:00
|
|
|
|
|
|
|
define void @f1(i64 %ll1, float %f, i64 %ll, i32 %i, float %f2) nounwind {
|
|
|
|
entry:
|
2013-03-04 23:25:01 +01:00
|
|
|
; CHECK: move $[[R1:[0-9]+]], $5
|
|
|
|
; CHECK: move $[[R0:[0-9]+]], $4
|
2011-05-19 22:29:48 +02:00
|
|
|
; CHECK: ori $6, ${{[0-9]+}}, 3855
|
|
|
|
; CHECK: ori $7, ${{[0-9]+}}, 22136
|
2011-10-24 19:45:02 +02:00
|
|
|
; CHECK: lw $25, %call16(ff1)
|
2011-05-19 22:29:48 +02:00
|
|
|
; CHECK: jalr
|
|
|
|
tail call void @ff1(i32 %i, i64 1085102592623924856) nounwind
|
2011-05-20 04:30:51 +02:00
|
|
|
; CHECK: lw $25, %call16(ff2)
|
2012-07-25 05:16:47 +02:00
|
|
|
; CHECK: lw $[[R2:[0-9]+]], 80($sp)
|
|
|
|
; CHECK: lw $[[R3:[0-9]+]], 84($sp)
|
2013-03-04 23:25:01 +01:00
|
|
|
; CHECK: move $4, $[[R2]]
|
|
|
|
; CHECK: move $5, $[[R3]]
|
2011-05-19 22:29:48 +02:00
|
|
|
; CHECK: jalr $25
|
|
|
|
tail call void @ff2(i64 %ll, double 3.000000e+00) nounwind
|
|
|
|
%sub = add nsw i32 %i, -1
|
2013-07-13 01:33:22 +02:00
|
|
|
; CHECK-DAG: lw $25, %call16(ff3)
|
|
|
|
; CHECK-DAG: sw $[[R1]], 28($sp)
|
|
|
|
; CHECK-DAG: sw $[[R0]], 24($sp)
|
|
|
|
; CHECK-DAG: move $6, $[[R2]]
|
|
|
|
; CHECK-DAG: move $7, $[[R3]]
|
|
|
|
; CHECK: jalr $25
|
2011-05-19 22:29:48 +02:00
|
|
|
tail call void @ff3(i32 %i, i64 %ll, i32 %sub, i64 %ll1) nounwind
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @ff1(i32, i64)
|
|
|
|
|
|
|
|
declare void @ff2(i64, double)
|
|
|
|
|
|
|
|
declare void @ff3(i32, i64, i32, i64)
|