mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 23:38:59 -04:00

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
18 lines
635 B
C++
18 lines
635 B
C++
// 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
|