diff options
author | Dale Johannesen <dalej@apple.com> | 2007-10-31 00:32:36 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-10-31 00:32:36 +0000 |
commit | 25f1d08619720b82e7c944b18eee488fc07ba153 (patch) | |
tree | c433ebda3cc784d4282106491b876c153944b47e /lib/CodeGen | |
parent | 0e0014d0499d6ec6402e07b71cf24af992a9d297 (diff) | |
download | external_llvm-25f1d08619720b82e7c944b18eee488fc07ba153.tar.gz external_llvm-25f1d08619720b82e7c944b18eee488fc07ba153.tar.bz2 external_llvm-25f1d08619720b82e7c944b18eee488fc07ba153.zip |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 5ec74cdc31..9150e96cc0 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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); |