[flang-commits] [flang] [llvm] [flang] Classify IEEE_ARITHMETIC elemental functions and operators as SIMPLE (PR #223254)
Šárka Holendová via flang-commits
flang-commits at lists.llvm.org
Sat Sep 19 09:11:37 PDT 2026
================
----------------
mlir-maiden wrote:
I looked into testing this with `-fsyntax-only` using a `SIMPLE` procedure as suggested. The restriction on procedures referenced from a `SIMPLE` procedure is not implemented yet (tracked separately in #221457), so this does not currently distinguish a `SIMPLE` callee from a `PURE` one. As a control, I tested a `SIMPLE` procedure calling a user-defined `PURE` (but not `SIMPLE`) function, and Flang accepts it. I also confirmed that the proposed `IEEE_ARITHMETIC` test is accepted when the referenced procedure does not have the `SIMPLE` attribute. For this patch, I kept the direct attribute tests so they specifically verify the classification.
https://github.com/llvm/llvm-project/pull/223254
More information about the flang-commits
mailing list