1@ RUN: llvm-mc -triple armv7-linux-gnu -filetype obj -o - %s \ 2@ RUN: | llvm-readobj -r - \ 3@ RUN: | FileCheck %s 4@ RUN: llvm-mc -triple armv7-linux-gnu -filetype asm -o - %s \ 5@ RUN: | FileCheck -check-prefix CHECK-ASM %s 6 7 .type tlsdescseq,%function 8tlsdescseq: 9 ldr r1, [pc, #8] 101: 11.tlsdescseq variable 12 add r2, pc, r1 13.tlsdescseq variable 14 ldr r3, [r1, #4] 15.tlsdescseq variable 16 blx r3 172: 18 .word variable(tlsdesc) + (. - 1b) 19 20@ CHECK: Relocations [ 21@ CHECK: 0x4 R_ARM_TLS_DESCSEQ variable 22@ CHECK: 0x8 R_ARM_TLS_DESCSEQ variable 23@ CHECK: 0xC R_ARM_TLS_DESCSEQ variable 24@ CHECK: 0x10 R_ARM_TLS_GOTDESC variable 25@ CHECK: ] 26 27@ CHECK-ASM: ldr r1, [pc, #8] 28@ CHECK-ASM: .tlsdescseq variable 29@ CHECK-ASM-NEXT: add r2, pc, r1 30@ CHECK-ASM: .tlsdescseq variable 31@ CHECK-ASM-NEXT: ldr r3, [r1, #4] 32@ CHECK-ASM: .tlsdescseq variable 33@ CHECK-ASM-NEXT: blx r3 34 35