1## This test checks that the CPUTypes are printed correctly for the subtypes of 2## ARM64. 3 4# RUN: yaml2obj %s -o %tarm.o 5# RUN: llvm-objdump %tarm.o --universal-headers --macho | \ 6# RUN: FileCheck %s --match-full-lines 7 8# CHECK: Fat headers 9# CHECK-NEXT: fat_magic FAT_MAGIC 10# CHECK-NEXT: nfat_arch 3 11# CHECK-NEXT: architecture arm64 12# CHECK-NEXT: cputype CPU_TYPE_ARM64 13# CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64_ALL 14# CHECK-NEXT: capabilities 0x0 15# CHECK-NEXT: offset 4096 16# CHECK-NEXT: size 352 17# CHECK-NEXT: align 2^12 (4096) 18# CHECK-NEXT: architecture 19# CHECK-NEXT: cputype CPU_TYPE_ARM64 20# CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64_V8 21# CHECK-NEXT: capabilities 0x0 22# CHECK-NEXT: offset 16384 23# CHECK-NEXT: size 384 24# CHECK-NEXT: align 2^14 (16384) 25# CHECK-NEXT: architecture arm64e 26# CHECK-NEXT: cputype CPU_TYPE_ARM64 27# CHECK-NEXT: cpusubtype CPU_SUBTYPE_ARM64E 28# CHECK-NEXT: capabilities 0x0 29# CHECK-NEXT: offset 28672 30# CHECK-NEXT: size 384 31# CHECK-NEXT: align 2^12 (4096) 32# CHECK-NOT:{{.}} 33 34--- !fat-mach-o 35FatHeader: 36 magic: 0xCAFEBABE 37 nfat_arch: 3 38FatArchs: 39 - cputype: 0x0100000C 40 cpusubtype: 0x00000000 41 offset: 0x0000000000001000 42 size: 352 43 align: 12 44 - cputype: 0x0100000C 45 cpusubtype: 0x00000001 46 offset: 0x0000000000004000 47 size: 384 48 align: 14 49 - cputype: 0x0100000C 50 cpusubtype: 0x00000002 51 offset: 0x0000000000007000 52 size: 384 53 align: 12 54Slices: 55 - !mach-o 56 FileHeader: 57 magic: 0xFEEDFACF 58 cputype: 0x0100000C 59 cpusubtype: 0x00000000 60 filetype: 0x00000001 61 ncmds: 0 62 sizeofcmds: 0 63 flags: 0x00000000 64 reserved: 0x00000000 65 - !mach-o 66 FileHeader: 67 magic: 0xFEEDFACF 68 cputype: 0x0100000C 69 cpusubtype: 0x00000001 70 filetype: 0x00000001 71 ncmds: 0 72 sizeofcmds: 0 73 flags: 0x00000000 74 reserved: 0x00000000 75 - !mach-o 76 FileHeader: 77 magic: 0xFEEDFACF 78 cputype: 0x0100000C 79 cpusubtype: 0x00000002 80 filetype: 0x00000001 81 ncmds: 0 82 sizeofcmds: 0 83 flags: 0x00000000 84 reserved: 0x00000000 85... 86