[flang-commits] [flang] [flang][runtime] Address PRODUCT numeric discrepancy, folding vs runtime (PR #90125)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed May 1 10:08:26 PDT 2024


================
@@ -188,7 +188,8 @@ void RTDEF(CppSumComplex16)(CppTypeFor<TypeCategory::Complex, 16> &result,
 void RTDEF(SumDim)(Descriptor &result, const Descriptor &x, int dim,
     const char *source, int line, const Descriptor *mask) {
   TypedPartialNumericReduction<IntegerSumAccumulator, RealSumAccumulator,
-      ComplexSumAccumulator>(result, x, dim, source, line, mask, "SUM");
+      ComplexSumAccumulator, /*MIN_REAL_KIND=*/4>(
----------------
vzakhari wrote:

Does it mean that `SumReal4` accumulator and the accumulator for `SumDim` of `REAL(4)` will use different intermediate result data type?

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


More information about the flang-commits mailing list