17 lines · c
1// RUN: %clang -cc1 %s -triple "spirv64-amd-amdhsa" -emit-llvm-bc -o %t.bc2// RUN: llvm-offload-binary -o %t.out "--image=file=%t.bc,triple=spirv64-amd-amdhsa,arch=amdgcnspirv,kind=hip"3// RUN: clang-linker-wrapper \4// RUN: "--should-extract=amdgcnspirv" \5// RUN: "--host-triple=spirv64-amd-amdhsa" \6// RUN: "--linker-path=clang-offload-bundler" \7// RUN: "--emit-fatbin-only" \8// RUN: "-o" "%t.hipfb" \9// RUN: "%t.out" \10// RUN: --dry-run \11// RUN: 2>&1 | FileCheck %s12 13// clang-linker-wrapper was previously calling clang-offload-bundler with -targets=...,hip-amdgcn-amd-amdhsa--amdgcnspirv14// This caused the runtime not to recognise the triple for the AMD SPIR-V code.15 16// CHECK: {{".*clang-offload-bundler.*"}} {{.*}} -targets={{.*}},hip-spirv64-amd-amdhsa--amdgcnspirv17