These targets don't support EXTRACT_VECTOR_ELT, though, in time, X86 will.
authorChris Lattner <sabre@nondot.org>
Tue, 21 Mar 2006 20:51:05 +0000 (20:51 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 21 Mar 2006 20:51:05 +0000 (20:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26930 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/X86/X86ISelLowering.cpp

index 6497fd904ebefe3dca839ad83c15ada6954a81cd..4af94b373f6c3a8960084f6b50705413f9540c56 100644 (file)
@@ -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).
index 0540f63af9df5017327d596c38bb16fdfa33ccba..174c7979043434a1afccb3b5d84a6cee229996c3 100644 (file)
@@ -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<X86Subtarget>().hasMMX()) {