[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / llvm-readobj / reloc-types-coff-i386.test
blob466530c53ed08449fa8703ab142c7d9ea789dc3b
1 ## Test that llvm-readobj/llvm-readelf shows proper relocation type
2 ## names and values for coff-i386 target.
4 # RUN: yaml2obj %s -o %t-coff-i386.o
5 # RUN: llvm-readobj -r --expand-relocs %t-coff-i386.o | FileCheck %s
7 # CHECK: Type: IMAGE_REL_I386_ABSOLUTE (0)
8 # CHECK: Type: IMAGE_REL_I386_DIR16 (1)
9 # CHECK: Type: IMAGE_REL_I386_REL16 (2)
10 # CHECK: Type: IMAGE_REL_I386_DIR32 (6)
11 # CHECK: Type: IMAGE_REL_I386_DIR32NB (7)
12 # CHECK: Type: IMAGE_REL_I386_SEG12 (9)
13 # CHECK: Type: IMAGE_REL_I386_SECTION (10)
14 # CHECK: Type: IMAGE_REL_I386_SECREL (11)
15 # CHECK: Type: IMAGE_REL_I386_TOKEN (12)
16 # CHECK: Type: IMAGE_REL_I386_SECREL7 (13)
17 # CHECK: Type: IMAGE_REL_I386_REL32 (20)
19 --- !COFF
20 header:
21   Machine:         IMAGE_FILE_MACHINE_I386
22   Characteristics: [  ]
23 sections:
24   - Name:            .text
25     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
26     Alignment:       4
27     SectionData:     00
28     Relocations:
29       - VirtualAddress: 3
30         Type:           IMAGE_REL_I386_ABSOLUTE
31       - VirtualAddress: 10
32         Type:           IMAGE_REL_I386_DIR16
33       - VirtualAddress: 17
34         Type:           IMAGE_REL_I386_REL16
35       - VirtualAddress: 24
36         Type:           IMAGE_REL_I386_DIR32
37       - VirtualAddress: 31
38         Type:           IMAGE_REL_I386_DIR32NB
39       - VirtualAddress: 38
40         Type:           IMAGE_REL_I386_SEG12
41       - VirtualAddress: 45
42         Type:           IMAGE_REL_I386_SECTION
43       - VirtualAddress: 52
44         Type:           IMAGE_REL_I386_SECREL
45       - VirtualAddress: 59
46         Type:           IMAGE_REL_I386_TOKEN
47       - VirtualAddress: 66
48         Type:           IMAGE_REL_I386_SECREL7
49       - VirtualAddress: 73
50         Type:           IMAGE_REL_I386_REL32
51 symbols:
52   - Name:            .text
53     Value:           0
54     SectionNumber:   1
55     SimpleType:      IMAGE_SYM_TYPE_NULL
56     ComplexType:     IMAGE_SYM_DTYPE_NULL
57     StorageClass:    IMAGE_SYM_CLASS_STATIC
58     SectionDefinition: 
59       Length:          77
60       NumberOfRelocations: 11
61       NumberOfLinenumbers: 0
62       CheckSum:        0
63       Number:          1