This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix combined folding of FINDLOC/MAXLOC/MINLOC
ClosedPublic

Authored by klausler on Oct 28 2021, 11:16 AM.

Details

Summary

The tests for folding these intrinsics neglected to name the
logical scalars with a leading "test_", so test failures caused
by recent work to implement a combined constant folding facility
for these intrinsics wasn't catching some bugs. This patch fixes
the tests and the bugs.

Diff Detail

Event Timeline

klausler created this revision.Oct 28 2021, 11:16 AM
klausler requested review of this revision.Oct 28 2021, 11:16 AM
This revision is now accepted and ready to land.Oct 29 2021, 12:19 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 11:00 AM
flang/test/Evaluate/fold-findloc.f90