ARM: Add a better diagnostic for some out of range immediates.
authorJim Grosbach <grosbach@apple.com>
Fri, 22 Jun 2012 23:56:48 +0000 (23:56 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 22 Jun 2012 23:56:48 +0000 (23:56 +0000)
commit70c9bf3c1a77b5707c92a7cfe74104c320480391
treed0d2b02ab5d5f896404da77f350dea2c77617910
parent4dbfdfba6c92b6224bf58364371569f5780844d3
ARM: Add a better diagnostic for some out of range immediates.

As an example of how the custom DiagnosticType can be used to provide
better operand-mismatch diagnostics, add a custom diagnostic for
the imm0_15 operand class used for several system instructions.
Update the tests to expect the improved diagnostic.

rdar://8987109

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159051 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/diagnostics.s
test/MC/ARM/thumb2-diagnostics.s