diff --git a/clang/lib/Sema/SemaSYCL.cpp b/clang/lib/Sema/SemaSYCL.cpp index e9a775b634835..771a95bac7069 100644 --- a/clang/lib/Sema/SemaSYCL.cpp +++ b/clang/lib/Sema/SemaSYCL.cpp @@ -138,12 +138,8 @@ static bool IsSyclMathFunc(unsigned BuiltinID) { case Builtin::BI__builtin_truncl: case Builtin::BIlroundl: case Builtin::BI__builtin_lroundl: - case Builtin::BIceil: - case Builtin::BI__builtin_ceil: case Builtin::BIcopysign: case Builtin::BI__builtin_copysign: - case Builtin::BIfabs: - case Builtin::BI__builtin_fabs: case Builtin::BIfloor: case Builtin::BI__builtin_floor: case Builtin::BIfmax: @@ -158,12 +154,8 @@ static bool IsSyclMathFunc(unsigned BuiltinID) { case Builtin::BI__builtin_round: case Builtin::BItrunc: case Builtin::BI__builtin_trunc: - case Builtin::BIceilf: - case Builtin::BI__builtin_ceilf: case Builtin::BIcopysignf: case Builtin::BI__builtin_copysignf: - case Builtin::BIfabsf: - case Builtin::BI__builtin_fabsf: case Builtin::BIfloorf: case Builtin::BI__builtin_floorf: case Builtin::BIfmaxf: diff --git a/clang/test/SemaSYCL/unsupported_math.cpp b/clang/test/SemaSYCL/unsupported_math.cpp index 9d69decf63f86..f0ce507a273e8 100644 --- a/clang/test/SemaSYCL/unsupported_math.cpp +++ b/clang/test/SemaSYCL/unsupported_math.cpp @@ -2,13 +2,9 @@ extern "C" float sinf(float); extern "C" float cosf(float); extern "C" float logf(float); -extern "C" float ceilf(float); -extern "C" float fabsf(float); extern "C" double sin(double); extern "C" double cos(double); extern "C" double log(double); -extern "C" double ceil(double); -extern "C" double fabs(double); template __attribute__((sycl_kernel)) void kernel(Func kernelFunc) { kernelFunc(); @@ -30,14 +26,6 @@ int main() { acc[0] += (int)log(1.0); // expected-no-error acc[0] += (int)__builtin_logf(1.0f); // expected-no-error acc[0] += (int)__builtin_log(1.0); // expected-no-error - acc[0] += (int)ceilf(1.0f); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)ceil(1.0); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)__builtin_ceilf(1.0f); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)__builtin_ceil(1.0); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)fabsf(-1.0f); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)fabs(-1.0); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)__builtin_fabsf(-1.0f); // expected-error{{builtin is not supported on this target}} - acc[0] += (int)__builtin_fabs(-1.0); // expected-error{{builtin is not supported on this target}} acc[0] += (int)__builtin_fabsl(-1.0); // expected-error{{builtin is not supported on this target}} acc[0] += (int)__builtin_cosl(-1.0); // expected-error{{builtin is not supported on this target}} acc[0] += (int)__builtin_powl(-1.0, 10.0); // expected-error{{builtin is not supported on this target}}