[LV] Add test showing debug output for loops with uncountable BTCs.
[llvm-project.git] / clang / test / Preprocessor / hash_builtin.cpp
blob018b71eca418eb18f088c90d2e2d22cdfc8495aa
1 // RUN: %clang_cc1 -triple amdgcn -target-cpu gfx906 -E %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple spirv64-amd-amdhsa -E %s -o - | FileCheck %s --check-prefix=SPIRV-AMDGCN
4 // CHECK: has_s_memtime_inst
5 // SPIRV-AMDGCN: has_s_memtime_inst
6 #if __has_builtin(__builtin_amdgcn_s_memtime)
7 int has_s_memtime_inst;
8 #endif
10 // CHECK-NOT: has_gfx10_inst
11 // SPIRV-AMDGCN: has_gfx10_inst
12 #if __has_builtin(__builtin_amdgcn_mov_dpp8)
13 int has_gfx10_inst;
14 #endif