OSDN Git Service

[mips] Return {f128} correctly for N32/N64.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 7 Oct 2014 09:29:59 +0000 (09:29 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 7 Oct 2014 09:29:59 +0000 (09:29 +0000)
commit75046b48910950a22e0792e54010a699b61a30bd
treeac7a9a1db40cf3548ac8f5e5998b75faf0b055c7
parent95717dbb1177f19141069ecdf20bf11a5d5cd956
[mips] Return {f128} correctly for N32/N64.

Summary:
According to the ABI documentation, f128 and {f128} should both be returned
in $f0 and $f2. However, this doesn't match GCC's behaviour which is to
return f128 in $f0 and $f2, but {f128} in $f0 and $f1.

Reviewers: vmedic

Reviewed By: vmedic

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5578

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219196 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsCallingConv.td
lib/Target/Mips/MipsISelLowering.cpp
test/CodeGen/Mips/cconv/return-hard-struct-f128.ll [new file with mode: 0644]