OSDN Git Service

On big-endian machines it is wrong to do a full
authorDuncan Sands <baldrick@free.fr>
Sat, 13 Dec 2008 07:18:38 +0000 (07:18 +0000)
committerDuncan Sands <baldrick@free.fr>
Sat, 13 Dec 2008 07:18:38 +0000 (07:18 +0000)
commitfd6673cf7fd5c0c1e6817e5fcf460a289712ee57
tree9079d530d6ff4b256a5550539643461cb09f331f
parenta4a83c314c5997ff2b5eadae8e711fec6501121d
On big-endian machines it is wrong to do a full
width register load followed by a truncating
store for the copy, since the load will not place
the value in the lower bits.  Probably partial
loads/stores can never happen here, but fix it
anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp