Fix bug in GPR to FPR moves in PPC64LE.
authorSamuel Antao <sfantao@us.ibm.com>
Thu, 9 Oct 2014 20:42:56 +0000 (20:42 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Thu, 9 Oct 2014 20:42:56 +0000 (20:42 +0000)
commitf75bfbea1763b0440a264d8f479522a3c330cafd
tree0ca76b675b30aade90993066ae6ba687cce25af4
parent127cb8e8734a2bed69dd7871c1428ffc651a2e5c
Fix bug in GPR to FPR moves in PPC64LE.

The current implementation of GPR->FPR register moves uses a stack slot. This mechanism writes a double word and reads a word. In big-endian the load address must be displaced by 4-bytes in order to get the right value. In little endian this is no longer required. This patch fixes the issue and adds LE regression tests to fast-isel-conversion which currently expose this problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219441 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFastISel.cpp
test/CodeGen/PowerPC/fast-isel-conversion.ll