Skip to content

Commit b51fc2a

Browse files
authored
[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.
1 parent 991123f commit b51fc2a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

flang/include/flang/Evaluate/target.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ class TargetCharacteristics {
143143
std::string compilerOptionsString_;
144144
std::string compilerVersionString_;
145145
IeeeFeatures ieeeFeatures_{IeeeFeature::Denormal, IeeeFeature::Divide,
146-
IeeeFeature::Flags, IeeeFeature::Inf, IeeeFeature::Io, IeeeFeature::NaN,
147-
IeeeFeature::Rounding, IeeeFeature::Sqrt, IeeeFeature::Standard,
148-
IeeeFeature::Subnormal, IeeeFeature::UnderflowControl};
146+
IeeeFeature::Flags, IeeeFeature::Halting, IeeeFeature::Inf,
147+
IeeeFeature::Io, IeeeFeature::NaN, IeeeFeature::Rounding,
148+
IeeeFeature::Sqrt, IeeeFeature::Standard, IeeeFeature::Subnormal,
149+
IeeeFeature::UnderflowControl};
149150
};
150151

151152
} // namespace Fortran::evaluate

flang/include/flang/Tools/TargetSetup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ namespace Fortran::tools {
2525

2626
const llvm::Triple &targetTriple{targetMachine.getTargetTriple()};
2727

28-
targetCharacteristics.set_ieeeFeature(evaluate::IeeeFeature::Halting, true);
29-
3028
if (targetTriple.getArch() == llvm::Triple::ArchType::x86_64) {
3129
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/3);
3230
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/4);
@@ -37,6 +35,8 @@ namespace Fortran::tools {
3735
targetCharacteristics.set_haltingSupportIsUnknownAtCompileTime();
3836
targetCharacteristics.set_ieeeFeature(
3937
evaluate::IeeeFeature::Halting, false);
38+
targetCharacteristics.set_ieeeFeature(
39+
evaluate::IeeeFeature::Standard, false);
4040
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/3);
4141
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/4);
4242
targetCharacteristics.set_hasSubnormalFlushingControl(/*kind=*/8);

0 commit comments

Comments
 (0)