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)
commit0b5a8520acf222bfd6e9f269f7ae722efa5804db
tree8d207822a69f023808e1576620f5549c280b280d
parent84fa6b37f466631f7dff1d1727b0a71fdf1a0262
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!

llvm-svn: 224521
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/thumb-load-store-multiple.s