[MIPS GlobalISel] Consider type1 when legalizing shifts after r351882
commit6aae2a499f52b85610aaa6f87d3358c65401107f
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:31:29 +0000 (21 09:31 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:31:29 +0000 (21 09:31 +0000)
treec915d07f1da378050f6d6f7c2cba2f35561ea149
parente8918e11c1512a486001c53db92b46e6268bee85
[MIPS GlobalISel] Consider type1 when legalizing shifts after r351882

r351882 allows different type for shift amount then result and value
being shifted. Fix MIPS Legalizer rules to take r351882 into account.

Differential Revision: https://reviews.llvm.org/D66203

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369510 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsLegalizerInfo.cpp
test/CodeGen/Mips/GlobalISel/legalizer/bitwise.mir