[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / target-id-macros.hip
blob14b584181a067f854d195e9a2bdd7cbafcdf9251
1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
4 // RUN: %clang -E -dM -target x86_64-linux-gnu --cuda-device-only \
5 // RUN:   --offload-arch=gfx908:xnack+:sramecc- -nogpuinc -nogpulib \
6 // RUN:   -o - %s 2>&1 | FileCheck %s
8 // CHECK-DAG: #define __amdgcn_processor__ "gfx908"
9 // CHECK-DAG: #define __amdgcn_feature_xnack__ 1
10 // CHECK-DAG: #define __amdgcn_feature_sramecc__ 0
11 // CHECK-DAG: #define __amdgcn_target_id__ "gfx908:sramecc-:xnack+"