Author: Matt Arsenault Date: 2026-03-14T08:28:40+01:00 New Revision: df4df088d8eccc4c96d3b86622a4da78b0e79e38
URL: https://github.com/llvm/llvm-project/commit/df4df088d8eccc4c96d3b86622a4da78b0e79e38 DIFF: https://github.com/llvm/llvm-project/commit/df4df088d8eccc4c96d3b86622a4da78b0e79e38.diff LOG: libclc: Disable contract in trig reductions (#186432) Added: Modified: libclc/clc/lib/generic/math/clc_sincos_helpers.inc libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc Removed: ################################################################################ diff --git a/libclc/clc/lib/generic/math/clc_sincos_helpers.inc b/libclc/clc/lib/generic/math/clc_sincos_helpers.inc index 2a71b5626ccc5..f8c2b03054374 100644 --- a/libclc/clc/lib/generic/math/clc_sincos_helpers.inc +++ b/libclc/clc/lib/generic/math/clc_sincos_helpers.inc @@ -6,6 +6,8 @@ // //===----------------------------------------------------------------------===// +#pragma OPENCL FP_CONTRACT OFF + _CLC_DEF _CLC_OVERLOAD __CLC_FLOATN __clc_sinf_piby4(__CLC_FLOATN x, __CLC_FLOATN y) { // Taylor series for sin(x) is x - x^3/3! + x^5/5! - x^7/7! ... diff --git a/libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc b/libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc index f8c089edc8838..ae97b7963f7b3 100644 --- a/libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc +++ b/libclc/clc/lib/generic/math/clc_sincos_helpers_fp64.inc @@ -6,6 +6,8 @@ // //===----------------------------------------------------------------------===// +#pragma OPENCL FP_CONTRACT OFF + _CLC_DEF _CLC_OVERLOAD void __clc_sincos_piby4(__CLC_DOUBLEN x, __CLC_DOUBLEN xx, private __CLC_DOUBLEN *sinval, _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
