// RUN: %clang_cc1 -O0 -cl-std=CL2.0 -triple amdgcn-amd-amdhsa -target-cpu gfx90a \
// RUN: -verify -S -o - %s
// REQUIRES: amdgpu-registered-target
typedef half __attribute__;
typedef short __attribute__ short2;
void test_atomic_fadd {
__builtin_amdgcn_flat_atomic_fadd_f32; // expected-error{{'__builtin_amdgcn_flat_atomic_fadd_f32' needs target feature gfx940-insts}}
__builtin_amdgcn_flat_atomic_fadd_v2f16; // expected-error{{'__builtin_amdgcn_flat_atomic_fadd_v2f16' needs target feature gfx940-insts}}
__builtin_amdgcn_flat_atomic_fadd_v2bf16; // expected-error{{'__builtin_amdgcn_flat_atomic_fadd_v2bf16' needs target feature gfx940-insts}}
__builtin_amdgcn_global_atomic_fadd_v2bf16; // expected-error{{'__builtin_amdgcn_global_atomic_fadd_v2bf16' needs target feature gfx940-insts}}
__builtin_amdgcn_ds_atomic_fadd_v2bf16; // expected-error{{'__builtin_amdgcn_ds_atomic_fadd_v2bf16' needs target feature gfx940-insts}}
}
half2