Home | History | Annotate | Download | only in ARM
      1 @ RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
      2 
      3         .text
      4         add r0, r0, r0
      5 
      6 @ .wibble should *not* inherit .text's mapping symbol. It's a completely different section.
      7         .section .wibble
      8         add r0, r0, r0
      9 
     10 @ A section should be able to start with a $t
     11         .section .starts_thumb
     12         .thumb
     13         adds r0, r0, r0
     14 
     15 @ A setion should be able to start with a $d
     16         .section .starts_data
     17         .word 42
     18 
     19 @ Changing back to .text should not emit a redundant $a
     20         .text
     21         .arm
     22         add r0, r0, r0
     23 
     24 @ With all those constraints, we want:
     25 @   + .text to have $a at 0 and no others
     26 @   + .wibble to have $a at 0
     27 @   + .starts_thumb to have $t at 0
     28 @   + .starts_data to have $d at 0
     29 
     30 @ CHECK: 00000000 .text 00000000 $a
     31 @ CHECK-NEXT: 00000000 .wibble 00000000 $a
     32 @ CHECK-NEXT: 00000000 .starts_data 00000000 $d
     33 @ CHECK-NEXT: 00000000 .starts_thumb 00000000 $t
     34 @ CHECK-NOT: ${{[adt]}}
     35 
     36