]> granicus.if.org Git - llvm/commit
[ARM] Fix lsrl with a 128/256 bit shift amount or a shift of 32
authorSam Tebbs <sam.tebbs@arm.com>
Thu, 22 Aug 2019 08:12:06 +0000 (08:12 +0000)
committerSam Tebbs <sam.tebbs@arm.com>
Thu, 22 Aug 2019 08:12:06 +0000 (08:12 +0000)
commitad39372e52b556908c541e3260b4a7b38c67bf9a
tree74b70f16ad27970bc776963045085ec0e61293df
parentbbb26209395ed430eb51b753e67d5658aa19e85e
[ARM] Fix lsrl with a 128/256 bit shift amount or a shift of 32

This patch fixes shifts by a 128/256 bit shift amount. It also fixes
codegen for shifts of 32 by delegating to LLVM's default optimisation
instead of emitting a long shift.

Tests that used to generate long shifts of 32 are updated to check for the
more optimised codegen.

Differential revision: https://reviews.llvm.org/D66519

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369626 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/shift_parts.ll
test/CodeGen/Thumb2/mve-abs.ll
test/CodeGen/Thumb2/mve-div-expand.ll
test/CodeGen/Thumb2/mve-vcvt.ll