[mips] Fix MipsTargetLowering::LowerCall to pass fp128 arguments in floating
point registers.
llvm-svn: 176521
diff --git a/llvm/test/CodeGen/Mips/mips64-call.ll b/llvm/test/CodeGen/Mips/mips64-call.ll
index 7808ac3..ea64ec2 100644
--- a/llvm/test/CodeGen/Mips/mips64-call.ll
+++ b/llvm/test/CodeGen/Mips/mips64-call.ll
@@ -11,3 +11,16 @@
store fp128 %a0, fp128* @gld0, align 16
ret void
}
+
+; CHECK: foo1
+; CHECK: ldc1 $f13, 8(${{[0-9]+}})
+; CHECK: ldc1 $f12, 0(${{[0-9]+}})
+
+define void @foo1() {
+entry:
+ %0 = load fp128* @gld0, align 16
+ tail call void @foo2(fp128 %0)
+ ret void
+}
+
+declare void @foo2(fp128)