OSDN Git Service

When lowering an inreg sext first shift left, then right arithmetically.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 12 Jan 2013 19:06:44 +0000 (19:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 12 Jan 2013 19:06:44 +0000 (19:06 +0000)
commit4dc478308f0de13d9ce20915193ac8c3318c5bd6
tree9d13732c71847fea363a48ddd2852feb64875da8
parentedaf85606d7ac8368dd7fa0e9fd4042e523a6e3a
When lowering an inreg sext first shift left, then right arithmetically.

Shifting right two times will only yield zero. Should fix
SingleSource/UnitTests/SignlessTypes/factor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172322 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
test/CodeGen/PowerPC/vec_extload.ll