view clang/test/Driver/target-id-macros.hip @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children c4bab56944e8
line wrap: on
line source

// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target

// RUN: %clang -E -dM -target x86_64-linux-gnu --cuda-device-only \
// RUN:   --offload-arch=gfx908:xnack+:sramecc- -nogpuinc -nogpulib \
// RUN:   -o - %s 2>&1 | FileCheck %s

// CHECK-DAG: #define __amdgcn_processor__ "gfx908"
// CHECK-DAG: #define __amdgcn_feature_xnack__ 1
// CHECK-DAG: #define __amdgcn_feature_sramecc__ 0
// CHECK-DAG: #define __amdgcn_target_id__ "gfx908:sramecc-:xnack+"