[flang-commits] [flang] [flang][runtime] Disable LDBL_MANT_DIG == 113 for the offload builds. (PR #109339)

via flang-commits flang-commits at lists.llvm.org
Thu Sep 19 14:51:57 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 3b3accb598ec87a6a30b0e18ded06071030bb78f 0480d55103714c25fd055bad7e347a89bb9359ec --extensions h,c,inc,cpp -- flang/include/flang/Common/float128.h flang/include/flang/Runtime/cpp-type.h flang/include/flang/Runtime/matmul-instances.inc flang/include/flang/Runtime/numeric.h flang/include/flang/Runtime/reduce.h flang/include/flang/Runtime/reduction.h flang/include/flang/Runtime/transformational.h flang/include/flang/Tools/TargetSetup.h flang/lib/Evaluate/intrinsics-library.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/runtime/Float128Math/acos.cpp flang/runtime/Float128Math/acosh.cpp flang/runtime/Float128Math/asin.cpp flang/runtime/Float128Math/asinh.cpp flang/runtime/Float128Math/atan.cpp flang/runtime/Float128Math/atan2.cpp flang/runtime/Float128Math/atanh.cpp flang/runtime/Float128Math/ceil.cpp flang/runtime/Float128Math/complex-math.c flang/runtime/Float128Math/complex-math.h flang/runtime/Float128Math/cos.cpp flang/runtime/Float128Math/cosh.cpp flang/runtime/Float128Math/erf.cpp flang/runtime/Float128Math/erfc.cpp flang/runtime/Float128Math/exp.cpp flang/runtime/Float128Math/exponent.cpp flang/runtime/Float128Math/floor.cpp flang/runtime/Float128Math/fma.cpp flang/runtime/Float128Math/fraction.cpp flang/runtime/Float128Math/hypot.cpp flang/runtime/Float128Math/j0.cpp flang/runtime/Float128Math/j1.cpp flang/runtime/Float128Math/jn.cpp flang/runtime/Float128Math/lgamma.cpp flang/runtime/Float128Math/llround.cpp flang/runtime/Float128Math/log.cpp flang/runtime/Float128Math/log10.cpp flang/runtime/Float128Math/lround.cpp flang/runtime/Float128Math/math-entries.h flang/runtime/Float128Math/mod-real.cpp flang/runtime/Float128Math/modulo-real.cpp flang/runtime/Float128Math/nearest.cpp flang/runtime/Float128Math/norm2.cpp flang/runtime/Float128Math/pow.cpp flang/runtime/Float128Math/random.cpp flang/runtime/Float128Math/round.cpp flang/runtime/Float128Math/rrspacing.cpp flang/runtime/Float128Math/scale.cpp flang/runtime/Float128Math/set-exponent.cpp flang/runtime/Float128Math/sin.cpp flang/runtime/Float128Math/sinh.cpp flang/runtime/Float128Math/spacing.cpp flang/runtime/Float128Math/sqrt.cpp flang/runtime/Float128Math/tan.cpp flang/runtime/Float128Math/tanh.cpp flang/runtime/Float128Math/tgamma.cpp flang/runtime/Float128Math/trunc.cpp flang/runtime/Float128Math/y0.cpp flang/runtime/Float128Math/y1.cpp flang/runtime/Float128Math/yn.cpp flang/runtime/complex-powi.cpp flang/runtime/complex-reduction.c flang/runtime/complex-reduction.h flang/runtime/dot-product.cpp flang/runtime/extrema.cpp flang/runtime/numeric-templates.h flang/runtime/numeric.cpp flang/runtime/product.cpp flang/runtime/reduce.cpp flang/runtime/reduction-templates.h flang/runtime/sum.cpp flang/runtime/transformational.cpp flang/unittests/Runtime/Numeric.cpp flang/unittests/Runtime/Reduction.cpp flang/unittests/Runtime/Transformational.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/runtime/reduction-templates.h b/flang/runtime/reduction-templates.h
index 0d3fc19f5e..2a85595bad 100644
--- a/flang/runtime/reduction-templates.h
+++ b/flang/runtime/reduction-templates.h
@@ -324,7 +324,7 @@ static constexpr RT_CONST_VAR_ATTRS int Norm2LargestLDKind{
 #elif HAS_FLOAT80
     10
 #else
-  8
+    8
 #endif
 };
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/109339


More information about the flang-commits mailing list