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