forked from OSchip/llvm-project
13 lines
747 B
Plaintext
13 lines
747 B
Plaintext
// RUN: touch %t.o
|
|
// RUN: %clang --hip-link -ccc-print-bindings -target x86_64-linux-gnu \
|
|
// RUN: --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 %t.o %S/Inputs/in.so \
|
|
// RUN: -fgpu-rdc 2>&1 | FileCheck %s
|
|
|
|
// CHECK: # "amdgcn-amd-amdhsa" - "offload bundler", inputs: ["[[IN:.*o]]"], outputs: ["[[OBJ1:.*o]]", "[[OBJ2:.*o]]", "[[OBJ3:.*o]]"]
|
|
// CHECK: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ2]]"], output: "[[IMG2:.*out]]"
|
|
// CHECK-NOT: offload bundler
|
|
// CHECK: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ3]]"], output: "[[IMG3:.*out]]"
|
|
// CHECK-NOT: offload bundler
|
|
// CHECK: # "x86_64-unknown-linux-gnu" - "GNU::Linker", inputs: ["[[OBJ1]]", "{{.*}}/Inputs/in.so", "[[IMG2]]", "[[IMG3]]"], output: "a.out"
|
|
|