blob: 3278fa0c7e23f5fcef2bb41c314181552c510554 [file] [log] [blame]
Simon Atanasyane03007c2019-09-22 16:26:391# REQUIRES: mips
2# Check deducing MIPS specific ELF header flags from `emulation`.
3
4# RUN: echo -n "BLOB" > %t.binary
5# RUN: ld.lld -m elf32btsmip -r -b binary %t.binary -o %t.out
6# RUN: llvm-readobj -h %t.out | FileCheck -check-prefix=O32 %s
7
8# RUN: echo -n "BLOB" > %t.binary
9# RUN: ld.lld -m elf32btsmipn32 -r -b binary %t.binary -o %t.out
10# RUN: llvm-readobj -h %t.out | FileCheck -check-prefix=N32 %s
11
12# RUN: echo -n "BLOB" > %t.binary
13# RUN: ld.lld -m elf64btsmip -r -b binary %t.binary -o %t.out
14# RUN: llvm-readobj -h %t.out | FileCheck -check-prefix=N64 %s
15
16# O32: Flags [
17# O32-NEXT: EF_MIPS_ABI_O32
18# O32-NEXT: ]
19
20# N32: Flags [
21# N32-NEXT: EF_MIPS_ABI2
22# N32-NEXT: ]
23
24# N64: Flags [
25# N64-NEXT: ]