Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / mapping-across-sections.s
blob053deb760dcfd05acb303885d870a8b4dec5b0b6
1 // RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
3 .text
4 add w0, w0, w0
6 // .wibble should *not* inherit .text's mapping symbol. It's a completely different section.
7 .section .wibble
8 add w0, w0, w0
10 // A setion should be able to start with a $d
11 .section .starts_data
12 .word 42
14 // Changing back to .text should not emit a redundant $x
15 .text
16 add w0, w0, w0
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
24 // CHECK: 0000000000000000 l .text 0000000000000000 $x
25 // CHECK-NEXT: 0000000000000000 l .wibble 0000000000000000 $x
26 // CHECK-NEXT: 0000000000000000 l .starts_data 0000000000000000 $d
27 // CHECK-NOT: ${{[adtx]}}