1 // REQUIRES
: amdgpu-registered-target
2 // RUN
: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s
4 // expected-no-diagnostics
6 // Make sure no warning is produced on due to dead
"flat-address-space" feature.
7 __attribute__
((target("flat-address-space")))
8 void test_flat_address_space_builtins
(int* ptr
)
10 (void)__builtin_amdgcn_is_shared
(ptr);
11 (void)__builtin_amdgcn_is_private
(ptr);