Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / arm-compiler-rt.c
blob954947bb890f8772310b9ac8b621262890ddab95
1 // RUN: %clang -target arm-none-eabi \
2 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
3 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
4 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
5 // RUN: | FileCheck %s -check-prefix ARM-EABI
6 // ARM-EABI: "-lclang_rt.builtins-arm"
8 // RUN: %clang -target arm-linux-gnueabi \
9 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
10 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
11 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
12 // RUN: | FileCheck %s -check-prefix ARM-GNUEABI
13 // ARM-GNUEABI: "{{.*[/\\]}}libclang_rt.builtins-arm.a"
15 // RUN: %clang -target arm-linux-gnueabi \
16 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
17 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
18 // RUN: -rtlib=compiler-rt -mfloat-abi=hard -### %s 2>&1 \
19 // RUN: | FileCheck %s -check-prefix ARM-GNUEABI-ABI
20 // ARM-GNUEABI-ABI: "{{.*[/\\]}}libclang_rt.builtins-armhf.a"
22 // RUN: %clang -target arm-linux-gnueabihf \
23 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
24 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
25 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
26 // RUN: | FileCheck %s -check-prefix ARM-GNUEABIHF
27 // ARM-GNUEABIHF: "{{.*[/\\]}}libclang_rt.builtins-armhf.a"
29 // RUN: %clang -target arm-linux-gnueabihf \
30 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
31 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
32 // RUN: -rtlib=compiler-rt -mfloat-abi=soft -### %s 2>&1 \
33 // RUN: | FileCheck %s -check-prefix ARM-GNUEABIHF-ABI
34 // ARM-GNUEABIHF-ABI: "{{.*[/\\]}}libclang_rt.builtins-arm.a"
36 // RUN: %clang -target arm-windows-itanium \
37 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
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-WINDOWS
41 // ARM-WINDOWS: "{{.*[/\\]}}clang_rt.builtins-arm.lib"
43 // RUN: %clang -target arm-linux-androideabi \
44 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
45 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
46 // RUN: -rtlib=compiler-rt -### %s 2>&1 \
47 // RUN: | FileCheck %s -check-prefix ARM-ANDROID
48 // ARM-ANDROID: "{{.*[/\\]}}libclang_rt.builtins-arm-android.a"
50 // RUN: not %clang --target=arm-linux-androideabi \
51 // RUN: --sysroot=%S/Inputs/resource_dir_with_arch_subdir \
52 // RUN: -resource-dir=%S/Inputs/resource_dir_with_arch_subdir \
53 // RUN: -rtlib=compiler-rt -mfloat-abi=hard -### %s 2>&1 \
54 // RUN: | FileCheck %s -check-prefix ARM-ANDROIDHF
55 // ARM-ANDROIDHF: "{{.*[/\\]}}libclang_rt.builtins-armhf-android.a"