This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix SPACING() of very small values
ClosedPublic

Authored by klausler on May 23 2023, 5:11 PM.

Details

Summary

SPACING() must return TINY() for zero arguments (which we do)
and also for subnormal values smaller than TINY() in absolute value,
which we get wrong. Fix folding and the runtime.

Diff Detail

Event Timeline

klausler created this revision.May 23 2023, 5:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2023, 5:11 PM
klausler requested review of this revision.May 23 2023, 5:11 PM
vdonaldson accepted this revision.May 23 2023, 5:23 PM
This revision is now accepted and ready to land.May 23 2023, 5:23 PM
This revision was automatically updated to reflect the committed changes.