1 // Options for AArch64 ELF
2 // RUN: %clang -### -target aarch64-linux-gnu -mtls-size=12 %s 2>&1 \
3 // RUN: | FileCheck -check-prefix=CHECK-12 %s
4 // RUN: %clang -### -target aarch64-linux-gnu -mtls-size=24 %s 2>&1 \
5 // RUN: | FileCheck -check-prefix=CHECK-24 %s
6 // RUN: %clang -### -target aarch64-linux-gnu -mtls-size=32 %s 2>&1 \
7 // RUN: | FileCheck -check-prefix=CHECK-32 %s
8 // RUN: %clang -### -target aarch64-linux-gnu -mtls-size=48 %s 2>&1 \
9 // RUN: | FileCheck -check-prefix=CHECK-48 %s
10 
11 // Unsupported target
12 // RUN: not %clang -target aarch64-unknown-windows-msvc -mtls-size=24 %s 2>&1 \
13 // RUN: | FileCheck -check-prefix=UNSUPPORTED-TARGET %s
14 // RUN: not %clang -target x86_64-linux-gnu -mtls-size=24 %s 2>&1 \
15 // RUN: | FileCheck -check-prefix=UNSUPPORTED-TARGET %s
16 
17 // Invalid option value
18 // RUN: not %clang -target aarch64-linux-gnu -mtls-size=0 %s 2>&1 \
19 // RUN: | FileCheck -check-prefix=INVALID-VALUE %s
20 
21 // CHECK-12: "-cc1" {{.*}}"-mtls-size=12"
22 // CHECK-24: "-cc1" {{.*}}"-mtls-size=24"
23 // CHECK-32: "-cc1" {{.*}}"-mtls-size=32"
24 // CHECK-48: "-cc1" {{.*}}"-mtls-size=48"
25 // UNSUPPORTED-TARGET: error: unsupported option
26 // INVALID-VALUE: error: invalid integral value
27