[flang-commits] [flang] [flang] Modificaitons to ieee_support_standard (PR #125967)
via flang-commits
flang-commits at lists.llvm.org
Wed Feb 5 16:07:25 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: None (vdonaldson)
<details>
<summary>Changes</summary>
The result of a call to ieee_support_halting is one of the components that affect the result of a call to ieee_support_standard.
---
Full diff: https://github.com/llvm/llvm-project/pull/125967.diff
2 Files Affected:
- (modified) flang/include/flang/Evaluate/target.h (+4-3)
- (modified) flang/include/flang/Tools/TargetSetup.h (+2-2)
``````````diff
diff --git a/flang/include/flang/Evaluate/target.h b/flang/include/flang/Evaluate/target.h
index e07f916b875e06b..44c552b99cf4eaa 100644
--- a/flang/include/flang/Evaluate/target.h
+++ b/flang/include/flang/Evaluate/target.h
@@ -143,9 +143,10 @@ class TargetCharacteristics {
std::string compilerOptionsString_;
std::string compilerVersionString_;
IeeeFeatures ieeeFeatures_{IeeeFeature::Denormal, IeeeFeature::Divide,
- IeeeFeature::Flags, IeeeFeature::Inf, IeeeFeature::Io, IeeeFeature::NaN,
- IeeeFeature::Rounding, IeeeFeature::Sqrt, IeeeFeature::Standard,
- IeeeFeature::Subnormal, IeeeFeature::UnderflowControl};
+ IeeeFeature::Flags, IeeeFeature::Halting, IeeeFeature::Inf,
+ IeeeFeature::Io, IeeeFeature::NaN, IeeeFeature::Rounding,
+ IeeeFeature::Sqrt, IeeeFeature::Standard, IeeeFeature::Subnormal,
+ IeeeFeature::UnderflowControl};
};
} // namespace Fortran::evaluate
diff --git a/flang/include/flang/Tools/TargetSetup.h b/flang/include/flang/Tools/TargetSetup.h
index 5d23df6823a9485..d167f44fe2fd770 100644
--- a/flang/include/flang/Tools/TargetSetup.h
+++ b/flang/include/flang/Tools/TargetSetup.h
@@ -25,8 +25,6 @@ namespace Fortran::tools {
const llvm::Triple &targetTriple{targetMachine.getTargetTriple()};
- targetCharacteristics.set_ieeeFeature(evaluate::IeeeFeature::Halting, true);
-
if (targetTriple.getArch() == llvm::Triple::ArchType::x86_64) {
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/3);
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/4);
@@ -37,6 +35,8 @@ namespace Fortran::tools {
targetCharacteristics.set_haltingSupportIsUnknownAtCompileTime();
targetCharacteristics.set_ieeeFeature(
evaluate::IeeeFeature::Halting, false);
+ targetCharacteristics.set_ieeeFeature(
+ evaluate::IeeeFeature::Standard, false);
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/3);
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/4);
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/8);
``````````
</details>
https://github.com/llvm/llvm-project/pull/125967
More information about the flang-commits
mailing list