blob: 429f7d3b9ee133fd9ba46a56d4e0fb8e519d1dc0 [file] [log] [blame] [edit]
// RUN: %clang -cc1 %s -triple "spirv64-amd-amdhsa" -emit-llvm-bc -o %t.bc
// RUN: llvm-offload-binary -o %t.out "--image=file=%t.bc,triple=spirv64-amd-amdhsa,arch=amdgcnspirv,kind=hip"
// RUN: clang-linker-wrapper \
// RUN: "--should-extract=amdgcnspirv" \
// RUN: "--host-triple=spirv64-amd-amdhsa" \
// RUN: "--linker-path=clang-offload-bundler" \
// RUN: "--emit-fatbin-only" \
// RUN: "-o" "%t.hipfb" \
// RUN: "%t.out" \
// RUN: --dry-run \
// RUN: 2>&1 | FileCheck %s
// clang-linker-wrapper was previously calling clang-offload-bundler with -targets=...,hip-amdgcn-amd-amdhsa--amdgcnspirv
// This caused the runtime not to recognise the triple for the AMD SPIR-V code.
// CHECK: {{".*clang-offload-bundler.*"}} {{.*}} -targets={{.*}},hip-spirv64-amd-amdhsa--amdgcnspirv