221
|
1 // REQUIRES: clang-driver
|
|
2 // REQUIRES: x86-registered-target
|
|
3 // REQUIRES: amdgpu-registered-target
|
|
4
|
|
5 // RUN: %clang -E -dM -target x86_64-linux-gnu --cuda-device-only \
|
|
6 // RUN: --offload-arch=gfx908:xnack+:sramecc- -nogpuinc -nogpulib \
|
|
7 // RUN: -o - %s 2>&1 | FileCheck %s
|
|
8
|
|
9 // CHECK-DAG: #define __amdgcn_processor__ "gfx908"
|
|
10 // CHECK-DAG: #define __amdgcn_feature_xnack__ 1
|
|
11 // CHECK-DAG: #define __amdgcn_feature_sramecc__ 0
|
|
12 // CHECK-DAG: #define __amdgcn_target_id__ "gfx908:sramecc-:xnack+"
|