diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2017-02-25 04:20:20 +0000 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2017-02-25 04:20:20 +0000 |
commit | b2e0f431f035760dc111ca3d93ae4b9e28403dca (patch) | |
tree | 572f9fc117f1bfcf9d2666121f45a61e0e58b4bd /test/SemaOpenCL | |
parent | f94f3debabb22f14da326f26d7307d592f6b3a47 (diff) |
AMDGPU: export s_waitcnt builtin
Differential Revision: https://reviews.llvm.org/D30359
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaOpenCL')
-rw-r--r-- | test/SemaOpenCL/builtins-amdgcn-error.cl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaOpenCL/builtins-amdgcn-error.cl b/test/SemaOpenCL/builtins-amdgcn-error.cl index d8576e2bb5..5e45f7e76c 100644 --- a/test/SemaOpenCL/builtins-amdgcn-error.cl +++ b/test/SemaOpenCL/builtins-amdgcn-error.cl @@ -18,6 +18,11 @@ void test_s_sleep(int x) __builtin_amdgcn_s_sleep(x); // expected-error {{argument to '__builtin_amdgcn_s_sleep' must be a constant integer}} } +void test_s_waitcnt(int x) +{ + __builtin_amdgcn_s_waitcnt(x); // expected-error {{argument to '__builtin_amdgcn_s_waitcnt' must be a constant integer}} +} + void test_s_incperflevel(int x) { __builtin_amdgcn_s_incperflevel(x); // expected-error {{argument to '__builtin_amdgcn_s_incperflevel' must be a constant integer}} |