[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / ARM / directive-arm-thumb-alignment.s
blob0e798f67b48aadfb6ddf7932e1d553ba2c431ea2
1 @ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readelf -S -s - | FileCheck %s
3 @ CHECK: [Nr] Name Type Address Off Size ES Flg Lk Inf Al
4 @ CHECK-NEXT: [ 0] NULL 00000000 000000 000000 00 0 0 0
5 @ CHECK-NEXT: [ 1] .strtab STRTAB 00000000 {{.*}} {{.*}} 00 0 0 1
6 @ CHECK-NEXT: [ 2] .text PROGBITS 00000000 {{.*}} 00000d 00 AX 0 0 4
7 @ CHECK-NEXT: [ 3] .arm_aligned PROGBITS 00000000 {{.*}} 000005 00 AX 0 0 4
8 @ CHECK-NEXT: [ 4] .thumb_aligned PROGBITS 00000000 {{.*}} 000002 00 AX 0 0 2
10 @ CHECK: Num: Value Size Type Bind Vis Ndx Name
11 @ CHECK-NEXT: 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
12 @ CHECK-NEXT: 1: 00000001 0 FUNC LOCAL DEFAULT 2 aligned_thumb
13 @ CHECK-NEXT: 2: 00000000 0 NOTYPE LOCAL DEFAULT 2 $t
14 @ CHECK-NEXT: 3: 00000004 0 FUNC LOCAL DEFAULT 2 thumb_to_arm
15 @ CHECK-NEXT: 4: 00000004 0 NOTYPE LOCAL DEFAULT 2 $a
16 @ CHECK-NEXT: 5: 00000008 0 NOTYPE LOCAL DEFAULT 2 $d
17 @ CHECK-NEXT: 6: 0000000b 0 FUNC LOCAL DEFAULT 2 unaligned_arm_to_thumb
18 @ CHECK-NEXT: 7: 0000000a 0 NOTYPE LOCAL DEFAULT 2 $t
20 .thumb
22 .type aligned_thumb,%function
23 aligned_thumb:
24 nop
26 @ Above function has size 2 (at offset 0)
27 @ Expect alignment of +2 (to offset 4)
28 .arm
30 .type thumb_to_arm,%function
31 thumb_to_arm:
32 nop
34 .byte 0
36 @ Above function has size 5 (at offset 4)
37 @ Expect alignment of +1 (to offset 10)
38 .thumb
39 .type unaligned_arm_to_thumb,%function
40 unaligned_arm_to_thumb:
41 nop
43 .byte 0
45 @ Above section has size 13 (at offset 34)
46 @ Expect alignment of +3 (to offset 44)
47 .section .arm_aligned, "ax"
48 .arm
50 .type arm_aligned_section,%function
51 arm_aligned_section:
52 nop
54 .byte 0
56 @ Above section has size 5 (at offset 44)
57 @ Expect alignment of +1 (to offset 4a)
58 .section .thumb_aligned, "ax"
59 .thumb
61 .type thumb_aligned_section,%function
62 thumb_aligned_section:
63 nop