[clang][bytecode] Implement __builtin_reduce_mul (#118287)
[llvm-project.git] / flang / test / Driver / B-opt.f90
blobf5cd58fa97d08bc9d5837c569f7830b967b06597
1 ! Check -B driver option.
3 ! Target triple prefix is not detected for -B.
4 ! RUN: %flang %s -### -o %t.o --target=i386-unknown-linux \
5 ! RUN: -B %S/Inputs/B_opt_tree/dir1 -fuse-ld=ld 2>&1 \
6 ! RUN: | FileCheck --check-prefix=CHECK-B-OPT-TRIPLE %s
7 ! CHECK-B-OPT-TRIPLE-NOT: "{{.*}}/Inputs/B_opt_tree/dir1{{/|\\\\}}i386-unknown-linux-ld"
9 ! RUN: %flang %s -### -o %t.o --target=i386-unknown-linux \
10 ! RUN: -B %S/Inputs/B_opt_tree/dir2 -fuse-ld=ld 2>&1 \
11 ! RUN: | FileCheck --check-prefix=CHECK-B-OPT-DIR %s
12 ! CHECK-B-OPT-DIR: "{{.*}}/Inputs/B_opt_tree/dir2{{/|\\\\}}ld"
14 ! RUN: %flang %s -### -o %t.o --target=i386-unknown-linux \
15 ! RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- -fuse-ld=ld 2>&1 \
16 ! RUN: | FileCheck --check-prefix=CHECK-B-OPT-PREFIX %s
17 ! CHECK-B-OPT-PREFIX: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld"
19 ! RUN: %flang %s -### -o %t.o --target=i386-unknown-linux \
20 ! RUN: -B %S/Inputs/B_opt_tree/dir3/prefix- \
21 ! RUN: -B %S/Inputs/B_opt_tree/dir2 2>&1 -fuse-ld=ld \
22 ! RUN: | FileCheck --check-prefix=CHECK-B-OPT-MULT %s
23 ! CHECK-B-OPT-MULT: "{{.*}}/Inputs/B_opt_tree/dir3{{/|\\\\}}prefix-ld"