mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
2365b4ea23
Displays the architecture names of an input file. Unknown architectures are represented by unknown(cputype,cpusubtype). Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D62753 llvm-svn: 362840
20 lines
532 B
Plaintext
20 lines
532 B
Plaintext
# RUN: yaml2obj %s > %t
|
|
|
|
# RUN: llvm-lipo %t -archs | FileCheck --check-prefix=ARCHS %s
|
|
# RUN: llvm-lipo %t --archs | FileCheck --check-prefix=ARCHS %s
|
|
# ARCHS: i386
|
|
|
|
# RUN: not llvm-lipo %t %t -archs 2>&1 | FileCheck --check-prefix=MULTIPLE_INPUT_OBJ %s
|
|
# MULTIPLE_INPUT_OBJ: archs expects a single input file
|
|
|
|
--- !mach-o
|
|
FileHeader:
|
|
magic: 0xFEEDFACE
|
|
cputype: 0x00000007
|
|
cpusubtype: 0x00000003
|
|
filetype: 0x00000001
|
|
ncmds: 0
|
|
sizeofcmds: 0
|
|
flags: 0x00002000
|
|
...
|