1 # RUN: yaml2obj -docnum=1 %s > %t.o32
2 # RUN: llvm-readobj -file-headers %t.o32 | FileCheck -check-prefix=O32OBJ %s
3 # RUN: obj2yaml %t.o32 | FileCheck -check-prefix=O32YAML %s
5 # O32OBJ: Flags [ (0x50001002)
6 # O32OBJ-NEXT: EF_MIPS_ABI_O32 (0x1000)
7 # O32OBJ-NEXT: EF_MIPS_ARCH_32 (0x50000000)
8 # O32OBJ-NEXT: EF_MIPS_PIC (0x2)
11 # O32YAML: Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
13 # RUN: yaml2obj -docnum=2 %s > %t.o64
14 # RUN: llvm-readobj -file-headers %t.o64 | FileCheck -check-prefix=O64OBJ %s
15 # RUN: obj2yaml %t.o64 | FileCheck -check-prefix=O64YAML %s
17 # O64OBJ: Flags [ (0x60002002)
18 # O64OBJ-NEXT: EF_MIPS_ABI_O64 (0x2000)
19 # O64OBJ-NEXT: EF_MIPS_ARCH_64 (0x60000000)
20 # O64OBJ-NEXT: EF_MIPS_PIC (0x2)
23 # O64YAML: Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_O64, EF_MIPS_ARCH_64 ]
25 # RUN: yaml2obj -docnum=3 %s > %t.eabi32
26 # RUN: llvm-readobj -file-headers %t.eabi32 | FileCheck -check-prefix=E32OBJ %s
27 # RUN: obj2yaml %t.eabi32 | FileCheck -check-prefix=E32YAML %s
29 # E32OBJ: Flags [ (0x50003002)
30 # E32OBJ-NEXT: EF_MIPS_ABI_EABI32 (0x3000)
31 # E32OBJ-NEXT: EF_MIPS_ARCH_32 (0x50000000)
32 # E32OBJ-NEXT: EF_MIPS_PIC (0x2)
35 # E32YAML: Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_EABI32, EF_MIPS_ARCH_32 ]
37 # RUN: yaml2obj -docnum=4 %s > %t.eabi64
38 # RUN: llvm-readobj -file-headers %t.eabi64 | FileCheck -check-prefix=E64OBJ %s
39 # RUN: obj2yaml %t.eabi64 | FileCheck -check-prefix=E64YAML %s
41 # E64OBJ: Flags [ (0x60004002)
42 # E64OBJ-NEXT: EF_MIPS_ABI_EABI64 (0x4000)
43 # E64OBJ-NEXT: EF_MIPS_ARCH_64 (0x60000000)
44 # E64OBJ-NEXT: EF_MIPS_PIC (0x2)
47 # E64YAML: Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_EABI64, EF_MIPS_ARCH_64 ]
56 Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
60 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
78 Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_O64, EF_MIPS_ARCH_64 ]
82 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
100 Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_EABI32, EF_MIPS_ARCH_32 ]
104 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
122 Flags: [ EF_MIPS_PIC, EF_MIPS_ABI_EABI64, EF_MIPS_ARCH_64 ]
126 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]