diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-31 18:20:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-31 18:20:46 +0000 |
commit | d9731af75b38f30c02f19d6e81333b9c2599ad5f (patch) | |
tree | 9febccb5c68c0aefa0ec66b15508822cb61acc64 /lib/CodeGen | |
parent | 29cd7db31097a1ae70a88d7f721a46f207363b46 (diff) | |
download | external_llvm-d9731af75b38f30c02f19d6e81333b9c2599ad5f.zip external_llvm-d9731af75b38f30c02f19d6e81333b9c2599ad5f.tar.gz external_llvm-d9731af75b38f30c02f19d6e81333b9c2599ad5f.tar.bz2 |
Do not endian swap the operands to a store if the operands came from a vector.
This fixes UnitTests/Vector/simple.c with altivec.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 068a71e..443bba5 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1450,10 +1450,10 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { } else { ExpandOp(Node->getOperand(1), Lo, Hi); IncrementSize = MVT::getSizeInBits(Hi.getValueType())/8; - } - if (!TLI.isLittleEndian()) - std::swap(Lo, Hi); + if (!TLI.isLittleEndian()) + std::swap(Lo, Hi); + } Lo = DAG.getNode(ISD::STORE, MVT::Other, Tmp1, Lo, Tmp2, Node->getOperand(3)); |