This is an archive of the discontinued LLVM Phabricator instance.

Update some tests after r366702
ClosedPublic

Authored by krasimir on Jul 25 2019, 4:46 AM.

Details

Summary

r366702 added a set of new clang-cl -- specific openmp flags together with tests.
The way the newly added tests work is problematic: consider for example this
asertion:

// RUN: %clang_cl --target=x86_64-windows-msvc /openmp -### -- %s 2>&1 | FileCheck --check-prefix=CHECK-CC1-OPENMP %s
...
// CHECK-CC1-OPENMP: "-fopenmp"

It asserts that an /openmp flag should expand into -fopenmp. This however
depends on the default value of Clang's CLANG_DEFAULT_OPENMP_RUNTIME setting.
Indeed, the code that adds -fopenmp to the output only does it if the default
runtime is libomp or libiomp5, not when it is libgomp.

I've updated the tests to not depend on the default value of this setting by
specifying the runtime to use explicitly in each assertion.

Additionally, I've removed the old assertion on line 16 as that's the same as the one on line 15.

Diff Detail

Repository
rL LLVM

Event Timeline

krasimir created this revision.Jul 25 2019, 4:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: cfe-commits. · View Herald Transcript
krasimir edited the summary of this revision. (Show Details)Jul 25 2019, 4:50 AM
krasimir edited the summary of this revision. (Show Details)
sammccall accepted this revision.Jul 25 2019, 5:07 AM
sammccall added a subscriber: sammccall.

This looks safe and consistent with the old tests and intent. Approving to unblock CI

This revision is now accepted and ready to land.Jul 25 2019, 5:07 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 25 2019, 5:19 AM