This is an archive of the discontinued LLVM Phabricator instance.

[flang] NINT(-.4999) is 0, not overflow
ClosedPublic

Authored by klausler on Jun 14 2022, 1:51 PM.

Details

Summary

Overflow detection in the folding of int/nint/ceiling is
incorrectly signalling overflow when a negative argument yields
a zero result.

Diff Detail

Event Timeline

klausler created this revision.Jun 14 2022, 1:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2022, 1:51 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 14 2022, 1:51 PM
This revision is now accepted and ready to land.Jun 15 2022, 11:34 PM
This revision was automatically updated to reflect the committed changes.