[flang-commits] [flang] b51fc2a - [flang] Modifications to ieee_support_standard (#125967)
via flang-commits
flang-commits at lists.llvm.org
Fri Feb 7 05:49:17 PST 2025
Author: vdonaldson
Date: 2025-02-07T08:49:12-05:00
New Revision: b51fc2ac60418316c3e308cff43a9fb9711d7b25
URL: https://github.com/llvm/llvm-project/commit/b51fc2ac60418316c3e308cff43a9fb9711d7b25
DIFF: https://github.com/llvm/llvm-project/commit/b51fc2ac60418316c3e308cff43a9fb9711d7b25.diff
LOG: [flang] Modifications to ieee_support_standard (#125967)
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.
Added:
Modified:
flang/include/flang/Evaluate/target.h
flang/include/flang/Tools/TargetSetup.h
Removed:
################################################################################
diff --git a/flang/include/flang/Evaluate/target.h b/flang/include/flang/Evaluate/target.h
index f4595dfe4e4333a..ead4481c32e12af 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);
More information about the flang-commits
mailing list