mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +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:
parent
0e7da656a7
commit
ffa44397a5
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user