[flang-commits] [clang] [flang] [Flang][Driver] Override -ffast-math floating point contraction with -ffp-contract= (PR #213574)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Wed Aug 5 06:15:24 PDT 2026
================
@@ -64,12 +64,53 @@
! CHECK-TO-COMPS-SAME: -mreassociate
! CHECK-TO-COMPS-SAME: -freciprocal-math
+! Check if -ffast-math component flags can be disabled
+! RUN: %flang -ffast-math \
+! RUN: -ffp-contract=off \
+! RUN: -fhonor-infinities \
+! RUN: -fhonor-nans \
+! RUN: -fno-approx-func \
+! RUN: -fsigned-zeros \
+! RUN: -fno-associative-math \
+! RUN: -fno-reciprocal-math \
+! RUN: -fsyntax-only -### %s -o %t 2>&1 \
----------------
tarunprabhu wrote:
nit: The `-o %t` is unnecessary in these tests.
```suggestion
! RUN: -fsyntax-only -### %s 2>&1 \
```
https://github.com/llvm/llvm-project/pull/213574
More information about the flang-commits
mailing list