Improve lowering of sext to i128 on SPU.
authorKalle Raiskila <kalle.raiskila@nokia.com>
Mon, 18 Oct 2010 09:34:19 +0000 (09:34 +0000)
committerKalle Raiskila <kalle.raiskila@nokia.com>
Mon, 18 Oct 2010 09:34:19 +0000 (09:34 +0000)
commit940e7965f10ff39910e7e7da8871ea3bec7981a2
tree25b66993d5277824c117edd17a8d636f14c18b80
parent4cf34c6c041cebc1d816d178654c6bbb7737cc4e
Improve lowering of sext to i128 on SPU.
The old algorithm inserted a 'rotqmbyi' instruction which was
both redundant and wrong - it made shufb select bytes from the
wrong end of the input quad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116701 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/CellSPU/SPUISelLowering.cpp
test/CodeGen/CellSPU/sext128.ll