Lines Matching refs:normalize
267 EXPECT_EQ("", Triple::normalize("")); in TEST()
268 EXPECT_EQ("-", Triple::normalize("-")); in TEST()
269 EXPECT_EQ("--", Triple::normalize("--")); in TEST()
270 EXPECT_EQ("---", Triple::normalize("---")); in TEST()
271 EXPECT_EQ("----", Triple::normalize("----")); in TEST()
273 EXPECT_EQ("a", Triple::normalize("a")); in TEST()
274 EXPECT_EQ("a-b", Triple::normalize("a-b")); in TEST()
275 EXPECT_EQ("a-b-c", Triple::normalize("a-b-c")); in TEST()
276 EXPECT_EQ("a-b-c-d", Triple::normalize("a-b-c-d")); in TEST()
278 EXPECT_EQ("i386-b-c", Triple::normalize("i386-b-c")); in TEST()
279 EXPECT_EQ("i386-a-c", Triple::normalize("a-i386-c")); in TEST()
280 EXPECT_EQ("i386-a-b", Triple::normalize("a-b-i386")); in TEST()
281 EXPECT_EQ("i386-a-b-c", Triple::normalize("a-b-c-i386")); in TEST()
283 EXPECT_EQ("a-pc-c", Triple::normalize("a-pc-c")); in TEST()
284 EXPECT_EQ("-pc-b-c", Triple::normalize("pc-b-c")); in TEST()
285 EXPECT_EQ("a-pc-b", Triple::normalize("a-b-pc")); in TEST()
286 EXPECT_EQ("a-pc-b-c", Triple::normalize("a-b-c-pc")); in TEST()
288 EXPECT_EQ("a-b-linux", Triple::normalize("a-b-linux")); in TEST()
289 EXPECT_EQ("--linux-b-c", Triple::normalize("linux-b-c")); in TEST()
290 EXPECT_EQ("a--linux-c", Triple::normalize("a-linux-c")); in TEST()
292 EXPECT_EQ("i386-pc-a", Triple::normalize("a-pc-i386")); in TEST()
293 EXPECT_EQ("i386-pc-", Triple::normalize("-pc-i386")); in TEST()
294 EXPECT_EQ("-pc-linux-c", Triple::normalize("linux-pc-c")); in TEST()
295 EXPECT_EQ("-pc-linux", Triple::normalize("linux-pc-")); in TEST()
297 EXPECT_EQ("i386", Triple::normalize("i386")); in TEST()
298 EXPECT_EQ("-pc", Triple::normalize("pc")); in TEST()
299 EXPECT_EQ("--linux", Triple::normalize("linux")); in TEST()
301 EXPECT_EQ("x86_64--linux-gnu", Triple::normalize("x86_64-gnu-linux")); in TEST()
318 EXPECT_EQ(E, Triple::normalize(Join(C[0], C[1], C[2]))); in TEST()
320 EXPECT_EQ(E, Triple::normalize(Join(C[0], C[2], C[1]))); in TEST()
321 EXPECT_EQ(E, Triple::normalize(Join(C[1], C[2], C[0]))); in TEST()
322 EXPECT_EQ(E, Triple::normalize(Join(C[1], C[0], C[2]))); in TEST()
323 EXPECT_EQ(E, Triple::normalize(Join(C[2], C[0], C[1]))); in TEST()
324 EXPECT_EQ(E, Triple::normalize(Join(C[2], C[1], C[0]))); in TEST()
331 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[1], C[2], C[3]))); in TEST()
333 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[1], C[3], C[2]))); in TEST()
334 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[2], C[3], C[1]))); in TEST()
335 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[2], C[1], C[3]))); in TEST()
336 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[3], C[1], C[2]))); in TEST()
337 EXPECT_EQ(F, Triple::normalize(Join(C[0], C[3], C[2], C[1]))); in TEST()
338 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[2], C[3], C[0]))); in TEST()
339 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[2], C[0], C[3]))); in TEST()
340 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[3], C[0], C[2]))); in TEST()
341 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[3], C[2], C[0]))); in TEST()
342 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[0], C[2], C[3]))); in TEST()
343 EXPECT_EQ(F, Triple::normalize(Join(C[1], C[0], C[3], C[2]))); in TEST()
344 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[3], C[0], C[1]))); in TEST()
345 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[3], C[1], C[0]))); in TEST()
346 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[0], C[1], C[3]))); in TEST()
347 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[0], C[3], C[1]))); in TEST()
348 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[1], C[3], C[0]))); in TEST()
349 EXPECT_EQ(F, Triple::normalize(Join(C[2], C[1], C[0], C[3]))); in TEST()
350 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[0], C[1], C[2]))); in TEST()
351 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[0], C[2], C[1]))); in TEST()
352 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[1], C[2], C[0]))); in TEST()
353 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[1], C[0], C[2]))); in TEST()
354 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[2], C[0], C[1]))); in TEST()
355 EXPECT_EQ(F, Triple::normalize(Join(C[3], C[2], C[1], C[0]))); in TEST()
363 EXPECT_EQ("i386--windows-gnu", Triple::normalize("i386-mingw32")); // i386-pc-mingw32 in TEST()
364 EXPECT_EQ("x86_64--linux-gnu", Triple::normalize("x86_64-linux-gnu")); // x86_64-pc-linux-gnu in TEST()
365 EXPECT_EQ("i486--linux-gnu", Triple::normalize("i486-linux-gnu")); // i486-pc-linux-gnu in TEST()
366 EXPECT_EQ("i386-redhat-linux", Triple::normalize("i386-redhat-linux")); // i386-redhat-linux-gnu in TEST()
367 EXPECT_EQ("i686--linux", Triple::normalize("i686-linux")); // i686-pc-linux-gnu in TEST()
368 EXPECT_EQ("arm-none--eabi", Triple::normalize("arm-none-eabi")); // arm-none-eabi in TEST()
823 Triple MSVCNormalized(Triple::normalize("i686-pc-windows-msvc-elf")); in TEST()
826 Triple GNUWindowsNormalized(Triple::normalize("i686-pc-windows-gnu-elf")); in TEST()
829 Triple CygnusNormalised(Triple::normalize("i686-pc-windows-cygnus-elf")); in TEST()
832 Triple CygwinNormalized(Triple::normalize("i686-pc-cygwin-elf")); in TEST()
841 EXPECT_EQ("i686-pc-windows-msvc", Triple::normalize("i686-pc-win32")); in TEST()
842 EXPECT_EQ("i686--windows-msvc", Triple::normalize("i686-win32")); in TEST()
843 EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-mingw32")); in TEST()
844 EXPECT_EQ("i686--windows-gnu", Triple::normalize("i686-mingw32")); in TEST()
845 EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-mingw32-w64")); in TEST()
846 EXPECT_EQ("i686--windows-gnu", Triple::normalize("i686-mingw32-w64")); in TEST()
847 EXPECT_EQ("i686-pc-windows-cygnus", Triple::normalize("i686-pc-cygwin")); in TEST()
848 EXPECT_EQ("i686--windows-cygnus", Triple::normalize("i686-cygwin")); in TEST()
850 EXPECT_EQ("x86_64-pc-windows-msvc", Triple::normalize("x86_64-pc-win32")); in TEST()
851 EXPECT_EQ("x86_64--windows-msvc", Triple::normalize("x86_64-win32")); in TEST()
852 EXPECT_EQ("x86_64-pc-windows-gnu", Triple::normalize("x86_64-pc-mingw32")); in TEST()
853 EXPECT_EQ("x86_64--windows-gnu", Triple::normalize("x86_64-mingw32")); in TEST()
854 EXPECT_EQ("x86_64-pc-windows-gnu", Triple::normalize("x86_64-pc-mingw32-w64")); in TEST()
855 EXPECT_EQ("x86_64--windows-gnu", Triple::normalize("x86_64-mingw32-w64")); in TEST()
857 EXPECT_EQ("i686-pc-windows-elf", Triple::normalize("i686-pc-win32-elf")); in TEST()
858 EXPECT_EQ("i686--windows-elf", Triple::normalize("i686-win32-elf")); in TEST()
859 EXPECT_EQ("i686-pc-windows-macho", Triple::normalize("i686-pc-win32-macho")); in TEST()
860 EXPECT_EQ("i686--windows-macho", Triple::normalize("i686-win32-macho")); in TEST()
862 EXPECT_EQ("x86_64-pc-windows-elf", Triple::normalize("x86_64-pc-win32-elf")); in TEST()
863 EXPECT_EQ("x86_64--windows-elf", Triple::normalize("x86_64-win32-elf")); in TEST()
864 EXPECT_EQ("x86_64-pc-windows-macho", Triple::normalize("x86_64-pc-win32-macho")); in TEST()
865 EXPECT_EQ("x86_64--windows-macho", Triple::normalize("x86_64-win32-macho")); in TEST()
868 Triple::normalize("i686-pc-windows-cygnus")); in TEST()
869 EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-windows-gnu")); in TEST()
870 EXPECT_EQ("i686-pc-windows-itanium", Triple::normalize("i686-pc-windows-itanium")); in TEST()
871 EXPECT_EQ("i686-pc-windows-msvc", Triple::normalize("i686-pc-windows-msvc")); in TEST()
873 EXPECT_EQ("i686-pc-windows-elf", Triple::normalize("i686-pc-windows-elf-elf")); in TEST()
1075 EXPECT_EQ("armv6--netbsd-eabi", Triple::normalize("armv6-netbsd-eabi")); in TEST()
1076 EXPECT_EQ("armv7--netbsd-eabi", Triple::normalize("armv7-netbsd-eabi")); in TEST()
1077 EXPECT_EQ("armv6eb--netbsd-eabi", Triple::normalize("armv6eb-netbsd-eabi")); in TEST()
1078 EXPECT_EQ("armv7eb--netbsd-eabi", Triple::normalize("armv7eb-netbsd-eabi")); in TEST()
1079 EXPECT_EQ("armv6--netbsd-eabihf", Triple::normalize("armv6-netbsd-eabihf")); in TEST()
1080 EXPECT_EQ("armv7--netbsd-eabihf", Triple::normalize("armv7-netbsd-eabihf")); in TEST()
1081 EXPECT_EQ("armv6eb--netbsd-eabihf", Triple::normalize("armv6eb-netbsd-eabihf")); in TEST()
1082 EXPECT_EQ("armv7eb--netbsd-eabihf", Triple::normalize("armv7eb-netbsd-eabihf")); in TEST()