brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.4 KiB · 9425094 Raw
161 lines · plain
1# RUN: yaml2obj %s --docnum=1 -o %t.i3862# RUN: llvm-readobj -h %t.i386 \3# RUN:  | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I3864 5#      I386:File: [[FILE]]6# I386-NEXT:Format: Mach-O 32-bit i3867# I386-NEXT:Arch: i3868# I386-NEXT:AddressSize: 32bit9# I386-NEXT:MachHeader {10# I386-NEXT:  Magic: Magic (0xFEEDFACE)11# I386-NEXT:  CpuType: X86 (0x7)12# I386-NEXT:  CpuSubType: CPU_SUBTYPE_I386_ALL (0x3)13# I386-NEXT:  FileType: Relocatable (0x1)14# I386-NEXT:  NumOfLoadCommands: 015# I386-NEXT:  SizeOfLoadCommands: 016# I386-NEXT:  Flags [ (0x2000)17# I386-NEXT:    MH_SUBSECTIONS_VIA_SYMBOLS (0x2000)18# I386-NEXT:  ]19# I386-NEXT:}20# I386-NOT:{{.}}21 22--- !mach-o23FileHeader:24  magic:      0xFEEDFACE25  cputype:    0x0000000726  cpusubtype: 0x0000000327  filetype:   0x0000000128  ncmds:      029  sizeofcmds: 030  flags:      0x0000200031 32# RUN: yaml2obj %s --docnum=2 -o %t.x86-6433# RUN: llvm-readobj -h %t.x86-64 \34# RUN:  | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-6435 36#      X86-64:File: [[FILE]]37# X86-64-NEXT:Format: Mach-O 64-bit x86-6438# X86-64-NEXT:Arch: x86_6439# X86-64-NEXT:AddressSize: 64bit40# X86-64-NEXT:MachHeader {41# X86-64-NEXT:  Magic: Magic64 (0xFEEDFACF)42# X86-64-NEXT:  CpuType: X86-64 (0x1000007)43# X86-64-NEXT:  CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3)44# X86-64-NEXT:  FileType: Relocatable (0x1)45# X86-64-NEXT:  NumOfLoadCommands: 046# X86-64-NEXT:  SizeOfLoadCommands: 047# X86-64-NEXT:  Flags [ (0x2000)48# X86-64-NEXT:    MH_SUBSECTIONS_VIA_SYMBOLS (0x2000)49# X86-64-NEXT:  ]50# X86-64-NEXT:  Reserved: 0x051# X86-64-NEXT:}52# X86-64-NOT:{{.}}53 54--- !mach-o55FileHeader:56  magic:      0xFEEDFACF57  cputype:    0x0100000758  cpusubtype: 0x0000000359  filetype:   0x0000000160  ncmds:      061  sizeofcmds: 062  flags:      0x0000200063  reserved:   0x0000000064 65# RUN: yaml2obj %s --docnum=3 -o %t.ppc66# RUN: llvm-readobj -h %t.ppc \67# RUN:  | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.ppc --check-prefix PPC68 69#      PPC:File: [[FILE]]70# PPC-NEXT:Format: Mach-O 32-bit ppc71# PPC-NEXT:Arch: powerpc72# PPC-NEXT:AddressSize: 32bit73# PPC-NEXT:MachHeader {74# PPC-NEXT:  Magic: Magic (0xFEEDFACE)75# PPC-NEXT:  CpuType: PowerPC (0x12)76# PPC-NEXT:  CpuSubType: CPU_SUBTYPE_POWERPC_ALL (0x0)77# PPC-NEXT:  FileType: Relocatable (0x1)78# PPC-NEXT:  NumOfLoadCommands: 079# PPC-NEXT:  SizeOfLoadCommands: 080# PPC-NEXT:  Flags [ (0x2000)81# PPC-NEXT:    MH_SUBSECTIONS_VIA_SYMBOLS (0x2000)82# PPC-NEXT:  ]83# PPC-NEXT:}84# PPC-NOT:{{.}}85 86--- !mach-o87IsLittleEndian: false88FileHeader:89  magic:      0xFEEDFACE90  cputype:    0x0000001291  cpusubtype: 0x0000000092  filetype:   0x0000000193  ncmds:      094  sizeofcmds: 095  flags:      0x0000200096 97# RUN: yaml2obj %s --docnum=4 -o %t.ppc6498# RUN: llvm-readobj -h %t.ppc64 \99# RUN:  | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.ppc64 --check-prefix PPC64100 101#      PPC64:File: [[FILE]]102# PPC64-NEXT:Format: Mach-O 64-bit ppc64103# PPC64-NEXT:Arch: powerpc64104# PPC64-NEXT:AddressSize: 64bit105# PPC64-NEXT:MachHeader {106# PPC64-NEXT:  Magic: Magic64 (0xFEEDFACF)107# PPC64-NEXT:  CpuType: PowerPC64 (0x1000012)108# PPC64-NEXT:  CpuSubtype: 0x0109# PPC64-NEXT:  FileType: Relocatable (0x1)110# PPC64-NEXT:  NumOfLoadCommands: 0111# PPC64-NEXT:  SizeOfLoadCommands: 0112# PPC64-NEXT:  Flags [ (0x2000)113# PPC64-NEXT:    MH_SUBSECTIONS_VIA_SYMBOLS (0x2000)114# PPC64-NEXT:  ]115# PPC64-NEXT:  Reserved: 0x0116# PPC64-NEXT:}117# PPC64-NOT:{{.}}118 119--- !mach-o120IsLittleEndian: false121FileHeader:122  magic:      0xFEEDFACF123  cputype:    0x01000012124  cpusubtype: 0x00000000125  filetype:   0x00000001126  ncmds:      0127  sizeofcmds: 0128  flags:      0x00002000129  reserved:   0x00000000130 131# RUN: yaml2obj %s --docnum=5 -o %t.arm132# RUN: llvm-readobj -h %t.arm \133# RUN:  | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.arm --check-prefix ARM134 135#      ARM:File: [[FILE]]136# ARM-NEXT:Format: Mach-O arm137# ARM-NEXT:Arch: arm138# ARM-NEXT:AddressSize: 32bit139# ARM-NEXT:MachHeader {140# ARM-NEXT:  Magic: Magic (0xFEEDFACE)141# ARM-NEXT:  CpuType: Arm (0xC)142# ARM-NEXT:  CpuSubType: CPU_SUBTYPE_ARM_V7 (0x9)143# ARM-NEXT:  FileType: Relocatable (0x1)144# ARM-NEXT:  NumOfLoadCommands: 0145# ARM-NEXT:  SizeOfLoadCommands: 0146# ARM-NEXT:  Flags [ (0x2000)147# ARM-NEXT:    MH_SUBSECTIONS_VIA_SYMBOLS (0x2000)148# ARM-NEXT:  ]149# ARM-NEXT:}150# ARM-NOT:{{.}}151 152--- !mach-o153FileHeader:154  magic:      0xFEEDFACE155  cputype:    0x0000000C156  cpusubtype: 0x00000009157  filetype:   0x00000001158  ncmds:      0159  sizeofcmds: 0160  flags:      0x00002000161