[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / thumb-branch-errors.s
blobdf7b47c8f6b5db8e27277ed53112552211b9db5a
1 @ RUN: not llvm-mc -triple=thumbv7-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 #1
8 bl #1
9 cbnz r2, #1
10 beq #1
11 blx #2
13 @ CHECK: error: branch target out of range
14 @ CHECK: b #1
15 @ CHECK: error: invalid operand for instruction
16 @ CHECK: bl #1
17 @ CHECK: error: invalid operand for instruction
18 @ CHECK: cbnz r2, #1
19 @ CHECK: error: branch target out of range
20 @ CHECK: beq #1
21 @ CHECK: invalid operand for instruction
22 @ CHECK-NEXT: blx #2
23 @ CHECK: operand must be a register in range [r0, r15]
24 @ CHECK-NEXT: blx #2