|
116 | 116 | // RUN: not clang-offload-bundler -type=i -targets=host-powerpc64le-ibm-linux-gnu,openmp-powerpc64le-ibm-linux-gnu,xpenmp-x86_xx-pc-linux-gnu -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR8B |
117 | 117 | // CK-ERR8B: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', unknown target triple 'x86_xx-pc-linux-gnu' |
118 | 118 |
|
119 | | -// RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-linux,openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9A |
| 119 | +// RUN: not clang-offload-bundler -type=i -targets=openmp-powerpc64le-ibm-linux-gnu,openmp-x86_64-pc-linux-gnu -input=%t.i -input=%t.tgt1 -output=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9A |
120 | 120 | // CK-ERR9A: error: expecting exactly one host target but got 0 |
121 | 121 |
|
122 | 122 | // RUN: not clang-offload-bundler -type=i -targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -input=%t.i -input=%t.tgt1 -input=%t.tgt2 -output=%t.bundle.i 2>&1 | FileCheck %s --check-prefix CK-ERR9B |
|
364 | 364 | // RUN: not clang-offload-bundler -type=bc -input=%t.hip.bundle.bc -output=%t.tmp.bc -output=%t.tmp2.bc -unbundle \ |
365 | 365 | // RUN: -targets=hip-amdgcn-amd-amdhsa--gfx906,hip-amdgcn-amd-amdhsa--gfx900 \ |
366 | 366 | // RUN: 2>&1 | FileCheck -check-prefix=MISS1 %s |
367 | | -// MISS1: error: Can't find bundles for hip-amdgcn-amd-amdhsa--gfx906 |
| 367 | +// MISS1: error: Can't find bundles for hip-amdgcn-amd-amdhsa-unknown-gfx906 |
368 | 368 | // RUN: not clang-offload-bundler -type=bc -input=%t.hip.bundle.bc -output=%t.tmp.bc -output=%t.tmp2.bc -unbundle \ |
369 | 369 | // RUN: -targets=hip-amdgcn-amd-amdhsa--gfx906,hip-amdgcn-amd-amdhsa--gfx803 \ |
370 | 370 | // RUN: 2>&1 | FileCheck -check-prefix=MISS2 %s |
371 | | -// MISS2: error: Can't find bundles for hip-amdgcn-amd-amdhsa--gfx803 and hip-amdgcn-amd-amdhsa--gfx906 |
| 371 | +// MISS2: error: Can't find bundles for hip-amdgcn-amd-amdhsa-unknown-gfx803 and hip-amdgcn-amd-amdhsa-unknown-gfx906 |
372 | 372 | // RUN: not clang-offload-bundler -type=bc -input=%t.hip.bundle.bc -output=%t.tmp.bc -output=%t.tmp2.bc -output=%t.tmp3.bc -unbundle \ |
373 | 373 | // RUN: -targets=hip-amdgcn-amd-amdhsa--gfx906,hip-amdgcn-amd-amdhsa--gfx803,hip-amdgcn-amd-amdhsa--gfx1010 \ |
374 | 374 | // RUN: 2>&1 | FileCheck -check-prefix=MISS3 %s |
375 | | -// MISS3: error: Can't find bundles for hip-amdgcn-amd-amdhsa--gfx1010, hip-amdgcn-amd-amdhsa--gfx803, and hip-amdgcn-amd-amdhsa--gfx906 |
| 375 | +// MISS3: error: Can't find bundles for hip-amdgcn-amd-amdhsa-unknown-gfx1010, hip-amdgcn-amd-amdhsa-unknown-gfx803, and hip-amdgcn-amd-amdhsa-unknown-gfx906 |
376 | 376 |
|
377 | 377 | // |
378 | 378 | // Check error due to duplicate targets |
|
422 | 422 | // RUN: -output=%T/hip_900.a -output=%T/hip_906.a -input=%T/hip_archive.a |
423 | 423 | // RUN: llvm-ar t %T/hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s |
424 | 424 | // RUN: llvm-ar t %T/hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s |
425 | | -// HIP-AR-900-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx900 |
426 | | -// HIP-AR-900-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa--gfx900 |
427 | | -// HIP-AR-906-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx906 |
428 | | -// HIP-AR-906-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa--gfx906 |
| 425 | +// HIP-AR-900-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa-unknown-gfx900 |
| 426 | +// HIP-AR-900-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa-unknown-gfx900 |
| 427 | +// HIP-AR-906-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa-unknown-gfx906 |
| 428 | +// HIP-AR-906-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa-unknown-gfx906 |
429 | 429 |
|
430 | 430 | // |
431 | 431 | // Check unbundling archive for host target |
|
469 | 469 | // RUN: diff %t.tgt2 %t.res.tgt2 |
470 | 470 | // |
471 | 471 | // NOHOST-NOT: host- |
472 | | -// NOHOST-DAG: hip-amdgcn-amd-amdhsa--gfx900 |
473 | | -// NOHOST-DAG: hip-amdgcn-amd-amdhsa--gfx906 |
| 472 | +// NOHOST-DAG: hip-amdgcn-amd-amdhsa-unknown-gfx900 |
| 473 | +// NOHOST-DAG: hip-amdgcn-amd-amdhsa-unknown-gfx906 |
474 | 474 |
|
475 | 475 | // |
476 | 476 | // Check bundling ID compatibility for HIP. |
|
0 commit comments