This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix ISHFTC argument value check
ClosedPublic

Authored by klausler on Mar 1 2023, 11:13 AM.

Details

Summary

The code that visits all pairs of constant SHIFT= and SIZE= arguments
in an array-valued call to the ISHFTC intrinsic function had a bad loop
test that affected the case where one of these arguments was scalar and
the other was not. Fix it, and add tests.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2023, 11:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 11:13 AM
klausler requested review of this revision.Mar 1 2023, 11:13 AM
This revision is now accepted and ready to land.Mar 1 2023, 11:27 AM
This revision was automatically updated to reflect the committed changes.