Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions flang/include/flang/Evaluate/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions flang/include/flang/Tools/TargetSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down