This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fine-tune NAN formatted input editing
ClosedPublic

Authored by klausler on Mar 28 2023, 11:35 AM.

Details

Summary

Per Fortran 2018, "NAN" and "NAN()" are to be translated into quiet
NaNs, and the other forms are implementation-dependent; I've made
them quiet NaNs too. Also process signs on input NaNs, which seems
wrong but other compilers all do it, and fix some misleading template
argument names noticed along the way.

Diff Detail

Event Timeline

klausler created this revision.Mar 28 2023, 11:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2023, 11:35 AM
klausler requested review of this revision.Mar 28 2023, 11:35 AM
vdonaldson accepted this revision.Mar 28 2023, 12:36 PM

Thanks for the fix!

This revision is now accepted and ready to land.Mar 28 2023, 12:36 PM
This revision was landed with ongoing or failed builds.Mar 28 2023, 12:55 PM
This revision was automatically updated to reflect the committed changes.