[AArch64][GlobalISel] Fix extended shift addressing mode selection not handling sxth.
authorAmara Emerson <aemerson@apple.com>
Fri, 26 Jun 2020 00:21:37 +0000 (17:21 -0700)
committerAmara Emerson <aemerson@apple.com>
Fri, 26 Jun 2020 00:24:32 +0000 (17:24 -0700)
commit97a34b5f8d2e855be5d43854de6ef237ed81139f
treea4b0921b637a3eb4e87483476e3a24cda7d9a187
parentf441313464b2eef94a41c60bfde31a2bf9c602d7
[AArch64][GlobalISel] Fix extended shift addressing mode selection not handling sxth.

The complex pattern for extended shift offsets only allow sxtw as the extend,
not sxth. Our equivalent function to do this was not rejecting SXTH so we
were miscompiling. This was exposed by D81992.
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/sext-inreg-ldrow-16b.mir [new file with mode: 0644]