diff options
| author | Dan Gohman <gohman@apple.com> | 2007-12-12 22:21:26 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-12-12 22:21:26 +0000 |
| commit | 890813243f9b4f5aa9c6d5ab79ffe948458197ab (patch) | |
| tree | 7bc3aa55aaa6e8764f6bf15202a590f8205e5471 /lib/Target/X86/X86ISelLowering.cpp | |
| parent | 41ff20bff472c942d07cf5d85b3d7cd41a140a67 (diff) | |
| download | external_llvm-890813243f9b4f5aa9c6d5ab79ffe948458197ab.zip external_llvm-890813243f9b4f5aa9c6d5ab79ffe948458197ab.tar.gz external_llvm-890813243f9b4f5aa9c6d5ab79ffe948458197ab.tar.bz2 | |
Allow vector integer constants to be created with
SelectionDAG::getConstant, in the same way as vector floating-point
constants. This allows the legalize expansion code for @llvm.ctpop and
friends to be usable with vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.cpp')
| -rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 67217fd..07e19aa 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -483,6 +483,12 @@ X86TargetLowering::X86TargetLowering(TargetMachine &TM) setOperationAction(ISD::CTPOP, (MVT::ValueType)VT, Expand); setOperationAction(ISD::CTTZ, (MVT::ValueType)VT, Expand); setOperationAction(ISD::CTLZ, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::SHL, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::SRA, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::SRL, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::ROTL, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::ROTR, (MVT::ValueType)VT, Expand); + setOperationAction(ISD::BSWAP, (MVT::ValueType)VT, Expand); } if (Subtarget->hasMMX()) { |
