[mips] Account for endianess when expanding BuildPairF64/ExtractElementF64 nodes.
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 16 Oct 2014 15:41:51 +0000 (15:41 +0000)
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
Thu, 16 Oct 2014 15:41:51 +0000 (15:41 +0000)
commit3b72ec5083457366ae4b1c230ed1172f1e428dbe
tree49ec2948d5d4a9db4db1f5e517c443b7b4458009
parent02065a65cdcd8b2208a45efb698e0a297ceee530
[mips] Account for endianess when expanding BuildPairF64/ExtractElementF64 nodes.

Summary:
In order to support big endian targets for the BuildPairF64 nodes we
just need to swap the low/high pair registers. Additionally, for the
ExtractElementF64 nodes we have to calculate the correct stack offset
with respect to the node's register/operand that we want to extract.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSEFrameLowering.cpp
test/CodeGen/Mips/fp64a.ll