• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching +full:- +full:t

1 // REQUIRES: x86-registered-target
2 // REQUIRES: powerpc-registered-target
8 // RUN: %clang -O0 -target %itanium_abi_triple %s -E -o %t.i
9 // RUN: %clangxx -O0 -target %itanium_abi_triple -x c++ %s -E -o %t.ii
10 // RUN: %clang -O0 -target %itanium_abi_triple %s -S -emit-llvm -o %t.ll
11 // RUN: %clang -O0 -target %itanium_abi_triple %s -c -emit-llvm -o %t.bc
12 // RUN: %clang -O0 -target %itanium_abi_triple %s -S -o %t.s
13 // RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.o
14 // RUN: %clang -O0 -target %itanium_abi_triple %s -emit-ast -o %t.ast
19 // RUN: touch %t.empty
24 // RUN: echo 'Content of device file 1' > %t.tgt1
25 // RUN: echo 'Content of device file 2' > %t.tgt2
30 // RUN: clang-offload-bundler --help | FileCheck %s --check-prefix CK-HELP
31 // CK-HELP: {{.*}}OVERVIEW: A tool to bundle several input files of the specified type <type>
32 // CK-HELP: {{.*}}referring to the same source file but different targets into a single
33 // CK-HELP: {{.*}}one. The resulting file can also be unbundled into different files by
34 // CK-HELP: {{.*}}this tool if -unbundle is provided.
35 // CK-HELP: {{.*}}USAGE: clang-offload-bundler [options]
36 // CK-HELP: {{.*}}-inputs=<string> - [<input file>,...]
37 // CK-HELP: {{.*}}-outputs=<string> - [<output file>,...]
38 // CK-HELP: {{.*}}-targets=<string> - [<offload kind>-<target triple>,...]
39 // CK-HELP: {{.*}}-type=<string> - Type of the files to be bundled/unbundled.
40 // CK-HELP: {{.*}}Current supported types are:
41 // CK-HELP: {{.*}}i {{.*}}- cpp-output
42 // CK-HELP: {{.*}}ii {{.*}}- c++-cpp-output
43 // CK-HELP: {{.*}}ll {{.*}}- llvm
44 // CK-HELP: {{.*}}bc {{.*}}- llvm-bc
45 // CK-HELP: {{.*}}s {{.*}}- assembler
46 // CK-HELP: {{.*}}o {{.*}}- object
47 // CK-HELP: {{.*}}gch {{.*}}- precompiled-header
48 // CK-HELP: {{.*}}ast {{.*}}- clang AST file
49 // CK-HELP: {{.*}}-unbundle {{.*}}- Unbundle bundled file into several output files.
54-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
55 // CK-ERR1: error: only one input file supported in unbundling mode
56 // CK-ERR1: error: number of output files and targets should match in unbundling mode
58-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -input…
59-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
60 // CK-ERR2: error: number of input files and targets should match in bundling mode
62-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
63 // CK-ERR3: error: only one output file supported in bundling mode
64 // CK-ERR3: error: number of input files and targets should match in bundling mode
66-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu -outpu…
67-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
68 // CK-ERR4: error: number of output files and targets should match in unbundling mode
70-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
71-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
72 // CK-ERR5: error: '[[FILE]]': {{N|n}}o such file or directory
74-offload-bundler -type=invalid -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,…
75 // CK-ERR6: error: '[[TYPE]]': invalid file type specified
77 // RUN: not clang-offload-bundler 2>&1 | FileCheck %s --check-prefix CK-ERR7
78 // CK-ERR7-DAG: clang-offload-bundler: for the --type option: must be specified at least once!
79 // CK-ERR7-DAG: clang-offload-bundler: for the --inputs option: must be specified at least once!
80 // CK-ERR7-DAG: clang-offload-bundler: for the --outputs option: must be specified at least once!
81 // CK-ERR7-DAG: clang-offload-bundler: for the --targets option: must be specified at least once!
83-offload-bundler -type=i -targets=hxst-powerpcxxle-ibm-linux-gnu,openxp-pxxerpc64le-ibm-linux-gnu,…
84 // CK-ERR8: error: invalid target 'hxst-powerpcxxle-ibm-linux-gnu', unknown offloading kind 'hxst',…
85 …/ CK-ERR8: error: invalid target 'openxp-pxxerpc64le-ibm-linux-gnu', unknown offloading kind 'open…
86 // CK-ERR8: error: invalid target 'xpenmp-x86_xx-pc-linux-gnu', unknown offloading kind 'xpenmp', u…
88-offload-bundler -type=i -targets=openmp-powerpc64le-linux,openmp-powerpc64le-ibm-linux-gnu,openmp
89-offload-bundler -type=i -targets=host-%itanium_abi_triple,host-%itanium_abi_triple,openmp-x86_64-
90 // CK-ERR9A: error: expecting exactly one host target but got 0
91 // CK-ERR9B: error: expecting exactly one host target but got 2
96-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
97-offload-bundler -type=ii -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
98-offload-bundler -type=ll -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
99-offload-bundler -type=s -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
100-offload-bundler -type=s -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp
101 // RUN: FileCheck %s --input-file %t.bundle3.i --check-prefix CK-TEXTI
102 // RUN: FileCheck %s --input-file %t.bundle3.ii --check-prefix CK-TEXTI
103 // RUN: FileCheck %s --input-file %t.bundle3.ll --check-prefix CK-TEXTLL
104 // RUN: FileCheck %s --input-file %t.bundle3.s --check-prefix CK-TEXTS
105 // RUN: FileCheck %s --input-file %t.bundle3.unordered.s --check-prefix CK-TEXTS-UNORDERED
107 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____START__ host-[[HOST:.+]]
108 // CK-TEXTI: int A = 0;
109 // CK-TEXTI: test_func(void)
110 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____END__ host-[[HOST]]
111 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____START__ openmp-powerpc64le-ibm-linux-gnu
112 // CK-TEXTI: Content of device file 1
113 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____END__ openmp-powerpc64le-ibm-linux-gnu
114 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____START__ openmp-x86_64-pc-linux-gnu
115 // CK-TEXTI: Content of device file 2
116 // CK-TEXTI: // __CLANG_OFFLOAD_BUNDLE____END__ openmp-x86_64-pc-linux-gnu
118 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____START__ host-[[HOST:.+]]
119 // CK-TEXTLL: @A = {{.*}}global i32 0
120 // CK-TEXTLL: define {{.*}}@test_func()
121 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____END__ host-[[HOST]]
122 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____START__ openmp-powerpc64le-ibm-linux-gnu
123 // CK-TEXTLL: Content of device file 1
124 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____END__ openmp-powerpc64le-ibm-linux-gnu
125 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____START__ openmp-x86_64-pc-linux-gnu
126 // CK-TEXTLL: Content of device file 2
127 // CK-TEXTLL: ; __CLANG_OFFLOAD_BUNDLE____END__ openmp-x86_64-pc-linux-gnu
129 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____START__ host-[[HOST:.+]]
130 // CK-TEXTS: .globl {{.*}}test_func
131 // CK-TEXTS: .globl {{.*}}A
132 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____END__ host-[[HOST]]
133 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____START__ openmp-powerpc64le-ibm-linux-gnu
134 // CK-TEXTS: Content of device file 1
135 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____END__ openmp-powerpc64le-ibm-linux-gnu
136 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____START__ openmp-x86_64-pc-linux-gnu
137 // CK-TEXTS: Content of device file 2
138 // CK-TEXTS: # __CLANG_OFFLOAD_BUNDLE____END__ openmp-x86_64-pc-linux-gnu
140 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____START__ openmp-powerpc64le-ibm-linux-gnu
141 // CK-TEXTS-UNORDERED: Content of device file 1
142 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____END__ openmp-powerpc64le-ibm-linux-gnu
143 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____START__ host-[[HOST:.+]]
144 // CK-TEXTS-UNORDERED: .globl {{.*}}test_func
145 // CK-TEXTS-UNORDERED: .globl {{.*}}A
146 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____END__ host-[[HOST]]
147 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____START__ openmp-x86_64-pc-linux-gnu
148 // CK-TEXTS-UNORDERED: Content of device file 2
149 // CK-TEXTS-UNORDERED: # __CLANG_OFFLOAD_BUNDLE____END__ openmp-x86_64-pc-linux-gnu
154-offload-bundler -type=i -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
155 // RUN: diff %t.i %t.res.i
156 // RUN: diff %t.tgt1 %t.res.tgt1
157 // RUN: diff %t.tgt2 %t.res.tgt2
158 // RUN: clang-offload-bundler -type=i -targets=openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.tgt…
159 // RUN: diff %t.tgt1 %t.res.tgt1
160-offload-bundler -type=ii -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
161 // RUN: diff %t.ii %t.res.ii
162 // RUN: diff %t.tgt1 %t.res.tgt1
163 // RUN: diff %t.tgt2 %t.res.tgt2
164 // RUN: clang-offload-bundler -type=ii -targets=openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt2 -in…
165 // RUN: diff %t.tgt2 %t.res.tgt2
166-offload-bundler -type=ll -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
167 // RUN: diff %t.ll %t.res.ll
168 // RUN: diff %t.tgt1 %t.res.tgt1
169 // RUN: diff %t.tgt2 %t.res.tgt2
170 // RUN: clang-offload-bundler -type=ll -targets=openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.tg…
171 // RUN: diff %t.tgt1 %t.res.tgt1
172-offload-bundler -type=s -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
173 // RUN: diff %t.s %t.res.s
174 // RUN: diff %t.tgt1 %t.res.tgt1
175 // RUN: diff %t.tgt2 %t.res.tgt2
176-offload-bundler -type=s -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp
177 // RUN: diff %t.s %t.res.s
178 // RUN: diff %t.tgt1 %t.res.tgt1
179 // RUN: diff %t.tgt2 %t.res.tgt2
180 // RUN: clang-offload-bundler -type=s -targets=openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt2 -inp…
181 // RUN: diff %t.tgt2 %t.res.tgt2
184-offload-bundler -type=s -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
185 // RUN: diff %t.s %t.res.s
186 // RUN: diff %t.empty %t.res.tgt1
187 // RUN: diff %t.empty %t.res.tgt2
188-offload-bundler -type=s -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp
189 // RUN: diff %t.s %t.res.s
190 // RUN: diff %t.empty %t.res.tgt1
191 // RUN: diff %t.empty %t.res.tgt2
194-offload-bundler -type=s -targets=host-x86_64-xxx-linux-gnu,openmp-powerpc64le-ibm-linux-gnu -outp…
195 // CK-NO-HOST-BUNDLE: error: Can't find bundle for the host target
200-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
201-offload-bundler -type=gch -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,open…
202-offload-bundler -type=ast -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,open…
203-offload-bundler -type=ast -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,open…
204-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
205 // RUN: diff %t.bc %t.res.bc
206 // RUN: diff %t.tgt1 %t.res.tgt1
207 // RUN: diff %t.tgt2 %t.res.tgt2
208 // RUN: clang-offload-bundler -type=bc -targets=openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.tg…
209 // RUN: diff %t.tgt1 %t.res.tgt1
210-offload-bundler -type=gch -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,open…
211 // RUN: diff %t.ast %t.res.gch
212 // RUN: diff %t.tgt1 %t.res.tgt1
213 // RUN: diff %t.tgt2 %t.res.tgt2
214 // RUN: clang-offload-bundler -type=gch -targets=openmp-x86_64-pc-linux-gnu -outputs=%t.res.tgt2 -i…
215 // RUN: diff %t.tgt2 %t.res.tgt2
216-offload-bundler -type=ast -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,open…
217 // RUN: diff %t.ast %t.res.ast
218 // RUN: diff %t.tgt1 %t.res.tgt1
219 // RUN: diff %t.tgt2 %t.res.tgt2
220-offload-bundler -type=ast -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,open…
221 // RUN: diff %t.ast %t.res.ast
222 // RUN: diff %t.tgt1 %t.res.tgt1
223 // RUN: diff %t.tgt2 %t.res.tgt2
224-offload-bundler -type=ast -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,open…
225 // RUN: diff %t.ast %t.res.ast
226 // RUN: diff %t.tgt1 %t.res.tgt1
227 // RUN: diff %t.tgt2 %t.res.tgt2
228 // RUN: clang-offload-bundler -type=ast -targets=openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.t…
229 // RUN: diff %t.tgt1 %t.res.tgt1
232-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
233 // RUN: diff %t.bc %t.res.bc
234 // RUN: diff %t.empty %t.res.tgt1
235 // RUN: diff %t.empty %t.res.tgt2
236-offload-bundler -type=bc -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openm…
237 // RUN: diff %t.bc %t.res.bc
238 // RUN: diff %t.empty %t.res.tgt1
239 // RUN: diff %t.empty %t.res.tgt2
242-offload-bundler -type=ast -targets=host-%itanium_abi_triple,openmp-x86_64-pc-linux-gnu -outputs=%
243 // RUN: diff %t.ast %t.res.ast
244 // RUN: diff %t.tgt2 %t.res.tgt2
248 // section (we are using a PowerPC little-endian host which uses ELF). We
254-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
255 …: | FileCheck %s -DHOST=%itanium_abi_triple -DINOBJ1=%t.o -DINOBJ2=%t.tgt1 -DINOBJ3=%t.tgt2 -DOUTO…
256-OBJ-CMD: llvm-objcopy{{(.exe)?}}" "--add-section=__CLANG_OFFLOAD_BUNDLE__host-[[HOST]]={{.*}}" "-…
257-OBJ-CMD: llvm-objcopy{{(.exe)?}}" "--set-section-flags=__CLANG_OFFLOAD_BUNDLE__host-[[HOST]]=read…
259-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
260-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
261 // RUN: diff %t.bundle3.o %t.res.o
262 // RUN: diff %t.tgt1 %t.res.tgt1
263 // RUN: diff %t.tgt2 %t.res.tgt2
264-offload-bundler -type=o -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp
265 // RUN: diff %t.bundle3.o %t.res.o
266 // RUN: diff %t.tgt1 %t.res.tgt1
267 // RUN: diff %t.tgt2 %t.res.tgt2
268 // RUN: clang-offload-bundler -type=o -targets=openmp-powerpc64le-ibm-linux-gnu -outputs=%t.res.tgt…
269 // RUN: diff %t.tgt1 %t.res.tgt1
272-offload-bundler -type=o -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openmp
273 // RUN: diff %t.o %t.res.o
274 // RUN: diff %t.empty %t.res.tgt1
275 // RUN: diff %t.empty %t.res.tgt2
276-offload-bundler -type=o -targets=openmp-powerpc64le-ibm-linux-gnu,host-%itanium_abi_triple,openmp
277 // RUN: diff %t.o %t.res.o
278 // RUN: diff %t.empty %t.res.tgt1
279 // RUN: diff %t.empty %t.res.tgt2
282 // Check -bundle-align option
285-offload-bundler -bundle-align=4096 -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-
286-offload-bundler -type=bc -targets=host-%itanium_abi_triple,openmp-powerpc64le-ibm-linux-gnu,openm…
287 // RUN: diff %t.bc %t.res.bc
288 // RUN: diff %t.tgt1 %t.res.tgt1
289 // RUN: diff %t.tgt2 %t.res.tgt2