Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / MC / ELF / tls.s
blobf9d6425f10e9dbe5b1b6e48c17b3e72e3dfebc64
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that all symbols are of type STT_TLS.
5 leaq foo1@TLSGD(%rip), %rdi
6 leaq foo2@GOTTPOFF(%rip), %rdi
7 leaq foo3@TLSLD(%rip), %rdi
9 .section .zed,"awT",@progbits
10 foobar:
11 .long 43
13 // CHECK: (('st_name', 0x00000010) # 'foobar'
14 // CHECK-NEXT: ('st_bind', 0x00000000)
15 // CHECK-NEXT: ('st_type', 0x00000006)
16 // CHECK-NEXT: ('st_other', 0x00000000)
17 // CHECK-NEXT: ('st_shndx', 0x00000005)
18 // CHECK-NEXT: ('st_value', 0x0000000000000000)
19 // CHECK-NEXT: ('st_size', 0x0000000000000000)
20 // CHECK-NEXT: ),
22 // CHECK: # Symbol 0x00000007
23 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo1'
24 // CHECK-NEXT: ('st_bind', 0x00000001)
25 // CHECK-NEXT: ('st_type', 0x00000006)
26 // CHECK-NEXT: ('st_other', 0x00000000)
27 // CHECK-NEXT: ('st_shndx', 0x00000000)
28 // CHECK-NEXT: ('st_value', 0x0000000000000000)
29 // CHECK-NEXT: ('st_size', 0x0000000000000000)
30 // CHECK-NEXT: ),
31 // CHECK-NEXT: # Symbol 0x00000008
32 // CHECK-NEXT: (('st_name', 0x00000006) # 'foo2'
33 // CHECK-NEXT: ('st_bind', 0x00000001)
34 // CHECK-NEXT: ('st_type', 0x00000006)
35 // CHECK-NEXT: ('st_other', 0x00000000)
36 // CHECK-NEXT: ('st_shndx', 0x00000000)
37 // CHECK-NEXT: ('st_value', 0x0000000000000000)
38 // CHECK-NEXT: ('st_size', 0x0000000000000000)
39 // CHECK-NEXT: ),
40 // CHECK-NEXT: # Symbol 0x00000009
41 // CHECK-NEXT: (('st_name', 0x0000000b) # 'foo3'
42 // CHECK-NEXT: ('st_bind', 0x00000001)
43 // CHECK-NEXT: ('st_type', 0x00000006)
44 // CHECK-NEXT: ('st_other', 0x00000000)
45 // CHECK-NEXT: ('st_shndx', 0x00000000)
46 // CHECK-NEXT: ('st_value', 0x0000000000000000)
47 // CHECK-NEXT: ('st_size', 0x0000000000000000)
48 // CHECK-NEXT: ),