[ARM] Fix alignment checks for BE VLDRH
commit2a9a8731ff819d276eeceb038dc4302f0f4457f1
authorDavid Green <david.green@arm.com>
Thu, 15 Aug 2019 12:54:47 +0000 (15 12:54 +0000)
committerDavid Green <david.green@arm.com>
Thu, 15 Aug 2019 12:54:47 +0000 (15 12:54 +0000)
tree3f635ffcf906c0006f4c1dedfe36b2fa402f9cd1
parent1652e8495181a30ea56600888c30f9608cb6322b
[ARM] Fix alignment checks for BE VLDRH

We need to allow any alignment at least 2, not just exactly 2, so that the big
endian loads and stores can be selected successfully. I've also added extra BE
testing for the load and store tests.

Thanks to Oliver for the report.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrMVE.td
test/CodeGen/Thumb2/mve-ldst-offset.ll
test/CodeGen/Thumb2/mve-ldst-postinc.ll
test/CodeGen/Thumb2/mve-ldst-preinc.ll