[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / thumb-types.s
blob265f23ea6c4278bb2ce4ef9c047c5e47da084a10
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: 00000006 0 FUNC LOCAL DEFAULT 2 arm_function
10 @ CHECK-NEXT: 6: 00000006 0 NOTYPE LOCAL DEFAULT 2 $a.2
11 @ CHECK-NEXT: 7: 0000000a 0 NOTYPE LOCAL DEFAULT 2 untyped_text_label
12 @ CHECK-NEXT: 8: 0000000a 0 NOTYPE LOCAL DEFAULT 2 $t.3
13 @ CHECK-NEXT: 9: 0000000d 0 FUNC LOCAL DEFAULT 2 explicit_function
14 @ CHECK-NEXT: 10: 0000000e 0 NOTYPE LOCAL DEFAULT 2 $d.4
15 @ CHECK-NEXT: 11: 00000000 4 TLS LOCAL DEFAULT 5 tls
16 @ CHECK-NEXT: 12: 00000013 0 IFUNC LOCAL DEFAULT 2 indirect_function
17 @ CHECK-NEXT: 13: 00000012 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