1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple=armeb-eabi -mattr v7,vfp2 -filetype=obj < %s | llvm-objdump -s - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker .syntax unified 4*9880d681SAndroid Build Coastguard Worker .text 5*9880d681SAndroid Build Coastguard Worker .align 2 6*9880d681SAndroid Build Coastguard Worker .code 16 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_bl 9*9880d681SAndroid Build Coastguard Worker.section s_thumb_bl,"ax",%progbits 10*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_bl 11*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f000f801 12*9880d681SAndroid Build Coastguard Worker bl thumb_bl_label 13*9880d681SAndroid Build Coastguard Worker nop 14*9880d681SAndroid Build Coastguard Workerthumb_bl_label: 15*9880d681SAndroid Build Coastguard Worker 16*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_blx 17*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_bl 18*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 f000e802 19*9880d681SAndroid Build Coastguard Worker.section s_thumb_blx,"ax",%progbits 20*9880d681SAndroid Build Coastguard Worker blx thumb_blx_label+8 21*9880d681SAndroid Build Coastguard Workerthumb_blx_label: 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_br 24*9880d681SAndroid Build Coastguard Worker.section s_thumb_br,"ax",%progbits 25*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_br 26*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 e000bf00 27*9880d681SAndroid Build Coastguard Worker b thumb_br_label 28*9880d681SAndroid Build Coastguard Worker nop 29*9880d681SAndroid Build Coastguard Workerthumb_br_label: 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_bcc 32*9880d681SAndroid Build Coastguard Worker.section s_thumb_bcc,"ax",%progbits 33*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_bcc 34*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 d000bf00 35*9880d681SAndroid Build Coastguard Worker beq thumb_bcc_label 36*9880d681SAndroid Build Coastguard Worker nop 37*9880d681SAndroid Build Coastguard Workerthumb_bcc_label: 38*9880d681SAndroid Build Coastguard Worker 39*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_cb 40*9880d681SAndroid Build Coastguard Worker.section s_thumb_cb,"ax",%progbits 41*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_cb 42*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 b100bf00 43*9880d681SAndroid Build Coastguard Worker cbz r0, thumb_cb_label 44*9880d681SAndroid Build Coastguard Worker nop 45*9880d681SAndroid Build Coastguard Workerthumb_cb_label: 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_cp 48*9880d681SAndroid Build Coastguard Worker.section s_thumb_cp,"ax",%progbits 49*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_cp 50*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 4801bf00 51*9880d681SAndroid Build Coastguard Worker ldr r0, =thumb_cp_label 52*9880d681SAndroid Build Coastguard Worker nop 53*9880d681SAndroid Build Coastguard Worker nop 54*9880d681SAndroid Build Coastguard Workerthumb_cp_label: 55*9880d681SAndroid Build Coastguard Worker 56*9880d681SAndroid Build Coastguard Worker@ARM::fixup_arm_thumb_adr_pcrel_10 57*9880d681SAndroid Build Coastguard Worker.section s_thumb_adr_pcrel_10,"ax",%progbits 58*9880d681SAndroid Build Coastguard Worker// CHECK-LABEL: Contents of section s_thumb_adr_pcrel_10 59*9880d681SAndroid Build Coastguard Worker// CHECK: 0000 a000bf00 60*9880d681SAndroid Build Coastguard Worker adr r0, thumb_adr_pcrel_10_label 61*9880d681SAndroid Build Coastguard Worker nop 62*9880d681SAndroid Build Coastguard Workerthumb_adr_pcrel_10_label: 63*9880d681SAndroid Build Coastguard Worker 64