[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / arm64-mapping-across-sections.s
blob00b324cb82643d046060474b4409b9aac12172a5
1 // RUN: llvm-mc -triple=arm64-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: 00000000 .starts_data 00000000 $d
25 // CHECK-NEXT: 00000000 .text 00000000 $x
26 // CHECK-NEXT: 00000000 .wibble 00000000 $x
27 // CHECK-NOT: ${{[adtx]}}