This is an archive of the discontinued LLVM Phabricator instance.

[flang] Update the remaining tests to use the new driver when enabled
ClosedPublic

Authored by awarzynski on Apr 12 2021, 8:25 AM.

Details

Summary

This is another set of changes to allow us to share more Flang
regression tests between f18 and flang-new.

Summary of changes:

  • RUN lines in tests are updated to use %flang_fc1 instead of %f18
  • option spellings in tests are updated to forms accepted by both f18 and flang-new

The corresponding tests will now be run with the new driver,
flang-new, whenever it is enabled (i.e when FLANG_BUILD_NEW_DRIVER
is set).

A handful of tests have not been updated yet - these are currently
either failing or are not supported by the new driver. Also, for the
sake of consistency with the rest of the testing infrastructure, some
variables in Bash scripts are renamed.

Diff Detail

Event Timeline

awarzynski created this revision.Apr 12 2021, 8:25 AM
awarzynski requested review of this revision.Apr 12 2021, 8:25 AM
Herald added a project: Restricted Project. · View Herald Transcript
awarzynski added a project: Restricted Project.

Apologies for sending such a chunky patch. Please let me know if you see a good way to split this.

Vast majority of changes here are automatic:

grep -IEZlr "%f18" flang/test/ | xargs -0 -l sed -i 's/%f18/%flang_fc1/g

I hope that this helps!

Rebase on top of main

Add one missing test

This revision is now accepted and ready to land.Apr 13 2021, 9:10 AM