[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / ARM / directive-tlsdescseq.s
blob8ab2ae7c3998772a8223a75b8e1d3746d64ccdd4
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
7 .type tlsdescseq,%function
8 tlsdescseq:
9 ldr r1, [pc, #8]
11 .tlsdescseq variable
12 add r2, pc, r1
13 .tlsdescseq variable
14 ldr r3, [r1, #4]
15 .tlsdescseq variable
16 blx r3
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
25 @ CHECK: ]
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