From: Chris Lattner Date: Tue, 21 Mar 2006 20:51:05 +0000 (+0000) Subject: These targets don't support EXTRACT_VECTOR_ELT, though, in time, X86 will. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9b3bd467d02e73a02afed6d50aaaa149a6a69701;p=oota-llvm.git These targets don't support EXTRACT_VECTOR_ELT, though, in time, X86 will. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 6497fd904eb..4af94b373f6 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -168,6 +168,7 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) setOperationAction(ISD::MUL , (MVT::ValueType)VT, Expand); setOperationAction(ISD::LOAD, (MVT::ValueType)VT, Expand); setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::EXTRACT_VECTOR_ELT, (MVT::ValueType)VT, Expand); // FIXME: We don't support any BUILD_VECTOR's yet. We should custom expand // the ones we do, like splat(0.0) and splat(-0.0). diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 0540f63af9d..174c7979043 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -256,6 +256,7 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM) setOperationAction(ISD::MUL , (MVT::ValueType)VT, Expand); setOperationAction(ISD::LOAD, (MVT::ValueType)VT, Expand); setOperationAction(ISD::VECTOR_SHUFFLE, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::EXTRACT_VECTOR_ELT, (MVT::ValueType)VT, Expand); } if (TM.getSubtarget().hasMMX()) {