diff options
author | Stephen Hines <srhines@google.com> | 2016-10-25 21:44:35 +0000 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2016-10-25 21:44:35 +0000 |
commit | fa2412b2e706d18c1afb7f70f34353baebb9c0ba (patch) | |
tree | a3b24396030811201b0bae914c74684234f310fa /clang/test | |
parent | 3c628af11789bdde668d1689724a42407c9cb517 (diff) | |
download | bcm5719-llvm-fa2412b2e706d18c1afb7f70f34353baebb9c0ba.tar.gz bcm5719-llvm-fa2412b2e706d18c1afb7f70f34353baebb9c0ba.zip |
Use linker flag --fix-cortex-a53-843419 on Android ARM64 compilation.
Summary:
This is only forced on if there is no non-Cortex-A53 CPU specified as
well. Android's platform and NDK builds need to assume that the code can
be run on Cortex-A53 devices, so we always enable the fix unless we know
specifically that the code is only running on a different kind of CPU.
Reviewers: cfe-commits
Subscribers: aemerson, rengolin, tberghammer, pirama, danalbert
Differential Revision: https://reviews.llvm.org/D25761
llvm-svn: 285127
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/android-aarch64-link.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/Driver/android-aarch64-link.cpp b/clang/test/Driver/android-aarch64-link.cpp new file mode 100644 index 00000000000..2c4cfb9898e --- /dev/null +++ b/clang/test/Driver/android-aarch64-link.cpp @@ -0,0 +1,17 @@ +// Check that we automatically add relevant linker flags for Android aarch64. + +// RUN: %clang -target aarch64-none-linux-android \ +// RUN: -### -v %s 2> %t +// RUN: FileCheck -check-prefix=GENERIC-ARM < %t %s +// +// RUN: %clang -target aarch64-none-linux-android \ +// RUN: -mcpu=cortex-a53 -### -v %s 2> %t +// RUN: FileCheck -check-prefix=CORTEX-A53 < %t %s +// +// RUN: %clang -target aarch64-none-linux-android \ +// RUN: -mcpu=cortex-a57 -### -v %s 2> %t +// RUN: FileCheck -check-prefix=CORTEX-A57 < %t %s +// +// GENERIC-ARM: --fix-cortex-a53-843419 +// CORTEX-A53: --fix-cortex-a53-843419 +// CORTEX-A57-NOT: --fix-cortex-a53-843419 |