[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaOpenCL / builtins-amdgcn-error-gfx10.cl
blob02c8dc8c1339ee2e9a60f6070dcd6e9e0e7be9f0
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s
3 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu hawaii -verify -S -o - %s
4 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu fiji -verify -S -o - %s
5 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx900 -verify -S -o - %s
6 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx908 -verify -S -o - %s
8 typedef unsigned int uint;
11 void test(global uint* out, uint a, uint b, uint c, uint d) {
12 *out = __builtin_amdgcn_permlane16(a, b, c, d, 1, 1); // expected-error {{'__builtin_amdgcn_permlane16' needs target feature gfx10-insts}}
13 *out = __builtin_amdgcn_permlanex16(a, b, c, d, 1, 1); // expected-error {{'__builtin_amdgcn_permlanex16' needs target feature gfx10-insts}}
14 *out = __builtin_amdgcn_mov_dpp8(a, 1); // expected-error {{'__builtin_amdgcn_mov_dpp8' needs target feature gfx10-insts}}