mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
dacbc9891d
This converts the ARM AsmParser to use the new assembly matcher error reporting mechanism, which allows errors to be reported for multiple instruction encodings when it is ambiguous which one the user intended to use. By itself this doesn't improve many error messages, because we don't have diagnostic text for most operand types, but as we add that then this will allow more of those diagnostic strings to be used when they are relevant. Differential revision: https://reviews.llvm.org/D31530 llvm-svn: 314779
23 lines
923 B
ArmAsm
23 lines
923 B
ArmAsm
@ RUN: not llvm-mc -triple=armv7-apple-darwin < %s 2>&1 | FileCheck %s
|
|
|
|
@------------------------------------------------------------------------------
|
|
@ Branch targets destined for ARM mode must == 0 (mod 4), otherwise (mod 2).
|
|
@------------------------------------------------------------------------------
|
|
|
|
b #2
|
|
bl #2
|
|
beq #2
|
|
|
|
@ CHECK: error: invalid instruction, any one of the following would fix this:
|
|
@ CHECK: b #2
|
|
@ CHECK: note: instruction requires: thumb
|
|
@ CHECK: note: invalid operand for instruction
|
|
@ CHECK: error: invalid instruction, any one of the following would fix this:
|
|
@ CHECK: bl #2
|
|
@ CHECK: note: instruction requires: thumb
|
|
@ CHECK: note: invalid operand for instruction
|
|
@ CHECK: error: invalid instruction, any one of the following would fix this:
|
|
@ CHECK: beq #2
|
|
@ CHECK: note: instruction requires: thumb
|
|
@ CHECK: note: invalid operand for instruction
|