1# RUN: yaml2obj %s > %t
2# RUN: llvm-readobj -file-headers %t | FileCheck -check-prefix=OBJ %s
3# RUN: obj2yaml %t | FileCheck -check-prefix=YAML %s
4
5# OBJ:      Flags [ (0x9E8B1727)
6# OBJ-NEXT:   EF_MIPS_32BITMODE (0x100)
7# OBJ-NEXT:   EF_MIPS_ABI2 (0x20)
8# OBJ-NEXT:   EF_MIPS_ABI_O32 (0x1000)
9# OBJ-NEXT:   EF_MIPS_ARCH_32R6 (0x90000000)
10# OBJ-NEXT:   EF_MIPS_ARCH_ASE_M16 (0x4000000)
11# OBJ-NEXT:   EF_MIPS_ARCH_ASE_MDMX (0x8000000)
12# OBJ-NEXT:   EF_MIPS_CPIC (0x4)
13# OBJ-NEXT:   EF_MIPS_FP64 (0x200)
14# OBJ-NEXT:   EF_MIPS_MACH_OCTEON (0x8B0000)
15# OBJ-NEXT:   EF_MIPS_MICROMIPS (0x2000000)
16# OBJ-NEXT:   EF_MIPS_NAN2008 (0x400)
17# OBJ-NEXT:   EF_MIPS_NOREORDER (0x1)
18# OBJ-NEXT:   EF_MIPS_PIC (0x2)
19# OBJ-NEXT: ]
20
21# YAML:      FileHeader:
22# YAML-NEXT:   Class:           ELFCLASS32
23# YAML-NEXT:   Data:            ELFDATA2LSB
24# YAML-NEXT:   Type:            ET_REL
25# YAML-NEXT:   Machine:         EM_MIPS
26# YAML-NEXT:   Flags:           [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI2, EF_MIPS_32BITMODE, EF_MIPS_FP64, EF_MIPS_NAN2008, EF_MIPS_MICROMIPS, EF_MIPS_ARCH_ASE_M16, EF_MIPS_ARCH_ASE_MDMX, EF_MIPS_ABI_O32, EF_MIPS_MACH_OCTEON, EF_MIPS_ARCH_32R6 ]
27
28--- !ELF
29FileHeader:
30  Class:    ELFCLASS32
31  Data:     ELFDATA2LSB
32  Type:     ET_REL
33  Machine:  EM_MIPS
34  Flags:    [ EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_ABI2,
35              EF_MIPS_32BITMODE, EF_MIPS_FP64, EF_MIPS_NAN2008,
36              EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R6,
37              EF_MIPS_MICROMIPS, EF_MIPS_ARCH_ASE_M16,
38              EF_MIPS_ARCH_ASE_MDMX, EF_MIPS_MACH_OCTEON ]
39Sections:
40  - Name:          .text
41    Type:          SHT_PROGBITS
42    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
43    AddressAlign:  16
44    Size:          4
45
46Symbols:
47  Global:
48    - Name:    T1
49      Section: .text
50      Value:   0
51      Size:    4
52...
53