Fix yet another unseen regression caused by r223113
authorAsiri Rathnayake <asiri.rathnayake@arm.com>
Thu, 4 Dec 2014 19:34:59 +0000 (19:34 +0000)
committerAsiri Rathnayake <asiri.rathnayake@arm.com>
Thu, 4 Dec 2014 19:34:59 +0000 (19:34 +0000)
commit13cef35cbae9824b7a96a717121c9e775863f168
treedc8b59f2ef2714a9b065e6e711ae6830cd252f22
parent300d8ffdf2b07c77a6ffb30fe9b347f430d09df5
Fix yet another unseen regression caused by r223113

r223113 added support for ARM modified immediate assembly syntax. Which
assumes all immediate operands are prefixed with a '#'. This assumption
is wrong as per the ARMARM - which recommends that all '#' characters be
treated optional. The current patch fixes this regression and adds a test
case. A follow-up patch will expand the test coverage to other instructions.

llvm-svn: 223381
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/basic-arm-instructions.s
llvm/test/MC/ARM/ldr-pseudo-parse-errors.s