1# 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: ] 26