1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker@------------------------------------------------------------------------------ 4*9880d681SAndroid Build Coastguard Worker@ Branch targets destined for ARM mode must == 0 (mod 4), otherwise (mod 2). 5*9880d681SAndroid Build Coastguard Worker@------------------------------------------------------------------------------ 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker b #4 8*9880d681SAndroid Build Coastguard Worker bl #4 9*9880d681SAndroid Build Coastguard Worker beq #4 10*9880d681SAndroid Build Coastguard Worker blx #2 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker@ CHECK: b #4 @ encoding: [0x01,0x00,0x00,0xea] 13*9880d681SAndroid Build Coastguard Worker@ CHECK: bl #4 @ encoding: [0x01,0x00,0x00,0xeb] 14*9880d681SAndroid Build Coastguard Worker@ CHECK: beq #4 @ encoding: [0x01,0x00,0x00,0x0a] 15*9880d681SAndroid Build Coastguard Worker@ CHECK: blx #2 @ encoding: [0x00,0x00,0x00,0xfb] 16