Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-readobj / arm64ec-chpe.yaml
blob2aa80df0820e90e0cafab182de435c1628ee981d
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --coff-load-config %t | FileCheck %s
4 # CHECK: CHPEMetadataPointer: 0x180005000
5 # CHECK:      CHPEMetadata [
6 # CHECK-NEXT:   Version: 0x1
7 # CHECK-NEXT:   CodeMap [
8 # CHECK-NEXT:     0x1000 - 0x1030  ARM64EC
9 # CHECK-NEXT:     0x2000 - 0x2040  ARM64
10 # CHECK-NEXT:     0x3000 - 0x3050  X64
11 # CHECK-NEXT:   ]
12 # CHECK-NEXT:   CodeRangesToEntryPoints [
13 # CHECK-NEXT:     0x1000 - 0x1020 -> 0x1000
14 # CHECK-NEXT:     0x1020 - 0x1040 -> 0x2000
15 # CHECK-NEXT:   ]
16 # CHECK-NEXT:   RedirectionMetadata [
17 # CHECK-NEXT:     0x1000 -> 0x2000
18 # CHECK-NEXT:     0x1020 -> 0x2030
19 # CHECK-NEXT:   ]
21 --- !COFF
22 OptionalHeader:
23   ImageBase:       0x180000000
24   SectionAlignment: 4096
25   FileAlignment:   512
26   DLLCharacteristics: [ ]
27   LoadConfigTable:
28     RelativeVirtualAddress: 0x4000
29     Size:            320
30 header:
31   Machine:         IMAGE_FILE_MACHINE_AMD64
32   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE, IMAGE_FILE_DLL ]
33 sections:
34   - Name:            .text
35     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
36     VirtualAddress:  0x1000
37     VirtualSize:     0x2050
38   - Name:            .rdata
39     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
40     VirtualAddress:  0x4000
41     VirtualSize:     328
42     StructuredData:
43       - LoadConfig:
44           CHPEMetadataPointer: 0x180005000
45   - Name:            .data
46     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
47     VirtualAddress:  0x5000
48     VirtualSize:     144
49     StructuredData:
50       - UInt32: 1       # Version
51       - UInt32: 0x5050  # CodeMap
52       - UInt32: 3       # CodeMapCount
53       - UInt32: 0x5068  # CodeRangesToEntryPoints
54       - UInt32: 0x5080  # RedirectionMetadata
55       - UInt32: 0
56       - UInt32: 0
57       - UInt32: 0
58       - UInt32: 0
59       - UInt32: 0
60       - UInt32: 0
61       - UInt32: 0
62       - UInt32: 2       # CodeRangesToEntryPointsCount
63       - UInt32: 2       # RedirectionMetadataCount
64       - UInt32: 0
65       - UInt32: 0
66       - UInt32: 0
67       - UInt32: 0
68       - UInt32: 0
69       - UInt32: 0
70       - UInt32: 0x1001  # CodeMap[0]
71       - UInt32: 0x30
72       - UInt32: 0x2000  # CodeMap[1]
73       - UInt32: 0x40
74       - UInt32: 0x3002  # CodeMap[2]
75       - UInt32: 0x50
76       - UInt32: 0x1000  # CodeRangesToEntryPoints[0]
77       - UInt32: 0x1020
78       - UInt32: 0x1000
79       - UInt32: 0x1020  # CodeRangesToEntryPoints[1]
80       - UInt32: 0x1040
81       - UInt32: 0x2000
82       - UInt32: 0x1000  # RedirectionMetadata[0]
83       - UInt32: 0x2000
84       - UInt32: 0x1020  # RedirectionMetadata[1]
85       - UInt32: 0x2030
86 symbols:         []
87 ...