xref: /llvm-project/clang/test/Driver/flags.c (revision b6d1df2afd0a464f3f37055f16fb9321a3b2eaaf)
1 // RUN: %clang -target i386-apple-darwin9 -### -S -msoft-float %s 2>&1 | FileCheck -check-prefix=TEST1 %s
2 // TEST1: "-no-implicit-float"
3 
4 // RUN: %clang -target i386-apple-darwin9 -### -S -msoft-float -mno-soft-float %s 2>&1 | FileCheck -check-prefix=TEST2 %s
5 // TEST2-NOT: "-no-implicit-float"
6 
7 // RUN: %clang -target i386-apple-darwin9 -### -S -mno-soft-float %s -msoft-float 2>&1 | FileCheck -check-prefix=TEST3 %s
8 // TEST3: "-no-implicit-float"
9 
10 // RUN: %clang -target i386-apple-darwin9 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST4 %s
11 // TEST4: "-no-implicit-float"
12 
13 // RUN: %clang -target i386-apple-darwin9 -### -S -mno-implicit-float -mimplicit-float %s 2>&1 | FileCheck -check-prefix=TEST4A %s
14 // TEST4A-NOT: "-no-implicit-float"
15 
16 // RUN: %clang -target i386-apple-darwin9 -### -S -mkernel %s 2>&1 | FileCheck -check-prefix=TEST5 %s
17 // TEST5: "-no-implicit-float"
18 
19 // RUN: %clang -target i386-apple-darwin9 -### -S -mkernel -mno-soft-float %s 2>&1 | FileCheck -check-prefix=TEST6 %s
20 // TEST6-NOT: "-no-implicit-float"
21 
22 // RUN: %clang -target armv7-apple-darwin10 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST7 %s
23 // TEST7: "-no-implicit-float"
24 
25 // RUN: %clang -target armv7-apple-darwin10 -### -S -mno-implicit-float -mimplicit-float %s 2>&1 | FileCheck -check-prefix=TEST8 %s
26 // TEST8-NOT: "-no-implicit-float"
27 
28 // RUN: %clang --target=x86_64-linux-gnu -### -c -fclang-abi-compat=3.2 %s 2>&1 | FileCheck -check-prefix=TEST9 %s
29 // TEST9: "-fclang-abi-compat=3.2"
30 //
31 // RUN: %clang --target=riscv32 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST10 %s
32 // TEST10: "-no-implicit-float"
33 //
34 // RUN: %clang --target=riscv64 -### -S -mno-implicit-float %s 2>&1 | FileCheck -check-prefix=TEST11 %s
35 // TEST11: "-no-implicit-float"
36 //
37 // RUN: %clang --target=ppc64le -### -S -mno-red-zone %s 2>&1 | FileCheck -check-prefix=TEST12 %s
38 // TEST12: "-disable-red-zone"
39