// REQUIRES: amdgpu-registered-target
// RUN: %clang_cc1 -triple amdgcn-- -verify -S -o - %s
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
__attribute__; // expected-error {{'__builtin_amdgcn_div_fixuph' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_rcph; // expected-error {{'__builtin_amdgcn_rcph' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_sqrth; // expected-error {{'__builtin_amdgcn_sqrth' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_rsqh; // expected-error {{'__builtin_amdgcn_rsqh' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_sinh; // expected-error {{'__builtin_amdgcn_sinh' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_cosh; // expected-error {{'__builtin_amdgcn_cosh' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_ldexph; // expected-error {{'__builtin_amdgcn_ldexph' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_frexp_manth; // expected-error {{'__builtin_amdgcn_frexp_manth' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_frexp_exph; // expected-error {{'__builtin_amdgcn_frexp_exph' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_fracth; // expected-error {{'__builtin_amdgcn_fracth' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_classh; // expected-error {{'__builtin_amdgcn_classh' needs target feature 16-bit-insts}}
*out = __builtin_amdgcn_fmed3h; // expected-error {{'__builtin_amdgcn_fmed3h' needs target feature gfx9-insts}}
}
void test_f16_tahiti
{
*out = __builtin_amdgcn_div_fixuph