This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bogus folding error for ISHFT(x, negative)
ClosedPublic

Authored by klausler on Oct 21 2021, 10:52 AM.

Details

Summary

Negative shift counts are of course valid for ISHFT when
shifting to the right. This patch decouples the folding of
ISHFT from that of SHIFTA/L/R and adds tests.

Diff Detail

Event Timeline

klausler created this revision.Oct 21 2021, 10:52 AM
klausler requested review of this revision.Oct 21 2021, 10:52 AM
schweitz accepted this revision.Oct 21 2021, 4:40 PM
This revision is now accepted and ready to land.Oct 21 2021, 4:40 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 22 2021, 10:38 AM