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
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)