[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / obj2yaml / elf-emachine.yaml
blobd351505aa2845ef1aa6d64a1558f673aada69492
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
8 # UNKNOWN:      --- !ELF
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
15 --- !ELF
16 FileHeader:
17   Class:   ELFCLASS64
18   Data:    ELFDATA2MSB
19   Type:    ET_REL
20   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
27 # KNOWN:      --- !ELF
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
34 --- !ELF
35 FileHeader:
36   Class:   ELFCLASS64
37   Data:    ELFDATA2MSB
38   Type:    ET_REL
39   Machine: 0