[flang-commits] [flang] [flang] Check SIMPLE on every IEEE_ARITHMETIC elemental function family (PR #231952)

Caroline Newcombe via flang-commits flang-commits at lists.llvm.org
Thu Oct 15 04:59:51 PDT 2026


================
@@ -2,9 +2,76 @@
 ! RUN: %flang_fc1 -fdebug-dump-symbols %s | FileCheck %s
 
 program test_ieee_arithmetic_simple
-  use, intrinsic :: ieee_arithmetic, only: ieee_is_finite
+  use, intrinsic :: ieee_arithmetic, only: ieee_class, ieee_class_type, &
----------------
cenewcombe wrote:

I don't think the program body is necessary. I tried reducing the test to only:
```
program test_ieee_arithmetic_simple
  use, intrinsic :: ieee_arithmetic
  implicit none
end program
```
-- and all check lines still pass. `-fdebug-dump-symbols` emits the whole module scope when the .mod is read, so neither the references nor the `only:` list affect the output. I think that's fine -- we are asserting the module's classification. However, I'd suggest removing the body and the `only:` to make it more clear what is actually tested.

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


More information about the flang-commits mailing list