Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / avr-flags.s
blobdf449af1c24680a410c27956bc32ce3f595b3752
1 ; REQUIRES: avr
3 ; RUN: llvm-mc -filetype=obj -triple=avr -mcpu=avr5 %s -o %t-v5
4 ; RUN: llvm-mc -filetype=obj -triple=avr -mcpu=avrxmega3 %s -o %t-xmega3
5 ; RUN: ld.lld %t-v5 -o %t-v5.out
6 ; RUN: ld.lld %t-xmega3 -o %t-xmega3.out
7 ; RUN: llvm-readobj -h %t-v5.out | FileCheck --check-prefix V5 %s
8 ; RUN: llvm-readobj -h %t-xmega3.out | FileCheck --check-prefix XMEGA3 %s
10 ;; Ensure LLD won't silently mix object files targeting different ISAs.
11 ; RUN: not ld.lld %t-v5 %t-xmega3 -o /dev/null 2>&1 | FileCheck --check-prefix ERR %s
12 ; ERR: error: {{.*}}: cannot link object files with incompatible target ISA
14 ; V5: Flags [ (0x85)
15 ; V5: EF_AVR_ARCH_AVR5 (0x5)
16 ; V5: EF_AVR_LINKRELAX_PREPARED (0x80)
17 ; XMEGA3: Flags [ (0xE7)
18 ; XMEGA3: EF_AVR_ARCH_XMEGA3 (0x67)
19 ; XMEGA3: EF_AVR_LINKRELAX_PREPARED (0x80)