summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-03-05 22:13:04 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-03-05 22:13:04 +0000
commit5fdee6d2b5a72a826bf6db47c319ddac08cd9f57 (patch)
tree8ee76d72d2cef01e08e4e5f97671218db4ba9ef5 /test/CodeGen/Mips
parentf84606732c76899af54c295ec987c96c88452747 (diff)
downloadllvm-5fdee6d2b5a72a826bf6db47c319ddac08cd9f57.tar.gz
llvm-5fdee6d2b5a72a826bf6db47c319ddac08cd9f57.tar.bz2
llvm-5fdee6d2b5a72a826bf6db47c319ddac08cd9f57.tar.xz
[mips] Correct handling of fp128 (long double) formals and read long double
parameters from floating point registers if target is mips64 hard float. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r--test/CodeGen/Mips/mips64-call.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/mips64-call.ll b/test/CodeGen/Mips/mips64-call.ll
new file mode 100644
index 0000000000..7808ac3cc0
--- /dev/null
+++ b/test/CodeGen/Mips/mips64-call.ll
@@ -0,0 +1,13 @@
+; RUN: llc -march=mips64el -mcpu=mips64r2 < %s | FileCheck %s
+
+@gld0 = external global fp128
+
+; CHECK: foo0
+; CHECK: sdc1 $f13, 8(${{[0-9]+}})
+; CHECK: sdc1 $f12, 0(${{[0-9]+}})
+
+define void @foo0(fp128 %a0) {
+entry:
+ store fp128 %a0, fp128* @gld0, align 16
+ ret void
+}