mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Make i64=expand_vector_elt(v2i64) work in 32-bit mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5299,6 +5299,11 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
|
||||
#endif
|
||||
assert(0 && "Do not know how to expand this operator!");
|
||||
abort();
|
||||
case ISD::EXTRACT_VECTOR_ELT:
|
||||
assert(VT==MVT::i64 && "Do not know how to expand this operator!");
|
||||
// ExpandEXTRACT_VECTOR_ELT tolerates invalid result types.
|
||||
Lo = ExpandEXTRACT_VECTOR_ELT(Op);
|
||||
return ExpandOp(Lo, Lo, Hi);
|
||||
case ISD::UNDEF:
|
||||
NVT = TLI.getTypeToExpandTo(VT);
|
||||
Lo = DAG.getNode(ISD::UNDEF, NVT);
|
||||
|
Reference in New Issue
Block a user