OSDN Git Service

[ARM GlobalISel] Widen small shift operands
authorDiana Picus <diana.picus@linaro.org>
Tue, 30 Apr 2019 09:24:43 +0000 (09:24 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 30 Apr 2019 09:24:43 +0000 (09:24 +0000)
commitec5cc76de0af9c0d158a88a824ec58f98dc241a6
treee445e0e11252f4c43cdd92afe318475d0bc56f39
parenta74e48852fc70951544a819505bd5202cb7dad73
[ARM GlobalISel] Widen small shift operands

The legalizer was already widening the shift amount. Add tests for that
behaviour, and also support widening the shifted value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359542 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMLegalizerInfo.cpp
test/CodeGen/ARM/GlobalISel/arm-legalize-binops.mir