[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / ARM / arm-branch-errors.s
blobbbf6445f5c18a4ab817094c7002afc60292ab578
1 @ RUN: not llvm-mc -triple=armv7-apple-darwin < %s 2>&1 | FileCheck %s
3 @------------------------------------------------------------------------------
4 @ Branch targets destined for ARM mode must == 0 (mod 4), otherwise (mod 2).
5 @------------------------------------------------------------------------------
7 b #2
8 bl #2
9 beq #2
11 @ CHECK: error: invalid instruction, any one of the following would fix this:
12 @ CHECK: b #2
13 @ CHECK: note: instruction requires: thumb
14 @ CHECK: note: invalid operand for instruction
15 @ CHECK: error: invalid instruction, any one of the following would fix this:
16 @ CHECK: bl #2
17 @ CHECK: note: instruction requires: thumb
18 @ CHECK: note: invalid operand for instruction
19 @ CHECK: error: invalid instruction, any one of the following would fix this:
20 @ CHECK: beq #2
21 @ CHECK: note: instruction requires: thumb
22 @ CHECK: note: invalid operand for instruction