xref: /llvm-project/clang/test/CodeGenOpenCL/builtins-amdgcn-fp-atomics-gfx7-err.cl (revision 39dac1f7f65691487dbdc969e343108db5b0f765)
1// RUN: %clang_cc1 -O0 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx700 \
2// RUN:   %s -verify -S -o -
3
4kernel void test_fadd_local(__local float *ptr, float val){
5    float *res;
6    *res = __builtin_amdgcn_ds_atomic_fadd_f32(ptr, val); // expected-error{{'__builtin_amdgcn_ds_atomic_fadd_f32' needs target feature gfx8-insts}}
7}
8