1 | // Check that we automatically add relevant linker flags for Android aarch64. |
2 | |
3 | // RUN: %clang -target aarch64-none-linux-android \ |
4 | // RUN: -### -v %s 2> %t |
5 | // RUN: FileCheck -check-prefix=GENERIC-ARM < %t %s |
6 | // |
7 | // RUN: %clang -target aarch64-none-linux-android \ |
8 | // RUN: -mcpu=cortex-a53 -### -v %s 2> %t |
9 | // RUN: FileCheck -check-prefix=CORTEX-A53 < %t %s |
10 | // |
11 | // RUN: %clang -target aarch64-none-linux-android \ |
12 | // RUN: -mcpu=cortex-a57 -### -v %s 2> %t |
13 | // RUN: FileCheck -check-prefix=CORTEX-A57 < %t %s |
14 | // |
15 | // RUN: %clang -target aarch64-none-linux-android \ |
16 | // RUN: -### -v %s 2> %t |
17 | // RUN: FileCheck -check-prefix=MAX-PAGE-SIZE < %t %s |
18 | // |
19 | // GENERIC-ARM: --fix-cortex-a53-843419 |
20 | // CORTEX-A53: --fix-cortex-a53-843419 |
21 | // CORTEX-A57-NOT: --fix-cortex-a53-843419 |
22 | // MAX-PAGE-SIZE: max-page-size=4096 |
23 | |