|
1 | 1 | // REQUIRES: amdgpu-registered-target |
2 | 2 |
|
3 | | -// Check bundle ID for code object v2. |
4 | | - |
5 | | -// RUN: not %clang -### --target=x86_64-linux-gnu \ |
6 | | -// RUN: -mcode-object-version=2 \ |
7 | | -// RUN: --offload-arch=gfx906 --rocm-path=%S/Inputs/rocm \ |
8 | | -// RUN: %s 2>&1 | FileCheck -check-prefix=V2 %s |
9 | | - |
10 | | -// V2: "-mllvm" "--amdhsa-code-object-version=2" |
11 | | -// V2: "-targets=host-x86_64-unknown-linux,hip-amdgcn-amd-amdhsa--gfx906" |
12 | | - |
13 | 3 | // Check bundle ID for code object v3. |
14 | 4 |
|
15 | 5 | // RUN: not %clang -### --target=x86_64-linux-gnu \ |
|
61 | 51 | // RUN: not %clang -### --target=x86_64-linux-gnu \ |
62 | 52 | // RUN: -mcode-object-version=1 \ |
63 | 53 | // RUN: --offload-arch=gfx906 --rocm-path=%S/Inputs/rocm \ |
64 | | -// RUN: %s 2>&1 | FileCheck -check-prefix=INVALID %s |
65 | | -// INVALID: error: invalid integral value '1' in '-mcode-object-version=1' |
66 | | -// INVALID-NOT: error: invalid integral value |
| 54 | +// RUN: %s 2>&1 | FileCheck -check-prefix=INVALID_1 %s |
| 55 | +// INVALID_1: error: invalid integral value '1' in '-mcode-object-version=1' |
| 56 | +// INVALID_1-NOT: error: invalid integral value |
| 57 | + |
| 58 | +// RUN: not %clang -### --target=x86_64-linux-gnu \ |
| 59 | +// RUN: -mcode-object-version=2 \ |
| 60 | +// RUN: --offload-arch=gfx906 --rocm-path=%S/Inputs/rocm \ |
| 61 | +// RUN: %s 2>&1 | FileCheck -check-prefix=INVALID_2 %s |
| 62 | +// INVALID_2: error: invalid integral value '2' in '-mcode-object-version=2' |
| 63 | +// INVALID_2-NOT: error: invalid integral value |
67 | 64 |
|
68 | 65 | // Check LLVM code object version option --amdhsa-code-object-version |
69 | 66 | // is passed to -cc1 and -cc1as, and -mcode-object-version is passed |
|
0 commit comments