brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 0e798f6 Raw
64 lines · plain
1@ RUN: llvm-mc -triple armv7-elf -filetype obj -o - %s | llvm-readelf -S -s - | FileCheck %s2 3@ CHECK:   [Nr] Name              Type            Address  Off    Size   ES Flg Lk Inf Al4@ CHECK-NEXT:   [ 0]                   NULL            00000000 000000 000000 00      0   0  05@ CHECK-NEXT:   [ 1] .strtab           STRTAB          00000000 {{.*}} {{.*}} 00      0   0  16@ CHECK-NEXT:   [ 2] .text             PROGBITS        00000000 {{.*}} 00000d 00  AX  0   0  47@ CHECK-NEXT:   [ 3] .arm_aligned      PROGBITS        00000000 {{.*}} 000005 00  AX  0   0  48@ CHECK-NEXT:   [ 4] .thumb_aligned    PROGBITS        00000000 {{.*}} 000002 00  AX  0   0  29 10@ CHECK:      Num:    Value  Size Type    Bind   Vis      Ndx Name11@ CHECK-NEXT:   0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND12@ CHECK-NEXT:   1: 00000001     0 FUNC    LOCAL  DEFAULT    2 aligned_thumb13@ CHECK-NEXT:   2: 00000000     0 NOTYPE  LOCAL  DEFAULT    2 $t14@ CHECK-NEXT:   3: 00000004     0 FUNC    LOCAL  DEFAULT    2 thumb_to_arm15@ CHECK-NEXT:   4: 00000004     0 NOTYPE  LOCAL  DEFAULT    2 $a16@ CHECK-NEXT:   5: 00000008     0 NOTYPE  LOCAL  DEFAULT    2 $d17@ CHECK-NEXT:   6: 0000000b     0 FUNC    LOCAL  DEFAULT    2 unaligned_arm_to_thumb18@ CHECK-NEXT:   7: 0000000a     0 NOTYPE  LOCAL  DEFAULT    2 $t19 20.thumb21 22.type aligned_thumb,%function23aligned_thumb:24    nop25 26@ Above function has size 2 (at offset 0)27@ Expect alignment of +2 (to offset 4)28.arm29 30.type thumb_to_arm,%function31thumb_to_arm:32    nop33 34.byte 035 36@ Above function has size 5 (at offset 4)37@ Expect alignment of +1 (to offset 10)38.thumb39.type unaligned_arm_to_thumb,%function40unaligned_arm_to_thumb:41    nop42 43.byte 044 45@ Above section has size 13 (at offset 34)46@ Expect alignment of +3 (to offset 44)47.section .arm_aligned, "ax"48.arm49 50.type arm_aligned_section,%function51arm_aligned_section:52    nop53 54.byte 055 56@ Above section has size 5 (at offset 44)57@ Expect alignment of +1 (to offset 4a)58.section .thumb_aligned, "ax"59.thumb60 61.type thumb_aligned_section,%function62thumb_aligned_section:63    nop64