[clang][bytecode] Implement __builtin_reduce_mul (#118287)
[llvm-project.git] / flang / test / Driver / config-file.f90
blob70316dd971f36bccced850edfd2a3624c50d0584
1 !--- Config file (full path) in output of -###
3 ! RUN: %flang --config-system-dir=%S/Inputs/config --config-user-dir=%S/Inputs/config2 -o /dev/null -v 2>&1 | FileCheck %s -check-prefix CHECK-DIRS
4 ! CHECK-DIRS: System configuration file directory: {{.*}}/Inputs/config
5 ! CHECK-DIRS: User configuration file directory: {{.*}}/Inputs/config2
7 !--- Config file (full path) in output of -###
9 ! RUN: %flang --config %S/Inputs/config-1.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-HHH
10 ! RUN: %flang --config=%S/Inputs/config-1.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-HHH
11 ! CHECK-HHH: Configuration file: {{.*}}Inputs{{.}}config-1.cfg
12 ! CHECK-HHH: -flto
15 !--- Config file (full path) in output of -v
17 ! RUN: %flang --config %S/Inputs/config-1.cfg -S %s -o /dev/null -v 2>&1 | FileCheck %s -check-prefix CHECK-V
18 ! CHECK-V: Configuration file: {{.*}}Inputs{{.}}config-1.cfg
19 ! CHECK-V: -flto
21 !--- Config file in output of -###
23 ! RUN: %flang --config-system-dir=%S/Inputs --config-user-dir= --config config-1.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-HHH2
24 ! CHECK-HHH2: Configuration file: {{.*}}Inputs{{.}}config-1.cfg
25 ! CHECK-HHH2: -flto
27 !--- Config file in output of -v
29 ! RUN: %flang --config-system-dir=%S/Inputs --config-user-dir= --config config-1.cfg -S %s -o /dev/null -v 2>&1 | FileCheck %s -check-prefix CHECK-V2
30 ! CHECK-V2: Configuration file: {{.*}}Inputs{{.}}config-1.cfg
31 ! CHECK-V2: -flto
33 !--- Nested config files
35 ! RUN: %flang --config-system-dir=%S/Inputs --config-user-dir= --config config-2.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NESTED
36 ! CHECK-NESTED: Configuration file: {{.*}}Inputs{{.}}config-2.cfg
37 ! CHECK-NESTED: -fno-signed-zeros
39 ! RUN: %flang --config-system-dir=%S/Inputs --config-user-dir=%S/Inputs/config --config config-6.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NESTED2
40 ! CHECK-NESTED2: Configuration file: {{.*}}Inputs{{.}}config-6.cfg
41 ! CHECK-NESTED2: -fstack-arrays
44 ! RUN: %flang --config %S/Inputs/config-2a.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NESTEDa
45 ! CHECK-NESTEDa: Configuration file: {{.*}}Inputs{{.}}config-2a.cfg
46 ! CHECK-NESTEDa: -fopenmp
48 ! RUN: %flang --config-system-dir=%S/Inputs --config-user-dir= --config config-2a.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NESTED2a
49 ! CHECK-NESTED2a: Configuration file: {{.*}}Inputs{{.}}config-2a.cfg
50 ! CHECK-NESTED2a: -fopenmp
52 !--- User directory is searched first.
54 ! RUN: %flang --config-system-dir=%S/Inputs/config --config-user-dir=%S/Inputs/config2 --config config-4.cfg -S %s -o /dev/null -v 2>&1 | FileCheck %s -check-prefix CHECK-PRECEDENCE
55 ! CHECK-PRECEDENCE: Configuration file: {{.*}}Inputs{{.}}config2{{.}}config-4.cfg
56 ! CHECK-PRECEDENCE: -ffp-contract=fast
58 !--- Multiple configuration files can be specified.
59 ! RUN: %flang --config-system-dir=%S/Inputs/config --config-user-dir= --config config-4.cfg --config %S/Inputs/config2/config-4.cfg -S %s -o /dev/null -v 2>&1 | FileCheck %s -check-prefix CHECK-TWO-CONFIGS
60 ! CHECK-TWO-CONFIGS: Configuration file: {{.*}}Inputs{{.}}config{{.}}config-4.cfg
61 ! CHECK-TWO-CONFIGS-NEXT: Configuration file: {{.*}}Inputs{{.}}config2{{.}}config-4.cfg
62 ! CHECK-TWO-CONFIGS: -ffp-contract=fast
63 ! CHECK-TWO-CONFIGS: -O3