|
48 | 48 | // RUN: diff %t.tgt1 %t.res.tgt1
|
49 | 49 | // RUN: diff %t.tgt2 %t.res.tgt2
|
50 | 50 |
|
51 |
| -// |
52 | 51 | // Check unbundling archive.
|
53 | 52 | //
|
54 | 53 | // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
|
55 |
| -// RUN: -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle1.bc -compress |
| 54 | +// RUN: -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle1.bc -compress |
56 | 55 | // RUN: clang-offload-bundler -type=bc -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
|
57 |
| -// RUN: -input=%t.tgt1 -input=%t.tgt2 -output=%T/hip_bundle2.bc -compress |
58 |
| -// RUN: llvm-ar cr %T/hip_archive.a %T/hip_bundle1.bc %T/hip_bundle2.bc |
| 56 | +// RUN: -input=%t.tgt1 -input=%t.tgt2 -output=%t.hip_bundle2.bc -compress |
| 57 | +// RUN: rm -f %t.hip_archive.a |
| 58 | +// RUN: llvm-ar cr %t.hip_archive.a %t.hip_bundle1.bc %t.hip_bundle2.bc |
59 | 59 | // RUN: clang-offload-bundler -unbundle -type=a -targets=hip-amdgcn-amd-amdhsa--gfx900,hip-amdgcn-amd-amdhsa--gfx906 \
|
60 |
| -// RUN: -output=%T/hip_900.a -output=%T/hip_906.a -input=%T/hip_archive.a |
61 |
| -// RUN: llvm-ar t %T/hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s |
62 |
| -// RUN: llvm-ar t %T/hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s |
| 60 | +// RUN: -output=%t.hip_900.a -output=%t.hip_906.a -input=%t.hip_archive.a |
| 61 | +// RUN: llvm-ar t %t.hip_900.a | FileCheck -check-prefix=HIP-AR-900 %s |
| 62 | +// RUN: llvm-ar t %t.hip_906.a | FileCheck -check-prefix=HIP-AR-906 %s |
63 | 63 | // HIP-AR-900-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx900
|
64 | 64 | // HIP-AR-900-DAG: hip_bundle2-hip-amdgcn-amd-amdhsa--gfx900
|
65 | 65 | // HIP-AR-906-DAG: hip_bundle1-hip-amdgcn-amd-amdhsa--gfx906
|
|
0 commit comments