[mips] Expand BuildPairF64 to a spill and reload when the O32 FPXX ABI is
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>
Mon, 14 Jul 2014 09:40:29 +0000 (09:40 +0000)
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>
Mon, 14 Jul 2014 09:40:29 +0000 (09:40 +0000)
commitfce699d88ac8640f97e6fe3fe3f3e17000d1be1c
tree0c241bf555b96a7c756eda31dba429f2f2b8ff28
parent5388e6f9b38ffebd4bee08a1ed48f44088679bb9
[mips] Expand BuildPairF64 to a spill and reload when the O32 FPXX ABI is
enabled and mthc1 and dmtc1 are not available (e.g. on MIPS32r1)

This prevents the upper 32-bits of a double precision value from being moved to
the FPU with mtc1 to an odd-numbered FPU register. This is necessary to ensure
that the code generated executes correctly regardless of the current FPU mode.

MIPS32r2 and above continues to use mtc1/mthc1, while MIPS-IV and above continue
to use dmtc1.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212930 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsMachineFunction.cpp
lib/Target/Mips/MipsMachineFunction.h
lib/Target/Mips/MipsSEFrameLowering.cpp
lib/Target/Mips/MipsSEInstrInfo.cpp
lib/Target/Mips/MipsSubtarget.cpp
lib/Target/Mips/MipsSubtarget.h
test/CodeGen/Mips/abiflags-xx.ll
test/CodeGen/Mips/fpxx.ll [new file with mode: 0644]