Skip to content

Commit 5b18109

Browse files
committed
Skip big endian for now
1 parent bc4fe8a commit 5b18109

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,9 @@ SDValue DAGTypeLegalizer::PromoteIntRes_BITCAST(SDNode *N) {
566566
}
567567
}
568568

569-
if (!NOutVT.isVector() && InOp.getValueType().isVector()) {
569+
// TODO: Handle big endian
570+
if (!NOutVT.isVector() && InOp.getValueType().isVector() &&
571+
DAG.getDataLayout().isLittleEndian()) {
570572
// Pad the vector operand with undef and cast to a wider integer.
571573
EVT EltVT = InOp.getValueType().getVectorElementType();
572574
TypeSize EltSize = EltVT.getSizeInBits();

0 commit comments

Comments
 (0)