This is an archive of the discontinued LLVM Phabricator instance.

[flang] Support FINDLOC/MAXLOC/MINLOC with scalar mask
ClosedPublic

Authored by FruitClover on Apr 25 2022, 10:53 AM.

Details

Summary

Previously MASK= elements were accessed in assumption that mask is an array of
input argument rank (and in combination with explicit DIM= argument we had
out-of-bounds access), but for MAXLOC/MINLOC/FINDLOC mask should be be
conformable and could be scalar.

Add new regression tests with scalar mask for verification.

Diff Detail

Event Timeline

FruitClover created this revision.Apr 25 2022, 10:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 25 2022, 10:53 AM

Update comments

FruitClover published this revision for review.Apr 26 2022, 3:36 AM
FruitClover edited the summary of this revision. (Show Details)
FruitClover added reviewers: klausler, jeanPerier.
FruitClover added a subscriber: flang-commits.

clang-format

klausler accepted this revision.Apr 26 2022, 9:00 AM
This revision is now accepted and ready to land.Apr 26 2022, 9:00 AM