1 # Check that LLD links files with mips32 and mips64 instructions
2 # if all these files satisfy O32 ABI.
4 # RUN: yaml2obj -format=elf -docnum 1 %s > %t-32.o
5 # RUN: yaml2obj -format=elf -docnum 2 %s > %t-64.o
6 # RUN: yaml2obj -format=elf -docnum 3 %s > %t-64r2.o
8 # RUN: lld -flavor gnu -target mipsel -shared -o %t.so %t-32.o %t-64.o %t-64r2.o
9 # RUN: llvm-readobj -file-headers %t.so | FileCheck %s
11 # CHECK: Flags [ (0x80001100)
12 # CHECK-NEXT: EF_MIPS_32BITMODE (0x100)
13 # CHECK-NEXT: EF_MIPS_ABI_O32 (0x1000)
14 # CHECK-NEXT: EF_MIPS_ARCH_64R2 (0x80000000)
25 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_32]
30 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
41 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_64, EF_MIPS_32BITMODE]
46 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
57 Flags: [EF_MIPS_ABI_O32, EF_MIPS_ARCH_64R2, EF_MIPS_32BITMODE]
62 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]