1 @ RUN
: llvm-mc
-triple armv7-linux-gnu
-filetype obj
-o
- %s \
2 @ RUN
: | llvm-readobj
-r
- \
4 @ RUN
: llvm-mc
-triple armv7-linux-gnu
-filetype asm
-o
- %s \
5 @ RUN
: | FileCheck
-check-prefix CHECK-ASM
%s
7 .type tlsdescseq,%function
18 .word variable(tlsdesc) + (. - 1b)
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
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