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