annotate clang/test/Driver/baremetal.cpp @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
2 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
3 // RUN: -T semihosted.lds \
anatofuz
parents:
diff changeset
4 // RUN: -L some/directory/user/asked/for \
anatofuz
parents:
diff changeset
5 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
6 // RUN: | FileCheck --check-prefix=CHECK-V6M-C %s
anatofuz
parents:
diff changeset
7 // CHECK-V6M-C: "[[PREFIX_DIR:.*]]{{[/\\]+}}{{[^/^\\]+}}{{[/\\]+}}clang{{.*}}" "-cc1" "-triple" "thumbv6m-none-unknown-eabi"
anatofuz
parents:
diff changeset
8 // CHECK-V6M-C-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
anatofuz
parents:
diff changeset
9 // CHECK-V6M-C-SAME: "-isysroot" "[[SYSROOT:[^"]*]]"
anatofuz
parents:
diff changeset
10 // CHECK-V6M-C-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
anatofuz
parents:
diff changeset
11 // CHECk-V6M-C-SAME: "-internal-isystem" "[[SYSROOT]]{{[/\\]+}}include"
anatofuz
parents:
diff changeset
12 // CHECK-V6M-C-SAME: "-x" "c++" "{{.*}}baremetal.cpp"
anatofuz
parents:
diff changeset
13 // CHECK-V6M-C-NEXT: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
anatofuz
parents:
diff changeset
14 // CHECK-V6M-C-SAME: "-L[[RESOURCE_DIR:[^"]+]]{{[/\\]+}}lib{{[/\\]+}}baremetal"
anatofuz
parents:
diff changeset
15 // CHECK-V6M-C-SAME: "-T" "semihosted.lds" "-Lsome{{[/\\]+}}directory{{[/\\]+}}user{{[/\\]+}}asked{{[/\\]+}}for"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 // CHECK-V6M-C-SAME: "-lc" "-lm" "-lclang_rt.builtins-armv6m"
150
anatofuz
parents:
diff changeset
17 // CHECK-V6M-C-SAME: "-o" "{{.*}}.o"
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
20 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
21 // RUN: -nostdlibinc -nobuiltininc \
anatofuz
parents:
diff changeset
22 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
23 // RUN: | FileCheck --check-prefix=CHECK-V6M-LIBINC %s
anatofuz
parents:
diff changeset
24 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
25 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
26 // RUN: -nostdinc \
anatofuz
parents:
diff changeset
27 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
28 // RUN: | FileCheck --check-prefix=CHECK-V6M-LIBINC %s
anatofuz
parents:
diff changeset
29 // CHECK-V6M-LIBINC-NOT: "-internal-isystem"
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 // RUN: %clangxx -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
32 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
33 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
34 // RUN: | FileCheck --check-prefix=CHECK-V6M-DEFAULTCXX %s
anatofuz
parents:
diff changeset
35 // CHECK-V6M-DEFAULTCXX: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
anatofuz
parents:
diff changeset
36 // CHECK-V6M-DEFAULTCXX-SAME: "-L{{[^"]*}}{{[/\\]+}}lib{{(64)?}}{{[/\\]+}}clang{{[/\\]+}}{{.*}}{{[/\\]+}}lib{{[/\\]+}}baremetal"
anatofuz
parents:
diff changeset
37 // CHECK-V6M-DEFAULTCXX-SAME: "-lc++" "-lc++abi" "-lunwind"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
38 // CHECK-V6M-DEFAULTCXX-SAME: "-lc" "-lm" "-lclang_rt.builtins-armv6m"
150
anatofuz
parents:
diff changeset
39 // CHECK-V6M-DEFAULTCXX-SAME: "-o" "{{.*}}.o"
anatofuz
parents:
diff changeset
40
anatofuz
parents:
diff changeset
41 // RUN: %clangxx -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
42 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
43 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
44 // RUN: -stdlib=libc++ \
anatofuz
parents:
diff changeset
45 // RUN: | FileCheck --check-prefix=CHECK-V6M-LIBCXX %s
anatofuz
parents:
diff changeset
46 // CHECK-V6M-LIBCXX-NOT: "-internal-isystem" "{{[^"]+}}{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}{{[^v].*}}"
anatofuz
parents:
diff changeset
47 // CHECK-V6M-LIBCXX: "-internal-isystem" "{{[^"]+}}{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
anatofuz
parents:
diff changeset
48 // CHECK-V6M-LIBCXX: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
anatofuz
parents:
diff changeset
49 // CHECK-V6M-LIBCXX-SAME: "-L{{[^"]*}}{{[/\\]+}}lib{{(64)?}}{{[/\\]+}}clang{{[/\\]+}}{{.*}}{{[/\\]+}}lib{{[/\\]+}}baremetal"
anatofuz
parents:
diff changeset
50 // CHECK-V6M-LIBCXX-SAME: "-lc++" "-lc++abi" "-lunwind"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
51 // CHECK-V6M-LIBCXX-SAME: "-lc" "-lm" "-lclang_rt.builtins-armv6m"
150
anatofuz
parents:
diff changeset
52 // CHECK-V6M-LIBCXX-SAME: "-o" "{{.*}}.o"
anatofuz
parents:
diff changeset
53
anatofuz
parents:
diff changeset
54 // RUN: %clangxx -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
55 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
56 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
57 // RUN: -stdlib=libstdc++ \
anatofuz
parents:
diff changeset
58 // RUN: | FileCheck --check-prefix=CHECK-V6M-LIBSTDCXX %s
anatofuz
parents:
diff changeset
59 // CHECK-V6M-LIBSTDCXX-NOT: "-internal-isystem" "{{[^"]+}}{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}v1"
anatofuz
parents:
diff changeset
60 // CHECK-V6M-LIBSTDCXX: "-internal-isystem" "{{[^"]+}}{{[/\\]+}}include{{[/\\]+}}c++{{[/\\]+}}6.0.0"
anatofuz
parents:
diff changeset
61 // CHECK-V6M-LIBSTDCXX: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
anatofuz
parents:
diff changeset
62 // CHECK-V6M-LIBSTDCXX-SAME: "-L{{[^"]*}}{{[/\\]+}}lib{{(64)?}}{{[/\\]+}}clang{{[/\\]+}}{{.*}}{{[/\\]+}}lib{{[/\\]+}}baremetal"
anatofuz
parents:
diff changeset
63 // CHECK-V6M-LIBSTDCXX-SAME: "-lstdc++" "-lsupc++" "-lunwind"
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
64 // CHECK-V6M-LIBSTDCXX-SAME: "-lc" "-lm" "-lclang_rt.builtins-armv6m"
150
anatofuz
parents:
diff changeset
65 // CHECK-V6M-LIBSTDCXX-SAME: "-o" "{{.*}}.o"
anatofuz
parents:
diff changeset
66
anatofuz
parents:
diff changeset
67 // RUN: %clangxx -no-canonical-prefixes %s -### -o %t.o 2>&1 \
anatofuz
parents:
diff changeset
68 // RUN: -target armv6m-none-eabi \
anatofuz
parents:
diff changeset
69 // RUN: --sysroot=%S/Inputs/baremetal_arm \
anatofuz
parents:
diff changeset
70 // RUN: -nodefaultlibs \
anatofuz
parents:
diff changeset
71 // RUN: | FileCheck --check-prefix=CHECK-V6M-NDL %s
anatofuz
parents:
diff changeset
72 // CHECK-V6M-NDL: "{{[^"]*}}ld{{(\.(lld|bfd|gold))?}}{{(\.exe)?}}" "{{.*}}.o" "-Bstatic"
anatofuz
parents:
diff changeset
73 // CHECK-V6M-NDL-SAME: "-L{{[^"]*}}{{[/\\]+}}lib{{(64)?}}{{[/\\]+}}clang{{[/\\]+}}{{.*}}{{[/\\]+}}lib{{[/\\]+}}baremetal" "-o" "{{.*}}.o"
anatofuz
parents:
diff changeset
74
anatofuz
parents:
diff changeset
75 // RUN: %clangxx -target arm-none-eabi -v 2>&1 \
anatofuz
parents:
diff changeset
76 // RUN: | FileCheck %s --check-prefix=CHECK-THREAD-MODEL
anatofuz
parents:
diff changeset
77 // CHECK-THREAD-MODEL: Thread model: posix
anatofuz
parents:
diff changeset
78
anatofuz
parents:
diff changeset
79 // RUN: %clangxx -target arm-none-eabi -mthread-model single -v 2>&1 \
anatofuz
parents:
diff changeset
80 // RUN: | FileCheck %s --check-prefix=CHECK-THREAD-MODEL-SINGLE
anatofuz
parents:
diff changeset
81 // CHECK-THREAD-MODEL-SINGLE: Thread model: single
anatofuz
parents:
diff changeset
82
anatofuz
parents:
diff changeset
83 // RUN: %clangxx -target arm-none-eabi -mthread-model posix -v 2>&1 \
anatofuz
parents:
diff changeset
84 // RUN: | FileCheck %s --check-prefix=CHECK-THREAD-MODEL-POSIX
anatofuz
parents:
diff changeset
85 // CHECK-THREAD-MODEL-POSIX: Thread model: posix