This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix runtime CSHIFT of rank>1 array case of negative shift count
ClosedPublic

Authored by klausler on Jun 9 2022, 12:09 PM.

Details

Summary

The calculation of the source index was incorrect when a CSHIFT shift
count value is negative, for the implementation of CSHIFT for arrays
with rank >= 2. (The vector CSHIFT is fine.)

Diff Detail

Event Timeline

klausler created this revision.Jun 9 2022, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 12:09 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 9 2022, 12:09 PM
vdonaldson accepted this revision.Jun 13 2022, 9:25 AM
This revision is now accepted and ready to land.Jun 13 2022, 9:25 AM