[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / thumb-types.s
blobbc915b4954c965f2d28ad816aed913caa9e2f2e3
1 @ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readobj --symbols \
2 @ RUN: | FileCheck %s
4 .syntax unified
6 .thumb
8 .type implicit_function,%function
9 implicit_function:
10 nop
12 .type implicit_data,%object
13 implicit_data:
14 .long 0
16 .arm
17 .type arm_function,%function
18 arm_function:
19 nop
21 .thumb
23 .text
25 untyped_text_label:
26 nop
28 .type explicit_function,%function
29 explicit_function:
30 nop
32 .long tls(TPOFF)
34 .type indirect_function,%gnu_indirect_function
35 indirect_function:
36 nop
38 .data
40 untyped_data_label:
41 nop
43 .type explicit_data,%object
44 explicit_data:
45 .long 0
47 .section .tdata,"awT",%progbits
48 .type tls,%object
49 .align 2
50 tls:
51 .long 42
52 .size tls, 4
55 @ CHECK: Symbol {
56 @ CHECK: Name: arm_function
57 @ CHECK: Value: 0x6
58 @ CHECK: Type: Function
59 @ CHECK: }
61 @ CHECK: Symbol {
62 @ CHECK: Name: explicit_data
63 @ CHECK: Value: 0x2
64 @ CHECK: Type: Object
65 @ CHECK: }
67 @ CHECK: Symbol {
68 @ CHECK: Name: explicit_function
69 @ CHECK: Value: 0xD
70 @ CHECK: Type: Function
71 @ CHECK: }
73 @ CHECK: Symbol {
74 @ CHECK: Name: implicit_data
75 @ CHECK: Value: 0x2
76 @ CHECK: Type: Object
77 @ CHECK: }
79 @ CHECK: Symbol {
80 @ CHECK: Name: implicit_function
81 @ CHECK: Value: 0x1
82 @ CHECK: Type: Function
83 @ CHECK: }
85 @ CHECK: Symbol {
86 @ CHECK: Name: indirect_function
87 @ CHECK: Value: 0x13
88 @ CHECK: Type: GNU_IFunc
89 @ CHECK: }
91 @ CHECK: Symbol {
92 @ CHECK: Name: tls
93 @ CHECK: Value: 0x0
94 @ CHECK: Type: TLS
95 @ CHECK: }
97 @ CHECK: Symbol {
98 @ CHECK: Name: untyped_data_label
99 @ CHECK: Value: 0x0
100 @ CHECK: Type: None
101 @ CHECK: }
103 @ CHECK: Symbol {
104 @ CHECK: Name: untyped_text_label
105 @ CHECK: Value: 0xA
106 @ CHECK: Type: None
107 @ CHECK: }