2020-05-05 11:22:06 +08:00
|
|
|
// REQUIRES: clang-driver
|
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
// REQUIRES: amdgpu-registered-target
|
|
|
|
|
|
|
|
// RUN: %clang -E -dM -target x86_64-linux-gnu --cuda-device-only \
|
2020-12-08 06:31:28 +08:00
|
|
|
// RUN: --offload-arch=gfx908:xnack+:sramecc- -nogpuinc -nogpulib \
|
2020-05-05 11:22:06 +08:00
|
|
|
// RUN: -o - %s 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK-DAG: #define __amdgcn_processor__ "gfx908"
|
|
|
|
// CHECK-DAG: #define __amdgcn_feature_xnack__ 1
|
2020-12-08 06:31:28 +08:00
|
|
|
// CHECK-DAG: #define __amdgcn_feature_sramecc__ 0
|
|
|
|
// CHECK-DAG: #define __amdgcn_target_id__ "gfx908:sramecc-:xnack+"
|