This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix folding of EPSILON()
ClosedPublic

Authored by klausler on Nov 5 2021, 12:30 PM.

Details

Summary

The value of EPSILON() was off by one power of two due to my
misreading of the standard; this patch corrects it.
Confirmed by checking other Fortran compilers, which all agree.

Diff Detail

Event Timeline

klausler created this revision.Nov 5 2021, 12:30 PM
klausler requested review of this revision.Nov 5 2021, 12:30 PM
PeteSteinfeld accepted this revision.Nov 5 2021, 4:00 PM

Looks great!

This revision is now accepted and ready to land.Nov 5 2021, 4:00 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2021, 10:50 AM