[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / SemaOpenCL / builtins-amdgcn-error-wave64.cl
blob51fa3ade2e1909a2a7f5b344921bbb7c00e8db07
1 // RUN: %clang_cc1 -triple amdgcn-- -verify -S -o - %s
2 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -target-feature -wavefrontsize64 -verify -S -o - %s
3 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu gfx1010 -verify -S -o - %s
5 // REQUIRES: amdgpu-registered-target
7 // expected-no-diagnostics
9 typedef unsigned long ulong;
11 void test_ballot_wave64(global ulong* out, int a, int b) {
12 *out = __builtin_amdgcn_ballot_w64(a == b);
15 __attribute__((target("wavefrontsize64")))
16 void test_ballot_wave64_target_attr(global ulong* out, int a, int b) {
17 *out = __builtin_amdgcn_ballot_w64(a == b);