[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / yaml2obj / invalid-symboless-relocation.yaml
blob9ec956fcf8c8fdb0af329b93e891d0a8c911f3c2
1 # This test succeeds but produces an invalid relocation. This test
2 # documents this behavoir.
3 # RUN: yaml2obj %s > %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   Type:            ET_EXEC
11   Machine:         EM_X86_64
12 Sections:
13   - Name:            .text
14     Type:            SHT_PROGBITS
15     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
16     Content:         "00000000"
17   - Name:            .rel.text
18     Type:            SHT_REL
19     Info:            .text
20     Relocations:
21       - Offset: 0x1000
22         Type:   R_X86_64_PC32
24 #CHECK:     Relocations [
25 #CHECK-NEXT:  Section (2) .rel.text {
26 #CHECK-NEXT:    0x1000 R_X86_64_PC32 - 0x0
27 #CHECK-NEXT:  }
28 #CHECK-NEXT:]