This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle subnormals while folding SCALE, SET_EXPONENT, & FRACTION
ClosedPublic

Authored by klausler on Aug 3 2022, 12:53 PM.

Details

Summary

The implementations of folding for the intrinsic functions SCALE and SET_EXPONENT
do not cope correctly with numbers in the subnormal range. Fix SCALE,
then modify SET_EXPONENT to be a special case of SCALE.

Diff Detail

Event Timeline

klausler created this revision.Aug 3 2022, 12:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 12:53 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 3 2022, 12:53 PM
vdonaldson accepted this revision.Aug 3 2022, 4:01 PM
This revision is now accepted and ready to land.Aug 3 2022, 4:01 PM