1 # RUN: yaml2obj --docnum=1 %s -o %t
2 # RUN: llvm-ifs --input-format=ELF --output-ifs=- %t | FileCheck %s -DTARGET="{ ObjectFormat: ELF, Arch: x86_64, Endianness: little, BitWidth: 64 }"
3 # RUN: llvm-ifs --input-format=ELF --output-ifs=- --hint-ifs-target="x86_64-linux-gnu" %t | FileCheck %s -DTARGET="x86_64-linux-gnu"
20 Address: 0x0000000000000008
22 AddressAlign: 0x0000000000000008
23 EntSize: 0x0000000000000010
26 Value: 0x0000000000000001
28 Value: 0x0000000000000000
30 Value: 0x0000000000000000
32 Value: 0x0000000000000000
47 # CHECK-NEXT: IfsVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
48 # CHECK-NEXT: Target: [[TARGET]]
49 # CHECK-NEXT: Symbols: []
52 # HINTERR: error: Triple hint does not match the actual [[MSG]]
54 # RUN: yaml2obj --docnum=1 %s -o %t
55 # RUN: not llvm-ifs --input-format=ELF --output-ifs=%t.tbe --hint-ifs-target="aarch64-linux-gnu" %t 2>&1 | FileCheck %s -DMSG=architecture --check-prefix=HINTERR
72 Address: 0x0000000000000008
74 AddressAlign: 0x0000000000000008
75 EntSize: 0x0000000000000010
78 Value: 0x0000000000000001
80 Value: 0x0000000000000000
82 Value: 0x0000000000000000
84 Value: 0x0000000000000000
98 # RUN: yaml2obj --docnum=2 %s -o %t
99 # RUN: not llvm-ifs --input-format=ELF --output-ifs=%t.tbe --hint-ifs-target="x86_64-unknown-linux-gnu" %t 2>&1 | FileCheck %s -DMSG="endianness" --check-prefix=HINTERR
116 Address: 0x0000000000000008
118 AddressAlign: 0x0000000000000008
119 EntSize: 0x0000000000000010
122 Value: 0x0000000000000001
124 Value: 0x0000000000000000
126 Value: 0x0000000000000000
128 Value: 0x0000000000000000
137 Flags: [ PF_X, PF_R ]
142 # RUN: yaml2obj --docnum=3 %s -o %t
143 # RUN: not llvm-ifs --input-format=ELF --output-ifs=%t.tbe --hint-ifs-target="x86_64-unknown-linux-gnu" %t 2>&1 | FileCheck %s -DMSG="bit width" --check-prefix=HINTERR