summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/thumb-branch-errors.s
Commit message (Collapse)AuthorAgeFilesLines
* [ARM, Asm] Add diagnostics for general-purpose register operandsOliver Stannard2017-10-101-2/+4
| | | | | | | | | | | | | | | This adds diagnostic strings for the ARM general-purpose register classes, which will be used when these classes are expected by the assembler, but the provided operand is not valid. One of these, rGPR, requires C++ code to select the correct error message, as that class contains different registers in pre-v8 and v8 targets. The rest can all have their diagnostic strings stored in the tablegen description of them. Differential revision: https://reviews.llvm.org/D36692 llvm-svn: 315303
* ARM: validate immediate branch targets in AsmParser.Tim Northover2016-07-111-0/+22
Immediate branch targets aren't commonly used, but if they are we should make sure they can actually be encoded. This means they must be divisible by 2 when targeting Thumb mode, and by 4 when targeting ARM mode. Also do a little naming cleanup while I was changing everything around anyway. llvm-svn: 275116
OpenPOWER on IntegriCloud