OSDN Git Service

Legalizer: Use the scalar bit width when promoting bit counting instrs on
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 12 Sep 2014 12:50:27 +0000 (12:50 +0000)
committerStephen Hines <srhines@google.com>
Sun, 14 Sep 2014 21:29:34 +0000 (14:29 -0700)
commitaa9f408cef5714fc0bc0ec61fa4016a3ba0a8c61
tree9cfc5a92576d9710c84ac9e047fa7e6f979c2869
parented0332659297c141650bf13cdb515b378a7146cf
Legalizer: Use the scalar bit width when promoting bit counting instrs on
vectors.

e.g. when promoting ctlz from <2 x i32> to <2 x i64> we have to fixup
the result by 32 bits, not 64. PR20917.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/vec_ctbits.ll