Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ARM / thumb-types.s
blobcb1b47e1fa7fbc5028c882ade1661d40ba236e18
1 @ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readelf -s - | FileCheck %s
3 @ CHECK: Num: Value Size Type Bind Vis Ndx Name
4 @ CHECK-NEXT: 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
5 @ CHECK-NEXT: 1: 00000001 0 FUNC LOCAL DEFAULT 2 implicit_function
6 @ CHECK-NEXT: 2: 00000000 0 NOTYPE LOCAL DEFAULT 2 $t.0
7 @ CHECK-NEXT: 3: 00000002 0 OBJECT LOCAL DEFAULT 2 implicit_data
8 @ CHECK-NEXT: 4: 00000002 0 NOTYPE LOCAL DEFAULT 2 $d.1
9 @ CHECK-NEXT: 5: 00000008 0 FUNC LOCAL DEFAULT 2 arm_function
10 @ CHECK-NEXT: 6: 00000008 0 NOTYPE LOCAL DEFAULT 2 $a.2
11 @ CHECK-NEXT: 7: 0000000c 0 NOTYPE LOCAL DEFAULT 2 untyped_text_label
12 @ CHECK-NEXT: 8: 0000000c 0 NOTYPE LOCAL DEFAULT 2 $t.3
13 @ CHECK-NEXT: 9: 0000000f 0 FUNC LOCAL DEFAULT 2 explicit_function
14 @ CHECK-NEXT: 10: 00000010 0 NOTYPE LOCAL DEFAULT 2 $d.4
15 @ CHECK-NEXT: 11: 00000000 4 TLS LOCAL DEFAULT 5 tls
16 @ CHECK-NEXT: 12: 00000015 0 IFUNC LOCAL DEFAULT 2 indirect_function
17 @ CHECK-NEXT: 13: 00000014 0 NOTYPE LOCAL DEFAULT 2 $t.5
18 @ CHECK-NEXT: 14: 00000000 0 NOTYPE LOCAL DEFAULT 4 untyped_data_label
19 @ CHECK-NEXT: 15: 00000000 0 NOTYPE LOCAL DEFAULT 4 $t.6
20 @ CHECK-NEXT: 16: 00000002 0 OBJECT LOCAL DEFAULT 4 explicit_data
21 @ CHECK-NEXT: 17: 00000002 0 NOTYPE LOCAL DEFAULT 4 $d.7
24 .syntax unified
26 .thumb
28 .type implicit_function,%function
29 implicit_function:
30 nop
32 .type implicit_data,%object
33 implicit_data:
34 .long 0
36 .arm
37 .type arm_function,%function
38 arm_function:
39 nop
41 .thumb
43 .text
45 untyped_text_label:
46 nop
48 .type explicit_function,%function
49 explicit_function:
50 nop
52 .long tls(TPOFF)
54 .type indirect_function,%gnu_indirect_function
55 indirect_function:
56 nop
58 .data
60 untyped_data_label:
61 nop
63 .type explicit_data,%object
64 explicit_data:
65 .long 0
67 .section .tdata,"awT",%progbits
68 .type tls,%object
69 .align 2
70 tls:
71 .long 42
72 .size tls, 4