diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-03-21 20:51:05 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-03-21 20:51:05 +0000 |
| commit | 00f4683bf6216ea2b1beb199dea155c87e9cd8b0 (patch) | |
| tree | 1de121d60e437953b0ffb696031fe87f7570197a /llvm/lib | |
| parent | c0af9c647838ec15013ef26ac24c657f63c843ef (diff) | |
| download | bcm5719-llvm-00f4683bf6216ea2b1beb199dea155c87e9cd8b0.tar.gz bcm5719-llvm-00f4683bf6216ea2b1beb199dea155c87e9cd8b0.zip | |
These targets don't support EXTRACT_VECTOR_ELT, though, in time, X86 will.
llvm-svn: 26930
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 1 | ||||
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 6497fd904eb..4af94b373f6 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/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/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 0540f63af9d..174c7979043 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/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<X86Subtarget>().hasMMX()) { |

