diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-05 22:13:04 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-05 22:13:04 +0000 |
commit | 5fdee6d2b5a72a826bf6db47c319ddac08cd9f57 (patch) | |
tree | 8ee76d72d2cef01e08e4e5f97671218db4ba9ef5 /test/CodeGen/Mips/mips64-call.ll | |
parent | f84606732c76899af54c295ec987c96c88452747 (diff) |
[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/mips64-call.ll')
-rw-r--r-- | test/CodeGen/Mips/mips64-call.ll | 13 |
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 +} |