1 // RUN: %clang -target arm-none-eabi \
2 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
3 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
4 // RUN: | FileCheck %s -check-prefix ARM-EABI
5 // ARM-EABI: "-lclang_rt.builtins-arm"
7 // RUN: %clang -target arm-linux-gnueabi \
8 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
9 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
10 // RUN: | FileCheck %s -check-prefix ARM-GNUEABI
11 // ARM-GNUEABI: "{{.*[/\\]}}libclang_rt.builtins-arm.a"
13 // RUN: %clang -target arm-linux-gnueabi \
14 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
15 // RUN: -rtlib=compiler-rt -mfloat-abi=hard -### %s 2>&1 \
16 // RUN: | FileCheck %s -check-prefix ARM-GNUEABI-ABI
17 // ARM-GNUEABI-ABI: "{{.*[/\\]}}libclang_rt.builtins-armhf.a"
19 // RUN: %clang -target arm-linux-gnueabihf \
20 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
21 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
22 // RUN: | FileCheck %s -check-prefix ARM-GNUEABIHF
23 // ARM-GNUEABIHF: "{{.*[/\\]}}libclang_rt.builtins-armhf.a"
25 // RUN: %clang -target arm-linux-gnueabihf \
26 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
27 // RUN: -rtlib=compiler-rt -mfloat-abi=soft -### %s 2>&1 \
28 // RUN: | FileCheck %s -check-prefix ARM-GNUEABIHF-ABI
29 // ARM-GNUEABIHF-ABI: "{{.*[/\\]}}libclang_rt.builtins-arm.a"
31 // RUN: %clang -target arm-windows-itanium \
32 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
33 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
34 // RUN: | FileCheck %s -check-prefix ARM-WINDOWS
35 // ARM-WINDOWS: "{{.*[/\\]}}clang_rt.builtins-arm.lib"
37 // RUN: %clang -target arm-linux-androideabi \
38 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
39 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
40 // RUN: | FileCheck %s -check-prefix ARM-ANDROID
41 // ARM-ANDROID: "{{.*[/\\]}}libclang_rt.builtins-arm-android.a"
43 // RUN: %clang -target arm-linux-androideabi \
44 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
45 // RUN: -rtlib=compiler-rt -mfloat-abi=hard -### %s 2>&1 \
46 // RUN: | FileCheck %s -check-prefix ARM-ANDROIDHF
47 // ARM-ANDROIDHF: "{{.*[/\\]}}libclang_rt.builtins-armhf-android.a"