[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-objdump / Offloading / alignment.test
blobd949d5916ea208429bd0ebb2d3fdc54a90f15c87
1 ## Ensure we can read the contents even if the alignment is bad.
2 # RUN: yaml2obj %s -o %t.elf
3 # RUN: yaml2obj %S/Inputs/binary.yaml -o %t.bin
4 # RUN: llvm-objcopy --update-section .llvm.offloading=%t.bin %t.elf
5 # RUN: llvm-objdump --offloading %t.elf | FileCheck %s -DFILENAME=%t
7 !ELF
8 FileHeader:
9   Class:           ELFCLASS64
10   Data:            ELFDATA2LSB
11   Type:            ET_EXEC
12 Sections:
13   - Name:            .misaligned
14     Type:            SHT_PROGBITS
15     AddressAlign:    0x0000000000000001
16     Content:         "41424300"
17   - Name:            .llvm.offloading
18     Type:            SHT_LLVM_OFFLOADING
19     Flags:           [ SHF_EXCLUDE ]
20     AddressAlign:    0x0000000000000001
22 # CHECK-NOT: error: '[[FILENAME]]': while extracting offloading files: Invalid data was encountered while parsing the file