// REQUIRES: amdgpu-registered-target
// RUN: %clang_cc1 -no-opaque-pointers -triple r600-unknown-unknown -target-cpu cypress -S -emit-llvm -o - %s | FileCheck %s
// CHECK-LABEL: @test_recipsqrt_ieee_f32
// CHECK: call float @llvm.r600.recipsqrt.ieee.f32
void test_recipsqrt_ieee_f32;
}
#if cl_khr_fp64
// XCHECK-LABEL: @test_recipsqrt_ieee_f64
// XCHECK: call double @llvm.r600.recipsqrt.ieee.f64
void test_recipsqrt_ieee_f64
{
*out = __builtin_r600_recipsqrt_ieee;
}
#endif
// CHECK-LABEL: @test_implicitarg_ptr
// CHECK: call i8 addrspace * @llvm.r600.implicitarg.ptr
void test_implicitarg_ptr
{
*out = __builtin_r600_implicitarg_ptr;
}
// CHECK-LABEL: @test_get_group_id
{
*out = __builtin_r600_recipsqrt_ieeef