This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold SPACING() correctly when result is subnormal
ClosedPublic

Authored by klausler on Aug 18 2022, 11:16 AM.

Details

Summary

The intrinsic function SPACING() was being folded to the smallest
normal number (TINY(x)) rather than to a smaller subnormal result
when that result really was subnormal.

Diff Detail

Event Timeline

klausler created this revision.Aug 18 2022, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:16 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 18 2022, 11:16 AM
PeteSteinfeld accepted this revision.Aug 18 2022, 1:49 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 18 2022, 1:49 PM