Skip to content

Commit 83cf5d1

Browse files
committed
Use bitcast
1 parent 1bdce09 commit 83cf5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_EXTRACT_ELEMENT(SDNode *N) {
270270
"In floats only ppcf128 can be extracted by element!");
271271
return DAG.getNode(ISD::EXTRACT_ELEMENT, SDLoc(N),
272272
N->getValueType(0).changeTypeToInteger(),
273-
Src.getOperand(0), N->getOperand(1));
273+
DAG.getBitcast(MVT::i128, Src), N->getOperand(1));
274274
}
275275

276276
SDValue DAGTypeLegalizer::SoftenFloatRes_EXTRACT_VECTOR_ELT(SDNode *N, unsigned ResNo) {

0 commit comments

Comments
 (0)