Skip to content

Conversation

@pawosm-arm
Copy link

No description provided.

@sscalpone
Copy link
Member

@vjayathirtha-nv, please review. Thanks!

UpperCmdArgs.push_back("-def"); UpperCmdArgs.push_back("__LONG_MAX__=9223372036854775807L");
UpperCmdArgs.push_back("-def"); UpperCmdArgs.push_back("__SIZE_TYPE__=unsigned long int");
UpperCmdArgs.push_back("-def"); UpperCmdArgs.push_back("__PTRDIFF_TYPE__=long int");
switch (getToolChain().getEffectiveTriple().getArch()) {
Copy link
Collaborator

@vjayathirtha-nv vjayathirtha-nv Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lines common to all the cases can be factored out.

@@ -0,0 +1,15 @@
! RUN: %flang -target aarch64 -v -x f77 -### -c - 2>&1 >/dev/null | FileCheck --check-prefix=AARCH64 %s
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-v not needed

Copy link
Author

@pawosm-arm pawosm-arm Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test file is useless anyway. It uses %flang as it assumes that pull request flang-compiler/clang#20 was pulled into frontend driver. Now as flang moved to release_60 and affected configuration file lit.cfg migrated to lit.cfg.py (with significant rewrite and different ideas about tool discovery), referenced pull request won't apply any longer.

! AARCH64: __aarch64__
! AARCH64: __ARM_ARCH=8
! AARCH64: __ARM_ARCH__=8
! AARCH64-NOT: __x86_64__
Copy link
Collaborator

@vjayathirtha-nv vjayathirtha-nv Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flang can be built on OpenPower too.
AARCH64-NOT should not imply __X86_64__.
Vice-versa for X86_64-NOT

Copy link
Author

@pawosm-arm pawosm-arm Jul 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not what this test case tests. This test case tests only what this patch introduces: awareness of x86_64 and aarch64. Iff soneone adds OpenPOWER, this test will have to be amended.

…s defined for x86_64 only

Signed-off-by: Paul Osmialowski <[email protected]>
@pawosm-arm
Copy link
Author

Simplified version uploaded.

@vjayathirtha-nv
Copy link
Collaborator

LGTM.

@sscalpone
Copy link
Member

@gklimowicz You'll want to update the driver to support OpenPower.

@sscalpone sscalpone merged commit 32f15e1 into flang-compiler:release_60 Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants