1 ## Check how obj2yaml dumps e_machine field.
3 ## Check it dumps an unknown e_machine as a number.
5 # RUN: yaml2obj --docnum=1 %s -o %t1
6 # RUN: obj2yaml %t1 | FileCheck %s --check-prefix=UNKNOWN
9 # UNKNOWN-NEXT: FileHeader:
10 # UNKNOWN-NEXT: Class: ELFCLASS64
11 # UNKNOWN-NEXT: Data: ELFDATA2MSB
12 # UNKNOWN-NEXT: Type: ET_REL
13 # UNKNOWN-NEXT: Machine: 0x1234
22 ## Check it dumps a known e_machine value as an enum string.
24 # RUN: yaml2obj --docnum=2 %s -o %t2
25 # RUN: obj2yaml %t2 | FileCheck %s --check-prefix=KNOWN
28 # KNOWN-NEXT: FileHeader:
29 # KNOWN-NEXT: Class: ELFCLASS64
30 # KNOWN-NEXT: Data: ELFDATA2MSB
31 # KNOWN-NEXT: Type: ET_REL
32 # KNOWN-NEXT: Machine: EM_NONE