1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Do not endian swap the operands to a store if the operands came from a vector.

This fixes UnitTests/Vector/simple.c with altivec.

llvm-svn: 27298
This commit is contained in:
Chris Lattner 2006-03-31 18:20:46 +00:00
parent 0e7da656a7
commit ffa44397a5

View File

@ -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));