ARM: fix an off-by-one in the register list access
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Dec 2014 16:16:53 +0000 (16:16 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Dec 2014 16:16:53 +0000 (16:16 +0000)
commit329944876988b6e2cba7190ff8a75c906ee8fc81
treeb0fb7d18d4203d91c68d84eea21ebe5496d2a3c1
parentc82c8a824ad8e96508a0d5f2ecb96f7ce48d0b36
ARM: fix an off-by-one in the register list access

Fix an off-by-one access introduced in 224502 for push.w and pop.w with single
register operands.  Add test cases for both scenarios.

Thanks to Asiri Rathnayake for pointing out the failure!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224521 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/thumb-load-store-multiple.s