brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · ed53130 Raw
52 lines · plain
1@ RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj < %s | llvm-objdump -t - | FileCheck %s --match-full-lines2 3        .text4        add r0, r0, r05 6@ .wibble should *not* inherit .text's mapping symbol. It's a completely different section.7        .section .wibble8        add r0, r0, r09 10@ A section should be able to start with a $t11        .section .starts_thumb12        .thumb13        adds r0, r0, r014 15@ A setion should be able to start with a $d16        .section .starts_data17        .word 4218 19@ Changing back to .text should not emit a redundant $a20        .text21        .arm22        add r0, r0, r023 24@ Similarly no $t if we change back .starts_thumb using .pushsection25        .pushsection .starts_thumb26        .thumb27        adds r0, r0, r028 29@ When we change back to .text using .popsection .thumb is still active, so we30@ should emit a $t31        .popsection32        add r0, r0, r033 34@ .ident does a push then pop of the .comment section, so the .word should35@ cause $d to appear in the .text section36        .ident "ident"37        .word 038 39@ With all those constraints, we want:40@   + .text to have $a at 0, $t at 8, $d at 1241@   + .wibble to have $a at 042@   + .starts_thumb to have $t at 043@   + .starts_data to have $d at 044 45@ CHECK:      00000000 l .text 00000000 $a46@ CHECK-NEXT: 00000000 l .wibble 00000000 $a47@ CHECK-NEXT: 00000000 l .starts_thumb 00000000 $t48@ CHECK-NEXT: 00000008 l .text 00000000 $t49@ CHECK-NEXT: 0000000a l .text 00000000 $d50@ CHECK-NOT: ${{[adt]}}51 52