1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC/ARM/tls-directives.s
Tim Northover c247e8effd Reapply: "ARM: put correct symbol index on indirect pointers in __thread_ptr.""
A latent bug in llvm-objdump used the wrong format specifier on 32-bit
targets, causing the test to fail. This fixes the issue.

llvm-svn: 267582
2016-04-26 18:29:16 +00:00

51 lines
1.2 KiB
ArmAsm

@ RUN: llvm-mc -triple thumbv7-apple-ios -filetype=obj -o %t %s
@ RUN: llvm-objdump -macho -p -indirect-symbols %t | FileCheck %s
@ CHECK: Indirect symbols for (__DATA,__thread_ptr)
@ CHECK: 0x0000001c 5 _a
@ CHECK: sectname __thread_data
@ CHECK: segname __DATA
@ CHECK: type S_THREAD_LOCAL_REGULAR
@ CHECK: sectname __thread_vars
@ CHECK: segname __DATA
@ CHECK: type S_THREAD_LOCAL_VARIABLES
@ CHECK: sectname __thread_bss
@ CHECK: segname __DATA
@ CHECK: type S_THREAD_LOCAL_ZEROFILL
@ CHECK: sectname __thread_ptr
@ CHECK: segname __DATA
@ CHECK: type S_THREAD_LOCAL_VARIABLE_POINTERS
.section __DATA,__thread_data,thread_local_regular
.p2align 2
_b$tlv$init:
.long 42
.section __DATA,__thread_vars,thread_local_variables
.globl _b
_b:
.long __tlv_bootstrap
.long 0
.long _b$tlv$init
.tbss _c$tlv$init, 4, 2 @ @c
.globl _c
_c:
.long __tlv_bootstrap
.long 0
.long _c$tlv$init
.section __DATA,__thread_ptr,thread_local_variable_pointers
.p2align 2
L_a$non_lazy_ptr:
.indirect_symbol _a
.long 0