Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / COFF / arm64-dynamicbase.s
blob6ccce26a2f168a326df9574446a5c70d5b6f87d9
1 // REQUIRES: aarch64
2 // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj
3 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no 2>&1 | FileCheck %s
5 // RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t.obj
6 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:arm64ec 2>&1 \
7 // RUN: | FileCheck %s -check-prefix=ARM64EC
8 // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no -machine:arm64x -dll -noentry 2>&1 \
9 // RUN: | FileCheck %s -check-prefix=ARM64X
10 .globl _start
11 _start:
12 ret
14 # CHECK: dynamicbase:no is not compatible with arm64
15 # ARM64EC: dynamicbase:no is not compatible with arm64ec
16 # ARM64X: dynamicbase:no is not compatible with arm64x