Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / invalid / invalid-loh.s
blob20da17fa29edcfafa2ba17a9fe8fdf52ae22d7f5
1 # REQUIRES: aarch64
2 # RUN: rm -rf %t; mkdir -p %t
4 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t/test.o
5 # RUN: not %lld -arch arm64 %t/test.o -o /dev/null 2>&1 | FileCheck %s
7 # CHECK: error: {{.*}}test.o: linker optimization hint spans multiple sections
9 .globl _main
10 _main:
11 L1:
12 adrp x0, _target@PAGE
14 _foo:
15 L2:
16 add x0, x0, _target@PAGEOFF
18 _target:
20 .loh AdrpAdd L1, L2
21 .subsections_via_symbols