forked from OSchip/llvm-project
12 lines
292 B
C++
12 lines
292 B
C++
// RUN: %clang_cc1 -triple amdgcn -target-cpu gfx906 -E %s -o - | FileCheck %s
|
|
|
|
// CHECK: has_s_memtime_inst
|
|
#if __has_builtin(__builtin_amdgcn_s_memtime)
|
|
int has_s_memtime_inst;
|
|
#endif
|
|
|
|
// CHECK-NOT: has_gfx10_inst
|
|
#if __has_builtin(__builtin_amdgcn_mov_dpp8)
|
|
int has_gfx10_inst;
|
|
#endif
|