[llvm] [flang-rt] Consider the signedness of zero for PRODUCT (PR #226918)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 01:14:07 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: Yusuke MINATO (yus3710-fj)

<details>
<summary>Changes</summary>

Currently, the result of PRODUCT can be calculated in three places:

1. constant folding in Semantics
2. the runtime library
3. inlined code

Only the runtime ignored the signedness of zero. This patch fixes this discrepancy.

---
Full diff: https://github.com/llvm/llvm-project/pull/226918.diff


2 Files Affected:

- (modified) flang-rt/lib/runtime/product.cpp (+40-27) 
- (modified) flang-rt/unittests/Runtime/Reduction.cpp (+24) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list