OSDN Git Service

Fixed a few problems with vector shifts
authorMon P Wang <wangmp@apple.com>
Thu, 3 Sep 2009 19:56:25 +0000 (19:56 +0000)
committerMon P Wang <wangmp@apple.com>
Thu, 3 Sep 2009 19:56:25 +0000 (19:56 +0000)
commitefa422023fa750bdef6429e66cc2b628e4d4801b
tree34aeea83bca04414a070fd221921ff759921a045
parent2f67df794a053f939bc35cd057c7fcd67a58cbb5
Fixed a few problems with vector shifts
  - when transforming a vector shift of a non-immediate scalar shift amount, zero
    extend the i32 shift amount to i64 since the vector shift reads 64 bits
  - when transforming i16 vectors to use a vector shift, zero extend i16 shift amount
  - improve the code quality in some cases when transforming vectors to use a vector shift

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80935 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp