// REQUIRES: amdgpu-registered-target
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s
void test_flat_address_space_builtins; // expected-error {{'__builtin_amdgcn_is_shared' needs target feature flat-address-space}}
__builtin_amdgcn_is_private; // expected-error {{'__builtin_amdgcn_is_private' needs target feature flat-address-space}}
}
{
__builtin_amdgcn_is_shared