| 1 |
// RUN: not %clang -target amdgcn-amd-amdhsa \ |
| 2 |
// RUN: -mcpu=gfx908xnack -nostdlib \ |
| 3 |
// RUN: %s 2>&1 | FileCheck -check-prefix=NOPLUS %s |
| 4 |
|
| 5 |
// NOPLUS: error: invalid target ID 'gfx908xnack' |
| 6 |
|
| 7 |
// RUN: not %clang -target amdgcn-amd-amdpal \ |
| 8 |
// RUN: -mcpu=gfx908:xnack+:xnack+ -nostdlib \ |
| 9 |
// RUN: %s 2>&1 | FileCheck -check-prefix=ORDER %s |
| 10 |
|
| 11 |
// ORDER: error: invalid target ID 'gfx908:xnack+:xnack+' |
| 12 |
|
| 13 |
// RUN: not %clang -target amdgcn--mesa3d \ |
| 14 |
// RUN: -mcpu=gfx908:unknown+ -nostdlib \ |
| 15 |
// RUN: %s 2>&1 | FileCheck -check-prefix=UNK %s |
| 16 |
|
| 17 |
// UNK: error: invalid target ID 'gfx908:unknown+' |
| 18 |
|
| 19 |
// RUN: not %clang -target amdgcn-amd-amdhsa \ |
| 20 |
// RUN: -mcpu=gfx908:sramecc+:unknown+ -nostdlib \ |
| 21 |
// RUN: %s 2>&1 | FileCheck -check-prefix=MIXED %s |
| 22 |
|
| 23 |
// MIXED: error: invalid target ID 'gfx908:sramecc+:unknown+' |
| 24 |
|
| 25 |
// RUN: not %clang -target amdgcn-amd-amdhsa \ |
| 26 |
// RUN: -mcpu=gfx900:sramecc+ -nostdlib \ |
| 27 |
// RUN: %s 2>&1 | FileCheck -check-prefix=UNSUP %s |
| 28 |
|
| 29 |
// UNSUP: error: invalid target ID 'gfx900:sramecc+' |
| 30 |
|
| 31 |
// RUN: not %clang -target amdgcn-amd-amdhsa \ |
| 32 |
// RUN: -mcpu=gfx900:xnack -nostdlib \ |
| 33 |
// RUN: %s 2>&1 | FileCheck -check-prefix=NOSIGN %s |
| 34 |
|
| 35 |
// NOSIGN: error: invalid target ID 'gfx900:xnack' |
| 36 |
|
| 37 |
// RUN: not %clang -target amdgcn-amd-amdhsa \ |
| 38 |
// RUN: -mcpu=gfx900+xnack -nostdlib \ |
| 39 |
// RUN: %s 2>&1 | FileCheck -check-prefix=NOCOLON %s |
| 40 |
|
| 41 |
// NOCOLON: error: invalid target ID 'gfx900+xnack' |