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