1 # RUN: yaml2obj %S/Inputs/binary.yaml -o %t.bin
2 # RUN: yaml2obj %s -o %t.coff
3 # RUN: llvm-objcopy --add-section .llvm.offloading=%t.bin %t.coff
4 # RUN: llvm-objdump --offloading %t.coff | FileCheck %s --match-full-lines --strict-whitespace --implicit-check-not={{.}}
8 Machine: IMAGE_FILE_MACHINE_AMD64
13 - Name: .llvm.offloading
14 Characteristics: [ IMAGE_SCN_LNK_REMOVE, IMAGE_SCN_MEM_DISCARDABLE ]
18 # CHECK:{{.*}}file format coff-x86-64
20 # CHECK-NEXT:OFFLOADING IMAGE [0]:
21 # CHECK-NEXT:kind llvm ir
22 # CHECK-NEXT:arch gfx908
23 # CHECK-NEXT:triple amdgcn-amd-amdhsa
24 # CHECK-NEXT:producer openmp
26 # CHECK-NEXT:OFFLOADING IMAGE [1]:
27 # CHECK-NEXT:kind llvm ir
28 # CHECK-NEXT:arch gfx90a
29 # CHECK-NEXT:triple amdgcn-amd-amdhsa
30 # CHECK-NEXT:producer openmp
32 # CHECK-NEXT:OFFLOADING IMAGE [2]:
33 # CHECK-NEXT:kind cubin
34 # CHECK-NEXT:arch sm_52
35 # CHECK-NEXT:triple nvptx64-nvidia-cuda
36 # CHECK-NEXT:producer openmp
38 # CHECK-NEXT:OFFLOADING IMAGE [3]:
39 # CHECK-NEXT:kind <none>
40 # CHECK-NEXT:arch sm_70
41 # CHECK-NEXT:triple nvptx64-nvidia-cuda
42 # CHECK-NEXT:producer none