1@ RUN: not llvm-mc -triple=thumbv7-apple-darwin < %s 2>&1 | FileCheck %s 2 3@------------------------------------------------------------------------------ 4@ Branch targets destined for ARM mode must == 0 (mod 4), otherwise (mod 2). 5@------------------------------------------------------------------------------ 6 7 b #1 8 bl #1 9 cbnz r2, #1 10 beq #1 11 blx #2 12 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 25