[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / llvm-objcopy / COFF / patch-debug-dir.test
blob82af18311c8ae919e1b7a4a0aa9a795dbf0f027c
1 # RUN: yaml2obj %s > %t.in.exe
3 # RUN: llvm-objdump -s %t.in.exe | FileCheck %s --check-prefixes=CONTENTS,CONTENTS-PRE
4 # RUN: llvm-readobj --sections %t.in.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-PRE
5 # RUN: llvm-objcopy -R .rdata %t.in.exe %t.out.exe
6 # RUN: llvm-objdump -s %t.out.exe | FileCheck %s --check-prefixes=CONTENTS,CONTENTS-POST
7 # RUN: llvm-readobj --sections %t.out.exe | FileCheck %s --check-prefixes=SECTIONS,SECTIONS-POST
9 # CONTENTS:           Contents of section .buildid:
10 # CONTENTS-NEXT:       {{.*}} 00000000 42ee405c 00000000 02000000
11 # CONTENTS-PRE-NEXT:   {{.*}} 19000000 1c300000 1c080000 52534453
12 # CONTENTS-POST-NEXT:  {{.*}} 19000000 1c300000 1c040000 52534453
13 # CONTENTS-NEXT:       {{.*}} c1330757 2839a337 4c4c4420 5044422e
14 # CONTENTS-NEXT:       {{.*}} 01000000 00
16 # SECTIONS:           Name: .buildid
17 # SECTIONS-NEXT:      VirtualSize:
18 # SECTIONS-NEXT:      VirtualAddress:
19 # SECTIONS-NEXT:      RawDataSize:
20 # SECTIONS-NEXT-PRE:  PointerToRawData: 0x800
21 # SECTIONS-NEXT-POST: PointerToRawData: 0x400
23 --- !COFF
24 OptionalHeader:  
25   AddressOfEntryPoint: 4096
26   ImageBase:       1073741824
27   SectionAlignment: 4096
28   FileAlignment:   512
29   MajorOperatingSystemVersion: 6
30   MinorOperatingSystemVersion: 0
31   MajorImageVersion: 0
32   MinorImageVersion: 0
33   MajorSubsystemVersion: 6
34   MinorSubsystemVersion: 0
35   Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
36   DLLCharacteristics: [  ]
37   SizeOfStackReserve: 1048576
38   SizeOfStackCommit: 4096
39   SizeOfHeapReserve: 1048576
40   SizeOfHeapCommit: 4096
41   Debug:           
42     RelativeVirtualAddress: 12288
43     Size:            28
44 header:          
45   Machine:         IMAGE_FILE_MACHINE_AMD64
46   Characteristics: [  ]
47 sections:        
48   - Name:            .text
49     Characteristics: [  ]
50     VirtualAddress:  4096
51     VirtualSize:     16
52     SectionData:     C3909090909090909090909090909090
53   - Name:            .rdata
54     Characteristics: [  ]
55     VirtualAddress:  8192
56     VirtualSize:     32
57     SectionData:     FFFFFFFF00000000FFFFFFFF00000000
58   - Name:            .buildid
59     Characteristics: [  ]
60     VirtualAddress:  12288
61     VirtualSize:     53
62     SectionData:     0000000042EE405C0000000002000000190000001C3000001C08000052534453C13307572839A3374C4C44205044422E0100000000
63 symbols:         
64 ...