• Home
  • Raw
  • Download

Lines Matching refs:T

18   Triple T;  in TEST()  local
20 T = Triple(""); in TEST()
21 EXPECT_EQ("", T.getArchName().str()); in TEST()
22 EXPECT_EQ("", T.getVendorName().str()); in TEST()
23 EXPECT_EQ("", T.getOSName().str()); in TEST()
24 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
26 T = Triple("-"); in TEST()
27 EXPECT_EQ("", T.getArchName().str()); in TEST()
28 EXPECT_EQ("", T.getVendorName().str()); in TEST()
29 EXPECT_EQ("", T.getOSName().str()); in TEST()
30 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
32 T = Triple("--"); in TEST()
33 EXPECT_EQ("", T.getArchName().str()); in TEST()
34 EXPECT_EQ("", T.getVendorName().str()); in TEST()
35 EXPECT_EQ("", T.getOSName().str()); in TEST()
36 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
38 T = Triple("---"); in TEST()
39 EXPECT_EQ("", T.getArchName().str()); in TEST()
40 EXPECT_EQ("", T.getVendorName().str()); in TEST()
41 EXPECT_EQ("", T.getOSName().str()); in TEST()
42 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
44 T = Triple("----"); in TEST()
45 EXPECT_EQ("", T.getArchName().str()); in TEST()
46 EXPECT_EQ("", T.getVendorName().str()); in TEST()
47 EXPECT_EQ("", T.getOSName().str()); in TEST()
48 EXPECT_EQ("-", T.getEnvironmentName().str()); in TEST()
50 T = Triple("a"); in TEST()
51 EXPECT_EQ("a", T.getArchName().str()); in TEST()
52 EXPECT_EQ("", T.getVendorName().str()); in TEST()
53 EXPECT_EQ("", T.getOSName().str()); in TEST()
54 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
56 T = Triple("a-b"); in TEST()
57 EXPECT_EQ("a", T.getArchName().str()); in TEST()
58 EXPECT_EQ("b", T.getVendorName().str()); in TEST()
59 EXPECT_EQ("", T.getOSName().str()); in TEST()
60 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
62 T = Triple("a-b-c"); in TEST()
63 EXPECT_EQ("a", T.getArchName().str()); in TEST()
64 EXPECT_EQ("b", T.getVendorName().str()); in TEST()
65 EXPECT_EQ("c", T.getOSName().str()); in TEST()
66 EXPECT_EQ("", T.getEnvironmentName().str()); in TEST()
68 T = Triple("a-b-c-d"); in TEST()
69 EXPECT_EQ("a", T.getArchName().str()); in TEST()
70 EXPECT_EQ("b", T.getVendorName().str()); in TEST()
71 EXPECT_EQ("c", T.getOSName().str()); in TEST()
72 EXPECT_EQ("d", T.getEnvironmentName().str()); in TEST()
76 Triple T; in TEST() local
78 T = Triple("i386-apple-darwin"); in TEST()
79 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
80 EXPECT_EQ(Triple::Apple, T.getVendor()); in TEST()
81 EXPECT_EQ(Triple::Darwin, T.getOS()); in TEST()
82 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
84 T = Triple("i386-pc-elfiamcu"); in TEST()
85 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
86 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
87 EXPECT_EQ(Triple::ELFIAMCU, T.getOS()); in TEST()
88 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
90 T = Triple("i386-pc-contiki-unknown"); in TEST()
91 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
92 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
93 EXPECT_EQ(Triple::Contiki, T.getOS()); in TEST()
94 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
96 T = Triple("i386-pc-hurd-gnu"); in TEST()
97 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
98 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
99 EXPECT_EQ(Triple::Hurd, T.getOS()); in TEST()
100 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
102 T = Triple("x86_64-pc-linux-gnu"); in TEST()
103 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
104 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
105 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
106 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
108 T = Triple("x86_64-pc-linux-musl"); in TEST()
109 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
110 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
111 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
112 EXPECT_EQ(Triple::Musl, T.getEnvironment()); in TEST()
114 T = Triple("powerpc-ibm-aix"); in TEST()
115 EXPECT_EQ(Triple::ppc, T.getArch()); in TEST()
116 EXPECT_EQ(Triple::IBM, T.getVendor()); in TEST()
117 EXPECT_EQ(Triple::AIX, T.getOS()); in TEST()
118 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
120 T = Triple("powerpc64-ibm-aix"); in TEST()
121 EXPECT_EQ(Triple::ppc64, T.getArch()); in TEST()
122 EXPECT_EQ(Triple::IBM, T.getVendor()); in TEST()
123 EXPECT_EQ(Triple::AIX, T.getOS()); in TEST()
124 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
126 T = Triple("powerpc-dunno-notsure"); in TEST()
127 EXPECT_EQ(Triple::ppc, T.getArch()); in TEST()
128 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
129 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
130 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
132 T = Triple("powerpcspe-unknown-freebsd"); in TEST()
133 EXPECT_EQ(Triple::ppc, T.getArch()); in TEST()
134 EXPECT_EQ(Triple::PPCSubArch_spe, T.getSubArch()); in TEST()
135 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
136 EXPECT_EQ(Triple::FreeBSD, T.getOS()); in TEST()
137 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
139 T = Triple("s390x-ibm-zos"); in TEST()
140 EXPECT_EQ(Triple::systemz, T.getArch()); in TEST()
141 EXPECT_EQ(Triple::IBM, T.getVendor()); in TEST()
142 EXPECT_EQ(Triple::ZOS, T.getOS()); in TEST()
143 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
145 T = Triple("systemz-ibm-zos"); in TEST()
146 EXPECT_EQ(Triple::systemz, T.getArch()); in TEST()
147 EXPECT_EQ(Triple::IBM, T.getVendor()); in TEST()
148 EXPECT_EQ(Triple::ZOS, T.getOS()); in TEST()
149 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
151 T = Triple("arm-none-none-eabi"); in TEST()
152 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
153 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
154 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
155 EXPECT_EQ(Triple::EABI, T.getEnvironment()); in TEST()
157 T = Triple("arm-none-linux-musleabi"); in TEST()
158 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
159 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
160 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
161 EXPECT_EQ(Triple::MuslEABI, T.getEnvironment()); in TEST()
163 T = Triple("armv6hl-none-linux-gnueabi"); in TEST()
164 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
165 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
166 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
167 EXPECT_EQ(Triple::GNUEABI, T.getEnvironment()); in TEST()
169 T = Triple("armv7hl-none-linux-gnueabi"); in TEST()
170 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
171 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
172 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
173 EXPECT_EQ(Triple::GNUEABI, T.getEnvironment()); in TEST()
175 T = Triple("amdil-unknown-unknown"); in TEST()
176 EXPECT_EQ(Triple::amdil, T.getArch()); in TEST()
177 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
178 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
180 T = Triple("amdil64-unknown-unknown"); in TEST()
181 EXPECT_EQ(Triple::amdil64, T.getArch()); in TEST()
182 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
183 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
185 T = Triple("hsail-unknown-unknown"); in TEST()
186 EXPECT_EQ(Triple::hsail, T.getArch()); in TEST()
187 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
188 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
190 T = Triple("hsail64-unknown-unknown"); in TEST()
191 EXPECT_EQ(Triple::hsail64, T.getArch()); in TEST()
192 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
193 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
195 T = Triple("sparcel-unknown-unknown"); in TEST()
196 EXPECT_EQ(Triple::sparcel, T.getArch()); in TEST()
197 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
198 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
200 T = Triple("spir-unknown-unknown"); in TEST()
201 EXPECT_EQ(Triple::spir, T.getArch()); in TEST()
202 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
203 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
205 T = Triple("spir64-unknown-unknown"); in TEST()
206 EXPECT_EQ(Triple::spir64, T.getArch()); in TEST()
207 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
208 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
210 T = Triple("x86_64-unknown-ananas"); in TEST()
211 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
212 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
213 EXPECT_EQ(Triple::Ananas, T.getOS()); in TEST()
214 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
216 T = Triple("x86_64-unknown-cloudabi"); in TEST()
217 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
218 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
219 EXPECT_EQ(Triple::CloudABI, T.getOS()); in TEST()
220 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
222 T = Triple("x86_64-unknown-fuchsia"); in TEST()
223 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
224 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
225 EXPECT_EQ(Triple::Fuchsia, T.getOS()); in TEST()
226 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
228 T = Triple("x86_64-unknown-hermit"); in TEST()
229 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
230 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
231 EXPECT_EQ(Triple::HermitCore, T.getOS()); in TEST()
232 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
234 T = Triple("wasm32-unknown-unknown"); in TEST()
235 EXPECT_EQ(Triple::wasm32, T.getArch()); in TEST()
236 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
237 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
238 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
240 T = Triple("wasm32-unknown-wasi"); in TEST()
241 EXPECT_EQ(Triple::wasm32, T.getArch()); in TEST()
242 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
243 EXPECT_EQ(Triple::WASI, T.getOS()); in TEST()
244 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
246 T = Triple("wasm64-unknown-unknown"); in TEST()
247 EXPECT_EQ(Triple::wasm64, T.getArch()); in TEST()
248 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
249 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
250 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
252 T = Triple("wasm64-unknown-wasi"); in TEST()
253 EXPECT_EQ(Triple::wasm64, T.getArch()); in TEST()
254 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
255 EXPECT_EQ(Triple::WASI, T.getOS()); in TEST()
256 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
258 T = Triple("avr-unknown-unknown"); in TEST()
259 EXPECT_EQ(Triple::avr, T.getArch()); in TEST()
260 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
261 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
262 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
264 T = Triple("avr"); in TEST()
265 EXPECT_EQ(Triple::avr, T.getArch()); in TEST()
266 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
267 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
268 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
270 T = Triple("lanai-unknown-unknown"); in TEST()
271 EXPECT_EQ(Triple::lanai, T.getArch()); in TEST()
272 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
273 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
274 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
276 T = Triple("lanai"); in TEST()
277 EXPECT_EQ(Triple::lanai, T.getArch()); in TEST()
278 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
279 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
280 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
282 T = Triple("amdgcn-mesa-mesa3d"); in TEST()
283 EXPECT_EQ(Triple::amdgcn, T.getArch()); in TEST()
284 EXPECT_EQ(Triple::Mesa, T.getVendor()); in TEST()
285 EXPECT_EQ(Triple::Mesa3D, T.getOS()); in TEST()
286 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
288 T = Triple("amdgcn-amd-amdhsa"); in TEST()
289 EXPECT_EQ(Triple::amdgcn, T.getArch()); in TEST()
290 EXPECT_EQ(Triple::AMD, T.getVendor()); in TEST()
291 EXPECT_EQ(Triple::AMDHSA, T.getOS()); in TEST()
292 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
294 T = Triple("amdgcn-amd-amdpal"); in TEST()
295 EXPECT_EQ(Triple::amdgcn, T.getArch()); in TEST()
296 EXPECT_EQ(Triple::AMD, T.getVendor()); in TEST()
297 EXPECT_EQ(Triple::AMDPAL, T.getOS()); in TEST()
298 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
300 T = Triple("ve-unknown-linux"); in TEST()
301 EXPECT_EQ(Triple::ve, T.getArch()); in TEST()
302 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
303 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
304 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
306 T = Triple("csky-unknown-unknown"); in TEST()
307 EXPECT_EQ(Triple::csky, T.getArch()); in TEST()
308 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
309 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
310 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
312 T = Triple("csky-unknown-linux"); in TEST()
313 EXPECT_EQ(Triple::csky, T.getArch()); in TEST()
314 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
315 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
316 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
318 T = Triple("riscv32-unknown-unknown"); in TEST()
319 EXPECT_EQ(Triple::riscv32, T.getArch()); in TEST()
320 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
321 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
322 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
324 T = Triple("riscv64-unknown-linux"); in TEST()
325 EXPECT_EQ(Triple::riscv64, T.getArch()); in TEST()
326 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
327 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
328 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
330 T = Triple("riscv64-unknown-freebsd"); in TEST()
331 EXPECT_EQ(Triple::riscv64, T.getArch()); in TEST()
332 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
333 EXPECT_EQ(Triple::FreeBSD, T.getOS()); in TEST()
334 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
336 T = Triple("riscv64-suse-linux"); in TEST()
337 EXPECT_EQ(Triple::riscv64, T.getArch()); in TEST()
338 EXPECT_EQ(Triple::SUSE, T.getVendor()); in TEST()
339 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
340 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
342 T = Triple("armv7hl-suse-linux-gnueabi"); in TEST()
343 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
344 EXPECT_EQ(Triple::SUSE, T.getVendor()); in TEST()
345 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
346 EXPECT_EQ(Triple::GNUEABI, T.getEnvironment()); in TEST()
348 T = Triple("i586-pc-haiku"); in TEST()
349 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
350 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
351 EXPECT_EQ(Triple::Haiku, T.getOS()); in TEST()
352 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
354 T = Triple("x86_64-unknown-haiku"); in TEST()
355 EXPECT_EQ(Triple::x86_64, T.getArch()); in TEST()
356 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
357 EXPECT_EQ(Triple::Haiku, T.getOS()); in TEST()
358 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
360 T = Triple("mips-mti-linux-gnu"); in TEST()
361 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
362 EXPECT_EQ(Triple::MipsTechnologies, T.getVendor()); in TEST()
363 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
364 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
366 T = Triple("mipsel-img-linux-gnu"); in TEST()
367 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
368 EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor()); in TEST()
369 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
370 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
372 T = Triple("mips64-mti-linux-gnu"); in TEST()
373 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
374 EXPECT_EQ(Triple::MipsTechnologies, T.getVendor()); in TEST()
375 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
376 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
378 T = Triple("mips64el-img-linux-gnu"); in TEST()
379 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
380 EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor()); in TEST()
381 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
382 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
384 T = Triple("mips64el-img-linux-gnuabin32"); in TEST()
385 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
386 EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor()); in TEST()
387 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
388 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
390 T = Triple("mips64el-unknown-linux-gnuabi64"); in TEST()
391 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
392 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
393 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
394 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
395 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
396 T = Triple("mips64el"); in TEST()
397 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
398 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
399 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
400 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
402 T = Triple("mips64-unknown-linux-gnuabi64"); in TEST()
403 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
404 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
405 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
406 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
407 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
408 T = Triple("mips64"); in TEST()
409 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
410 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
411 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
412 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
414 T = Triple("mipsisa64r6el-unknown-linux-gnuabi64"); in TEST()
415 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
416 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
417 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
418 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
419 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
420 T = Triple("mips64r6el"); in TEST()
421 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
422 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
423 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
424 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
425 T = Triple("mipsisa64r6el"); in TEST()
426 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
427 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
428 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
429 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
431 T = Triple("mipsisa64r6-unknown-linux-gnuabi64"); in TEST()
432 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
433 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
434 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
435 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
436 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
437 T = Triple("mips64r6"); in TEST()
438 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
439 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
440 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
441 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
442 T = Triple("mipsisa64r6"); in TEST()
443 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
444 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
445 EXPECT_EQ(Triple::GNUABI64, T.getEnvironment()); in TEST()
446 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
448 T = Triple("mips64el-unknown-linux-gnuabin32"); in TEST()
449 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
450 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
451 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
452 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
453 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
454 T = Triple("mipsn32el"); in TEST()
455 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
456 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
457 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
458 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
460 T = Triple("mips64-unknown-linux-gnuabin32"); in TEST()
461 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
462 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
463 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
464 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
465 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
466 T = Triple("mipsn32"); in TEST()
467 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
468 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
469 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
470 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
472 T = Triple("mipsisa64r6el-unknown-linux-gnuabin32"); in TEST()
473 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
474 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
475 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
476 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
477 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
478 T = Triple("mipsn32r6el"); in TEST()
479 EXPECT_EQ(Triple::mips64el, T.getArch()); in TEST()
480 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
481 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
482 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
484 T = Triple("mipsisa64r6-unknown-linux-gnuabin32"); in TEST()
485 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
486 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
487 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
488 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
489 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
490 T = Triple("mipsn32r6"); in TEST()
491 EXPECT_EQ(Triple::mips64, T.getArch()); in TEST()
492 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
493 EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment()); in TEST()
494 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
496 T = Triple("mipsel-unknown-linux-gnu"); in TEST()
497 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
498 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
499 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
500 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
501 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
502 T = Triple("mipsel"); in TEST()
503 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
504 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
505 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
506 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
508 T = Triple("mips-unknown-linux-gnu"); in TEST()
509 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
510 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
511 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
512 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
513 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
514 T = Triple("mips"); in TEST()
515 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
516 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
517 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
518 EXPECT_EQ(Triple::NoSubArch, T.getSubArch()); in TEST()
520 T = Triple("mipsisa32r6el-unknown-linux-gnu"); in TEST()
521 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
522 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
523 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
524 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
525 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
526 T = Triple("mipsr6el"); in TEST()
527 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
528 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
529 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
530 T = Triple("mipsisa32r6el"); in TEST()
531 EXPECT_EQ(Triple::mipsel, T.getArch()); in TEST()
532 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
533 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
534 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
536 T = Triple("mipsisa32r6-unknown-linux-gnu"); in TEST()
537 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
538 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
539 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
540 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
541 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
542 T = Triple("mipsr6"); in TEST()
543 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
544 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
545 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
546 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
547 T = Triple("mipsisa32r6"); in TEST()
548 EXPECT_EQ(Triple::mips, T.getArch()); in TEST()
549 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
550 EXPECT_EQ(Triple::GNU, T.getEnvironment()); in TEST()
551 EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch()); in TEST()
553 T = Triple("arm-oe-linux-gnueabi"); in TEST()
554 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
555 EXPECT_EQ(Triple::OpenEmbedded, T.getVendor()); in TEST()
556 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
557 EXPECT_EQ(Triple::GNUEABI, T.getEnvironment()); in TEST()
559 T = Triple("aarch64-oe-linux"); in TEST()
560 EXPECT_EQ(Triple::aarch64, T.getArch()); in TEST()
561 EXPECT_EQ(Triple::OpenEmbedded, T.getVendor()); in TEST()
562 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
563 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
564 EXPECT_TRUE(T.isArch64Bit()); in TEST()
566 T = Triple("arm64_32-apple-ios"); in TEST()
567 EXPECT_EQ(Triple::aarch64_32, T.getArch()); in TEST()
568 EXPECT_EQ(Triple::IOS, T.getOS()); in TEST()
569 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
570 EXPECT_TRUE(T.isArch32Bit()); in TEST()
572 T = Triple("huh"); in TEST()
573 EXPECT_EQ(Triple::UnknownArch, T.getArch()); in TEST()
730 Triple T; in TEST() local
731 EXPECT_EQ(Triple::UnknownArch, T.getArch()); in TEST()
732 EXPECT_EQ(Triple::UnknownVendor, T.getVendor()); in TEST()
733 EXPECT_EQ(Triple::UnknownOS, T.getOS()); in TEST()
734 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment()); in TEST()
736 T.setArchName("i386"); in TEST()
737 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
738 EXPECT_EQ("i386--", T.getTriple()); in TEST()
740 T.setVendorName("pc"); in TEST()
741 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
742 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
743 EXPECT_EQ("i386-pc-", T.getTriple()); in TEST()
745 T.setOSName("linux"); in TEST()
746 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
747 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
748 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
749 EXPECT_EQ("i386-pc-linux", T.getTriple()); in TEST()
751 T.setEnvironmentName("gnu"); in TEST()
752 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
753 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
754 EXPECT_EQ(Triple::Linux, T.getOS()); in TEST()
755 EXPECT_EQ("i386-pc-linux-gnu", T.getTriple()); in TEST()
757 T.setOSName("freebsd"); in TEST()
758 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
759 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
760 EXPECT_EQ(Triple::FreeBSD, T.getOS()); in TEST()
761 EXPECT_EQ("i386-pc-freebsd-gnu", T.getTriple()); in TEST()
763 T.setOSAndEnvironmentName("darwin"); in TEST()
764 EXPECT_EQ(Triple::x86, T.getArch()); in TEST()
765 EXPECT_EQ(Triple::PC, T.getVendor()); in TEST()
766 EXPECT_EQ(Triple::Darwin, T.getOS()); in TEST()
767 EXPECT_EQ("i386-pc-darwin", T.getTriple()); in TEST()
771 Triple T; in TEST() local
772 EXPECT_FALSE(T.isArch16Bit()); in TEST()
773 EXPECT_FALSE(T.isArch32Bit()); in TEST()
774 EXPECT_FALSE(T.isArch64Bit()); in TEST()
776 T.setArch(Triple::arm); in TEST()
777 EXPECT_FALSE(T.isArch16Bit()); in TEST()
778 EXPECT_TRUE(T.isArch32Bit()); in TEST()
779 EXPECT_FALSE(T.isArch64Bit()); in TEST()
781 T.setArch(Triple::hexagon); in TEST()
782 EXPECT_FALSE(T.isArch16Bit()); in TEST()
783 EXPECT_TRUE(T.isArch32Bit()); in TEST()
784 EXPECT_FALSE(T.isArch64Bit()); in TEST()
786 T.setArch(Triple::mips); in TEST()
787 EXPECT_FALSE(T.isArch16Bit()); in TEST()
788 EXPECT_TRUE(T.isArch32Bit()); in TEST()
789 EXPECT_FALSE(T.isArch64Bit()); in TEST()
791 T.setArch(Triple::mips64); in TEST()
792 EXPECT_FALSE(T.isArch16Bit()); in TEST()
793 EXPECT_FALSE(T.isArch32Bit()); in TEST()
794 EXPECT_TRUE(T.isArch64Bit()); in TEST()
796 T.setArch(Triple::msp430); in TEST()
797 EXPECT_TRUE(T.isArch16Bit()); in TEST()
798 EXPECT_FALSE(T.isArch32Bit()); in TEST()
799 EXPECT_FALSE(T.isArch64Bit()); in TEST()
801 T.setArch(Triple::ppc); in TEST()
802 EXPECT_FALSE(T.isArch16Bit()); in TEST()
803 EXPECT_TRUE(T.isArch32Bit()); in TEST()
804 EXPECT_FALSE(T.isArch64Bit()); in TEST()
806 T.setArch(Triple::ppc64); in TEST()
807 EXPECT_FALSE(T.isArch16Bit()); in TEST()
808 EXPECT_FALSE(T.isArch32Bit()); in TEST()
809 EXPECT_TRUE(T.isArch64Bit()); in TEST()
811 T.setArch(Triple::x86); in TEST()
812 EXPECT_FALSE(T.isArch16Bit()); in TEST()
813 EXPECT_TRUE(T.isArch32Bit()); in TEST()
814 EXPECT_FALSE(T.isArch64Bit()); in TEST()
816 T.setArch(Triple::x86_64); in TEST()
817 EXPECT_FALSE(T.isArch16Bit()); in TEST()
818 EXPECT_FALSE(T.isArch32Bit()); in TEST()
819 EXPECT_TRUE(T.isArch64Bit()); in TEST()
821 T.setArch(Triple::amdil); in TEST()
822 EXPECT_FALSE(T.isArch16Bit()); in TEST()
823 EXPECT_TRUE(T.isArch32Bit()); in TEST()
824 EXPECT_FALSE(T.isArch64Bit()); in TEST()
826 T.setArch(Triple::amdil64); in TEST()
827 EXPECT_FALSE(T.isArch16Bit()); in TEST()
828 EXPECT_FALSE(T.isArch32Bit()); in TEST()
829 EXPECT_TRUE(T.isArch64Bit()); in TEST()
831 T.setArch(Triple::hsail); in TEST()
832 EXPECT_FALSE(T.isArch16Bit()); in TEST()
833 EXPECT_TRUE(T.isArch32Bit()); in TEST()
834 EXPECT_FALSE(T.isArch64Bit()); in TEST()
836 T.setArch(Triple::hsail64); in TEST()
837 EXPECT_FALSE(T.isArch16Bit()); in TEST()
838 EXPECT_FALSE(T.isArch32Bit()); in TEST()
839 EXPECT_TRUE(T.isArch64Bit()); in TEST()
841 T.setArch(Triple::spir); in TEST()
842 EXPECT_FALSE(T.isArch16Bit()); in TEST()
843 EXPECT_TRUE(T.isArch32Bit()); in TEST()
844 EXPECT_FALSE(T.isArch64Bit()); in TEST()
846 T.setArch(Triple::spir64); in TEST()
847 EXPECT_FALSE(T.isArch16Bit()); in TEST()
848 EXPECT_FALSE(T.isArch32Bit()); in TEST()
849 EXPECT_TRUE(T.isArch64Bit()); in TEST()
851 T.setArch(Triple::sparc); in TEST()
852 EXPECT_FALSE(T.isArch16Bit()); in TEST()
853 EXPECT_TRUE(T.isArch32Bit()); in TEST()
854 EXPECT_FALSE(T.isArch64Bit()); in TEST()
856 T.setArch(Triple::sparcel); in TEST()
857 EXPECT_FALSE(T.isArch16Bit()); in TEST()
858 EXPECT_TRUE(T.isArch32Bit()); in TEST()
859 EXPECT_FALSE(T.isArch64Bit()); in TEST()
861 T.setArch(Triple::sparcv9); in TEST()
862 EXPECT_FALSE(T.isArch16Bit()); in TEST()
863 EXPECT_FALSE(T.isArch32Bit()); in TEST()
864 EXPECT_TRUE(T.isArch64Bit()); in TEST()
866 T.setArch(Triple::wasm32); in TEST()
867 EXPECT_FALSE(T.isArch16Bit()); in TEST()
868 EXPECT_TRUE(T.isArch32Bit()); in TEST()
869 EXPECT_FALSE(T.isArch64Bit()); in TEST()
871 T.setArch(Triple::wasm64); in TEST()
872 EXPECT_FALSE(T.isArch16Bit()); in TEST()
873 EXPECT_FALSE(T.isArch32Bit()); in TEST()
874 EXPECT_TRUE(T.isArch64Bit()); in TEST()
876 T.setArch(Triple::avr); in TEST()
877 EXPECT_TRUE(T.isArch16Bit()); in TEST()
878 EXPECT_FALSE(T.isArch32Bit()); in TEST()
879 EXPECT_FALSE(T.isArch64Bit()); in TEST()
881 T.setArch(Triple::lanai); in TEST()
882 EXPECT_FALSE(T.isArch16Bit()); in TEST()
883 EXPECT_TRUE(T.isArch32Bit()); in TEST()
884 EXPECT_FALSE(T.isArch64Bit()); in TEST()
886 T.setArch(Triple::riscv32); in TEST()
887 EXPECT_FALSE(T.isArch16Bit()); in TEST()
888 EXPECT_TRUE(T.isArch32Bit()); in TEST()
889 EXPECT_FALSE(T.isArch64Bit()); in TEST()
890 EXPECT_TRUE(T.isRISCV()); in TEST()
892 T.setArch(Triple::riscv64); in TEST()
893 EXPECT_FALSE(T.isArch16Bit()); in TEST()
894 EXPECT_FALSE(T.isArch32Bit()); in TEST()
895 EXPECT_TRUE(T.isArch64Bit()); in TEST()
896 EXPECT_TRUE(T.isRISCV()); in TEST()
898 T.setArch(Triple::csky); in TEST()
899 EXPECT_FALSE(T.isArch16Bit()); in TEST()
900 EXPECT_TRUE(T.isArch32Bit()); in TEST()
901 EXPECT_FALSE(T.isArch64Bit()); in TEST()
902 EXPECT_TRUE(T.isCSKY()); in TEST()
906 Triple T; in TEST() local
907 EXPECT_EQ(Triple::UnknownArch, T.get32BitArchVariant().getArch()); in TEST()
908 EXPECT_EQ(Triple::UnknownArch, T.get64BitArchVariant().getArch()); in TEST()
910 T.setArch(Triple::UnknownArch); in TEST()
911 EXPECT_EQ(Triple::UnknownArch, T.get32BitArchVariant().getArch()); in TEST()
912 EXPECT_EQ(Triple::UnknownArch, T.get64BitArchVariant().getArch()); in TEST()
914 T.setArch(Triple::mips); in TEST()
915 EXPECT_EQ(Triple::mips, T.get32BitArchVariant().getArch()); in TEST()
916 EXPECT_EQ(Triple::mips64, T.get64BitArchVariant().getArch()); in TEST()
918 T.setArch(Triple::mipsel); in TEST()
919 EXPECT_EQ(Triple::mipsel, T.get32BitArchVariant().getArch()); in TEST()
920 EXPECT_EQ(Triple::mips64el, T.get64BitArchVariant().getArch()); in TEST()
922 T.setArch(Triple::ppc); in TEST()
923 EXPECT_EQ(Triple::ppc, T.get32BitArchVariant().getArch()); in TEST()
924 EXPECT_EQ(Triple::ppc64, T.get64BitArchVariant().getArch()); in TEST()
926 T.setArch(Triple::nvptx); in TEST()
927 EXPECT_EQ(Triple::nvptx, T.get32BitArchVariant().getArch()); in TEST()
928 EXPECT_EQ(Triple::nvptx64, T.get64BitArchVariant().getArch()); in TEST()
930 T.setArch(Triple::sparc); in TEST()
931 EXPECT_EQ(Triple::sparc, T.get32BitArchVariant().getArch()); in TEST()
932 EXPECT_EQ(Triple::sparcv9, T.get64BitArchVariant().getArch()); in TEST()
934 T.setArch(Triple::x86); in TEST()
935 EXPECT_EQ(Triple::x86, T.get32BitArchVariant().getArch()); in TEST()
936 EXPECT_EQ(Triple::x86_64, T.get64BitArchVariant().getArch()); in TEST()
938 T.setArch(Triple::mips64); in TEST()
939 EXPECT_EQ(Triple::mips, T.get32BitArchVariant().getArch()); in TEST()
940 EXPECT_EQ(Triple::mips64, T.get64BitArchVariant().getArch()); in TEST()
942 T.setArch(Triple::mips64el); in TEST()
943 EXPECT_EQ(Triple::mipsel, T.get32BitArchVariant().getArch()); in TEST()
944 EXPECT_EQ(Triple::mips64el, T.get64BitArchVariant().getArch()); in TEST()
946 T.setArch(Triple::ppc64); in TEST()
947 EXPECT_EQ(Triple::ppc, T.get32BitArchVariant().getArch()); in TEST()
948 EXPECT_EQ(Triple::ppc64, T.get64BitArchVariant().getArch()); in TEST()
950 T.setArch(Triple::nvptx64); in TEST()
951 EXPECT_EQ(Triple::nvptx, T.get32BitArchVariant().getArch()); in TEST()
952 EXPECT_EQ(Triple::nvptx64, T.get64BitArchVariant().getArch()); in TEST()
954 T.setArch(Triple::sparcv9); in TEST()
955 EXPECT_EQ(Triple::sparc, T.get32BitArchVariant().getArch()); in TEST()
956 EXPECT_EQ(Triple::sparcv9, T.get64BitArchVariant().getArch()); in TEST()
958 T.setArch(Triple::x86_64); in TEST()
959 EXPECT_EQ(Triple::x86, T.get32BitArchVariant().getArch()); in TEST()
960 EXPECT_EQ(Triple::x86_64, T.get64BitArchVariant().getArch()); in TEST()
962 T.setArch(Triple::amdil); in TEST()
963 EXPECT_EQ(Triple::amdil, T.get32BitArchVariant().getArch()); in TEST()
964 EXPECT_EQ(Triple::amdil64, T.get64BitArchVariant().getArch()); in TEST()
966 T.setArch(Triple::amdil64); in TEST()
967 EXPECT_EQ(Triple::amdil, T.get32BitArchVariant().getArch()); in TEST()
968 EXPECT_EQ(Triple::amdil64, T.get64BitArchVariant().getArch()); in TEST()
970 T.setArch(Triple::hsail); in TEST()
971 EXPECT_EQ(Triple::hsail, T.get32BitArchVariant().getArch()); in TEST()
972 EXPECT_EQ(Triple::hsail64, T.get64BitArchVariant().getArch()); in TEST()
974 T.setArch(Triple::hsail64); in TEST()
975 EXPECT_EQ(Triple::hsail, T.get32BitArchVariant().getArch()); in TEST()
976 EXPECT_EQ(Triple::hsail64, T.get64BitArchVariant().getArch()); in TEST()
978 T.setArch(Triple::spir); in TEST()
979 EXPECT_EQ(Triple::spir, T.get32BitArchVariant().getArch()); in TEST()
980 EXPECT_EQ(Triple::spir64, T.get64BitArchVariant().getArch()); in TEST()
982 T.setArch(Triple::spir64); in TEST()
983 EXPECT_EQ(Triple::spir, T.get32BitArchVariant().getArch()); in TEST()
984 EXPECT_EQ(Triple::spir64, T.get64BitArchVariant().getArch()); in TEST()
986 T.setArch(Triple::wasm32); in TEST()
987 EXPECT_EQ(Triple::wasm32, T.get32BitArchVariant().getArch()); in TEST()
988 EXPECT_EQ(Triple::wasm64, T.get64BitArchVariant().getArch()); in TEST()
990 T.setArch(Triple::wasm64); in TEST()
991 EXPECT_EQ(Triple::wasm32, T.get32BitArchVariant().getArch()); in TEST()
992 EXPECT_EQ(Triple::wasm64, T.get64BitArchVariant().getArch()); in TEST()
994 T.setArch(Triple::riscv32); in TEST()
995 EXPECT_EQ(Triple::riscv32, T.get32BitArchVariant().getArch()); in TEST()
996 EXPECT_EQ(Triple::riscv64, T.get64BitArchVariant().getArch()); in TEST()
998 T.setArch(Triple::riscv64); in TEST()
999 EXPECT_EQ(Triple::riscv32, T.get32BitArchVariant().getArch()); in TEST()
1000 EXPECT_EQ(Triple::riscv64, T.get64BitArchVariant().getArch()); in TEST()
1002 T.setArch(Triple::csky); in TEST()
1003 EXPECT_EQ(Triple::csky, T.get32BitArchVariant().getArch()); in TEST()
1004 EXPECT_EQ(Triple::UnknownArch, T.get64BitArchVariant().getArch()); in TEST()
1006 T.setArch(Triple::thumbeb); in TEST()
1007 EXPECT_EQ(Triple::thumbeb, T.get32BitArchVariant().getArch()); in TEST()
1008 EXPECT_EQ(Triple::aarch64_be, T.get64BitArchVariant().getArch()); in TEST()
1010 T.setArch(Triple::thumb); in TEST()
1011 EXPECT_EQ(Triple::thumb, T.get32BitArchVariant().getArch()); in TEST()
1012 EXPECT_EQ(Triple::aarch64, T.get64BitArchVariant().getArch()); in TEST()
1014 T.setArch(Triple::aarch64); in TEST()
1015 EXPECT_EQ(Triple::arm, T.get32BitArchVariant().getArch()); in TEST()
1016 EXPECT_EQ(Triple::aarch64, T.get64BitArchVariant().getArch()); in TEST()
1018 T.setArch(Triple::aarch64_be); in TEST()
1019 EXPECT_EQ(Triple::armeb, T.get32BitArchVariant().getArch()); in TEST()
1020 EXPECT_EQ(Triple::aarch64_be, T.get64BitArchVariant().getArch()); in TEST()
1022 T.setArch(Triple::renderscript32); in TEST()
1023 EXPECT_EQ(Triple::renderscript32, T.get32BitArchVariant().getArch()); in TEST()
1024 EXPECT_EQ(Triple::renderscript64, T.get64BitArchVariant().getArch()); in TEST()
1026 T.setArch(Triple::renderscript64); in TEST()
1027 EXPECT_EQ(Triple::renderscript32, T.get32BitArchVariant().getArch()); in TEST()
1028 EXPECT_EQ(Triple::renderscript64, T.get64BitArchVariant().getArch()); in TEST()
1030 T.setArch(Triple::le32); in TEST()
1031 EXPECT_EQ(Triple::le32, T.get32BitArchVariant().getArch()); in TEST()
1032 EXPECT_EQ(Triple::le64, T.get64BitArchVariant().getArch()); in TEST()
1034 T.setArch(Triple::le64); in TEST()
1035 EXPECT_EQ(Triple::le32, T.get32BitArchVariant().getArch()); in TEST()
1036 EXPECT_EQ(Triple::le64, T.get64BitArchVariant().getArch()); in TEST()
1038 T.setArch(Triple::armeb); in TEST()
1039 EXPECT_EQ(Triple::armeb, T.get32BitArchVariant().getArch()); in TEST()
1040 EXPECT_EQ(Triple::aarch64_be, T.get64BitArchVariant().getArch()); in TEST()
1042 T.setArch(Triple::arm); in TEST()
1043 EXPECT_EQ(Triple::arm, T.get32BitArchVariant().getArch()); in TEST()
1044 EXPECT_EQ(Triple::aarch64, T.get64BitArchVariant().getArch()); in TEST()
1046 T.setArch(Triple::systemz); in TEST()
1047 EXPECT_EQ(Triple::UnknownArch, T.get32BitArchVariant().getArch()); in TEST()
1048 EXPECT_EQ(Triple::systemz, T.get64BitArchVariant().getArch()); in TEST()
1050 T.setArch(Triple::xcore); in TEST()
1051 EXPECT_EQ(Triple::xcore, T.get32BitArchVariant().getArch()); in TEST()
1052 EXPECT_EQ(Triple::UnknownArch, T.get64BitArchVariant().getArch()); in TEST()
1056 Triple T; in TEST() local
1057 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1058 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1060 T.setArch(Triple::UnknownArch); in TEST()
1061 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1062 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1064 T.setArch(Triple::aarch64_be); in TEST()
1065 EXPECT_EQ(Triple::aarch64_be, T.getBigEndianArchVariant().getArch()); in TEST()
1066 EXPECT_EQ(Triple::aarch64, T.getLittleEndianArchVariant().getArch()); in TEST()
1068 T.setArch(Triple::aarch64); in TEST()
1069 EXPECT_EQ(Triple::aarch64_be, T.getBigEndianArchVariant().getArch()); in TEST()
1070 EXPECT_EQ(Triple::aarch64, T.getLittleEndianArchVariant().getArch()); in TEST()
1072 T.setArch(Triple::armeb); in TEST()
1073 EXPECT_EQ(Triple::armeb, T.getBigEndianArchVariant().getArch()); in TEST()
1074 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1076 T.setArch(Triple::arm); in TEST()
1077 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1078 EXPECT_EQ(Triple::arm, T.getLittleEndianArchVariant().getArch()); in TEST()
1079 T = Triple("arm"); in TEST()
1080 EXPECT_TRUE(T.isLittleEndian()); in TEST()
1081 T = Triple("thumb"); in TEST()
1082 EXPECT_TRUE(T.isLittleEndian()); in TEST()
1083 T = Triple("armeb"); in TEST()
1084 EXPECT_FALSE(T.isLittleEndian()); in TEST()
1085 T = Triple("thumbeb"); in TEST()
1086 EXPECT_FALSE(T.isLittleEndian()); in TEST()
1088 T.setArch(Triple::bpfeb); in TEST()
1089 EXPECT_EQ(Triple::bpfeb, T.getBigEndianArchVariant().getArch()); in TEST()
1090 EXPECT_EQ(Triple::bpfel, T.getLittleEndianArchVariant().getArch()); in TEST()
1092 T.setArch(Triple::bpfel); in TEST()
1093 EXPECT_EQ(Triple::bpfeb, T.getBigEndianArchVariant().getArch()); in TEST()
1094 EXPECT_EQ(Triple::bpfel, T.getLittleEndianArchVariant().getArch()); in TEST()
1096 T.setArch(Triple::mips64); in TEST()
1097 EXPECT_EQ(Triple::mips64, T.getBigEndianArchVariant().getArch()); in TEST()
1098 EXPECT_EQ(Triple::mips64el, T.getLittleEndianArchVariant().getArch()); in TEST()
1100 T.setArch(Triple::mips64el); in TEST()
1101 EXPECT_EQ(Triple::mips64, T.getBigEndianArchVariant().getArch()); in TEST()
1102 EXPECT_EQ(Triple::mips64el, T.getLittleEndianArchVariant().getArch()); in TEST()
1104 T.setArch(Triple::mips); in TEST()
1105 EXPECT_EQ(Triple::mips, T.getBigEndianArchVariant().getArch()); in TEST()
1106 EXPECT_EQ(Triple::mipsel, T.getLittleEndianArchVariant().getArch()); in TEST()
1108 T.setArch(Triple::mipsel); in TEST()
1109 EXPECT_EQ(Triple::mips, T.getBigEndianArchVariant().getArch()); in TEST()
1110 EXPECT_EQ(Triple::mipsel, T.getLittleEndianArchVariant().getArch()); in TEST()
1112 T.setArch(Triple::ppc); in TEST()
1113 EXPECT_EQ(Triple::ppc, T.getBigEndianArchVariant().getArch()); in TEST()
1114 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1116 T.setArch(Triple::ppc64); in TEST()
1117 EXPECT_EQ(Triple::ppc64, T.getBigEndianArchVariant().getArch()); in TEST()
1118 EXPECT_EQ(Triple::ppc64le, T.getLittleEndianArchVariant().getArch()); in TEST()
1120 T.setArch(Triple::ppc64le); in TEST()
1121 EXPECT_EQ(Triple::ppc64, T.getBigEndianArchVariant().getArch()); in TEST()
1122 EXPECT_EQ(Triple::ppc64le, T.getLittleEndianArchVariant().getArch()); in TEST()
1124 T.setArch(Triple::sparc); in TEST()
1125 EXPECT_EQ(Triple::sparc, T.getBigEndianArchVariant().getArch()); in TEST()
1126 EXPECT_EQ(Triple::sparcel, T.getLittleEndianArchVariant().getArch()); in TEST()
1128 T.setArch(Triple::sparcel); in TEST()
1129 EXPECT_EQ(Triple::sparc, T.getBigEndianArchVariant().getArch()); in TEST()
1130 EXPECT_EQ(Triple::sparcel, T.getLittleEndianArchVariant().getArch()); in TEST()
1132 T.setArch(Triple::thumb); in TEST()
1133 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1134 EXPECT_EQ(Triple::thumb, T.getLittleEndianArchVariant().getArch()); in TEST()
1136 T.setArch(Triple::thumbeb); in TEST()
1137 EXPECT_EQ(Triple::thumbeb, T.getBigEndianArchVariant().getArch()); in TEST()
1138 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1140 T.setArch(Triple::lanai); in TEST()
1141 EXPECT_EQ(Triple::lanai, T.getBigEndianArchVariant().getArch()); in TEST()
1142 EXPECT_EQ(Triple::UnknownArch, T.getLittleEndianArchVariant().getArch()); in TEST()
1144 T.setArch(Triple::tcele); in TEST()
1145 EXPECT_EQ(Triple::tce, T.getBigEndianArchVariant().getArch()); in TEST()
1146 EXPECT_EQ(Triple::tcele, T.getLittleEndianArchVariant().getArch()); in TEST()
1148 T.setArch(Triple::tce); in TEST()
1149 EXPECT_EQ(Triple::tce, T.getBigEndianArchVariant().getArch()); in TEST()
1150 EXPECT_EQ(Triple::tcele, T.getLittleEndianArchVariant().getArch()); in TEST()
1152 T.setArch(Triple::le32); in TEST()
1153 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1154 EXPECT_EQ(Triple::le32, T.getLittleEndianArchVariant().getArch()); in TEST()
1156 T.setArch(Triple::le64); in TEST()
1157 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1158 EXPECT_EQ(Triple::le64, T.getLittleEndianArchVariant().getArch()); in TEST()
1160 T.setArch(Triple::csky); in TEST()
1161 EXPECT_EQ(Triple::UnknownArch, T.getBigEndianArchVariant().getArch()); in TEST()
1162 EXPECT_EQ(Triple::csky, T.getLittleEndianArchVariant().getArch()); in TEST()
1166 Triple T; in TEST() local
1169 T = Triple("i386-apple-darwin9"); in TEST()
1170 EXPECT_TRUE(T.isMacOSX()); in TEST()
1171 EXPECT_FALSE(T.isiOS()); in TEST()
1172 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1173 EXPECT_TRUE(T.isArch32Bit()); in TEST()
1174 EXPECT_FALSE(T.isArch64Bit()); in TEST()
1175 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1179 T.getiOSVersion(Major, Minor, Micro); in TEST()
1184 T = Triple("x86_64-apple-darwin9"); in TEST()
1185 EXPECT_TRUE(T.isMacOSX()); in TEST()
1186 EXPECT_FALSE(T.isiOS()); in TEST()
1187 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1188 EXPECT_FALSE(T.isArch32Bit()); in TEST()
1189 EXPECT_TRUE(T.isArch64Bit()); in TEST()
1190 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1194 T.getiOSVersion(Major, Minor, Micro); in TEST()
1199 T = Triple("x86_64-apple-macosx"); in TEST()
1200 EXPECT_TRUE(T.isMacOSX()); in TEST()
1201 EXPECT_FALSE(T.isiOS()); in TEST()
1202 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1203 EXPECT_FALSE(T.isArch32Bit()); in TEST()
1204 EXPECT_TRUE(T.isArch64Bit()); in TEST()
1205 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1209 T.getiOSVersion(Major, Minor, Micro); in TEST()
1214 T = Triple("x86_64-apple-macosx10.7"); in TEST()
1215 EXPECT_TRUE(T.isMacOSX()); in TEST()
1216 EXPECT_FALSE(T.isiOS()); in TEST()
1217 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1218 EXPECT_FALSE(T.isArch32Bit()); in TEST()
1219 EXPECT_TRUE(T.isArch64Bit()); in TEST()
1220 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1224 T.getiOSVersion(Major, Minor, Micro); in TEST()
1229 T = Triple("x86_64-apple-macos11.0"); in TEST()
1230 EXPECT_TRUE(T.isMacOSX()); in TEST()
1231 EXPECT_FALSE(T.isiOS()); in TEST()
1232 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1233 EXPECT_FALSE(T.isArch32Bit()); in TEST()
1234 EXPECT_TRUE(T.isArch64Bit()); in TEST()
1235 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1240 T = Triple("arm64-apple-macosx11.5.8"); in TEST()
1241 EXPECT_TRUE(T.isMacOSX()); in TEST()
1242 EXPECT_FALSE(T.isiOS()); in TEST()
1243 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1244 EXPECT_FALSE(T.isArch32Bit()); in TEST()
1245 EXPECT_TRUE(T.isArch64Bit()); in TEST()
1246 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1253 T = Triple("x86_64-apple-macos10.16"); in TEST()
1254 EXPECT_TRUE(T.isMacOSX()); in TEST()
1255 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1260 T = Triple("x86_64-apple-darwin20"); in TEST()
1261 EXPECT_TRUE(T.isMacOSX()); in TEST()
1262 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1267 T = Triple("armv7-apple-ios"); in TEST()
1268 EXPECT_FALSE(T.isMacOSX()); in TEST()
1269 EXPECT_TRUE(T.isiOS()); in TEST()
1270 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1271 EXPECT_TRUE(T.isArch32Bit()); in TEST()
1272 EXPECT_FALSE(T.isArch64Bit()); in TEST()
1273 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1277 T.getiOSVersion(Major, Minor, Micro); in TEST()
1282 T = Triple("armv7-apple-ios7.0"); in TEST()
1283 EXPECT_FALSE(T.isMacOSX()); in TEST()
1284 EXPECT_TRUE(T.isiOS()); in TEST()
1285 EXPECT_FALSE(T.isArch16Bit()); in TEST()
1286 EXPECT_TRUE(T.isArch32Bit()); in TEST()
1287 EXPECT_FALSE(T.isArch64Bit()); in TEST()
1288 T.getMacOSXVersion(Major, Minor, Micro); in TEST()
1292 T.getiOSVersion(Major, Minor, Micro); in TEST()
1296 EXPECT_FALSE(T.isSimulatorEnvironment()); in TEST()
1298 T = Triple("x86_64-apple-ios10.3-simulator"); in TEST()
1299 EXPECT_TRUE(T.isiOS()); in TEST()
1300 T.getiOSVersion(Major, Minor, Micro); in TEST()
1304 EXPECT_TRUE(T.isSimulatorEnvironment()); in TEST()
1305 EXPECT_FALSE(T.isMacCatalystEnvironment()); in TEST()
1307 T = Triple("x86_64-apple-ios13.0-macabi"); in TEST()
1308 EXPECT_TRUE(T.isiOS()); in TEST()
1309 T.getiOSVersion(Major, Minor, Micro); in TEST()
1313 EXPECT_TRUE(T.getEnvironment() == Triple::MacABI); in TEST()
1314 EXPECT_TRUE(T.isMacCatalystEnvironment()); in TEST()
1315 EXPECT_FALSE(T.isSimulatorEnvironment()); in TEST()
1319 Triple T = Triple("x86_64-apple-macos11"); in TEST() local
1320 EXPECT_TRUE(T.isMacOSXVersionLT(11, 1, 0)); in TEST()
1321 EXPECT_FALSE(T.isMacOSXVersionLT(10, 15, 0)); in TEST()
1323 T = Triple("x86_64-apple-darwin20"); in TEST()
1324 EXPECT_TRUE(T.isMacOSXVersionLT(11, 1, 0)); in TEST()
1325 EXPECT_FALSE(T.isMacOSXVersionLT(11, 0, 0)); in TEST()
1326 EXPECT_FALSE(T.isMacOSXVersionLT(10, 15, 0)); in TEST()
1404 Triple T = Triple(""); in TEST() local
1405 T.setObjectFormat(Triple::ELF); in TEST()
1406 EXPECT_EQ(Triple::ELF, T.getObjectFormat()); in TEST()
1408 T.setObjectFormat(Triple::MachO); in TEST()
1409 EXPECT_EQ(Triple::MachO, T.getObjectFormat()); in TEST()
1411 T.setObjectFormat(Triple::XCOFF); in TEST()
1412 EXPECT_EQ(Triple::XCOFF, T.getObjectFormat()); in TEST()
1414 T.setObjectFormat(Triple::GOFF); in TEST()
1415 EXPECT_EQ(Triple::GOFF, T.getObjectFormat()); in TEST()
1548 Triple T; in TEST() local
1549 T = Triple("armv6--netbsd-eabi"); in TEST()
1550 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
1551 T = Triple("armv6eb--netbsd-eabi"); in TEST()
1552 EXPECT_EQ(Triple::armeb, T.getArch()); in TEST()
1553 T = Triple("armv7-suse-linux-gnueabihf"); in TEST()
1554 EXPECT_EQ(Triple::GNUEABIHF, T.getEnvironment()); in TEST()
1560 Triple T = Triple("arm"); in TEST() local
1561 EXPECT_EQ(Triple::arm, T.getArch()); in TEST()
1564 Triple T = Triple("armeb"); in TEST() local
1565 EXPECT_EQ(Triple::armeb, T.getArch()); in TEST()
1569 Triple T = Triple("thumb"); in TEST() local
1570 EXPECT_EQ(Triple::thumb, T.getArch()); in TEST()
1573 Triple T = Triple("thumbeb"); in TEST() local
1574 EXPECT_EQ(Triple::thumbeb, T.getArch()); in TEST()
1578 Triple T = Triple("arm64"); in TEST() local
1579 EXPECT_EQ(Triple::aarch64, T.getArch()); in TEST()
1582 Triple T = Triple("arm64_32"); in TEST() local
1583 EXPECT_EQ(Triple::aarch64_32, T.getArch()); in TEST()
1586 Triple T = Triple("aarch64"); in TEST() local
1587 EXPECT_EQ(Triple::aarch64, T.getArch()); in TEST()
1590 Triple T = Triple("aarch64_be"); in TEST() local
1591 EXPECT_EQ(Triple::aarch64_be, T.getArch()); in TEST()
1594 Triple T = Triple("arm64e"); in TEST() local
1595 EXPECT_EQ(Triple::aarch64, T.getArch()); in TEST()
1596 EXPECT_EQ(Triple::AArch64SubArch_arm64e, T.getSubArch()); in TEST()