bolt/deps/llvm-18.1.8/clang/test/CodeGenOpenCL/builtins-amdgcn-fp-atomics-gfx7-err.cl
2025-02-14 19:21:04 +01:00

7 lines
341 B
Common Lisp

// RUN: %clang_cc1 -O0 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx700 \
// RUN: %s -verify -S -o -
kernel void test_fadd_local(__local float *ptr, float val){
float *res;
*res = __builtin_amdgcn_ds_atomic_fadd_f32(ptr, val); // expected-error{{'__builtin_amdgcn_ds_atomic_fadd_f32' needs target feature gfx8-insts}}
}