This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix folding of EXPONENT() intrinsic function
ClosedPublic

Authored by klausler on Dec 3 2021, 3:54 PM.

Details

Summary

The definition of the EXPONENT() intrinsic function differs by one
from the real arithmetic folding templates concept of an unbiased
exponent, and also needs special handling for zero. Fix, and add
more tests.

Diff Detail

Event Timeline

klausler created this revision.Dec 3 2021, 3:54 PM
klausler requested review of this revision.Dec 3 2021, 3:54 PM
PeteSteinfeld accepted this revision.Dec 3 2021, 4:15 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Dec 3 2021, 4:15 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2021, 11:23 AM