reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/TripleTest.cpp
   77   T = Triple("i386-apple-darwin");
   78   EXPECT_EQ(Triple::x86, T.getArch());
   79   EXPECT_EQ(Triple::Apple, T.getVendor());
   80   EXPECT_EQ(Triple::Darwin, T.getOS());
   81   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
   83   T = Triple("i386-pc-elfiamcu");
   84   EXPECT_EQ(Triple::x86, T.getArch());
   85   EXPECT_EQ(Triple::PC, T.getVendor());
   86   EXPECT_EQ(Triple::ELFIAMCU, T.getOS());
   87   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
   89   T = Triple("i386-pc-contiki-unknown");
   90   EXPECT_EQ(Triple::x86, T.getArch());
   91   EXPECT_EQ(Triple::PC, T.getVendor());
   92   EXPECT_EQ(Triple::Contiki, T.getOS());
   93   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
   95   T = Triple("i386-pc-hurd-gnu");
   96   EXPECT_EQ(Triple::x86, T.getArch());
   97   EXPECT_EQ(Triple::PC, T.getVendor());
   98   EXPECT_EQ(Triple::Hurd, T.getOS());
   99   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  101   T = Triple("x86_64-pc-linux-gnu");
  102   EXPECT_EQ(Triple::x86_64, T.getArch());
  103   EXPECT_EQ(Triple::PC, T.getVendor());
  104   EXPECT_EQ(Triple::Linux, T.getOS());
  105   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  107   T = Triple("x86_64-pc-linux-musl");
  108   EXPECT_EQ(Triple::x86_64, T.getArch());
  109   EXPECT_EQ(Triple::PC, T.getVendor());
  110   EXPECT_EQ(Triple::Linux, T.getOS());
  111   EXPECT_EQ(Triple::Musl, T.getEnvironment());
  113   T = Triple("powerpc-bgp-linux");
  114   EXPECT_EQ(Triple::ppc, T.getArch());
  115   EXPECT_EQ(Triple::BGP, T.getVendor());
  116   EXPECT_EQ(Triple::Linux, T.getOS());
  117   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  119   T = Triple("powerpc-bgp-cnk");
  120   EXPECT_EQ(Triple::ppc, T.getArch());
  121   EXPECT_EQ(Triple::BGP, T.getVendor());
  122   EXPECT_EQ(Triple::CNK, T.getOS());
  123   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  125   T = Triple("ppc-bgp-linux");
  126   EXPECT_EQ(Triple::ppc, T.getArch());
  127   EXPECT_EQ(Triple::BGP, T.getVendor());
  128   EXPECT_EQ(Triple::Linux, T.getOS());
  129   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  131   T = Triple("ppc32-bgp-linux");
  132   EXPECT_EQ(Triple::ppc, T.getArch());
  133   EXPECT_EQ(Triple::BGP, T.getVendor());
  134   EXPECT_EQ(Triple::Linux, T.getOS());
  135   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  137   T = Triple("powerpc64-bgq-linux");
  138   EXPECT_EQ(Triple::ppc64, T.getArch());
  139   EXPECT_EQ(Triple::BGQ, T.getVendor());
  140   EXPECT_EQ(Triple::Linux, T.getOS());
  141   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  143   T = Triple("ppc64-bgq-linux");
  144   EXPECT_EQ(Triple::ppc64, T.getArch());
  145   EXPECT_EQ(Triple::BGQ, T.getVendor());
  146   EXPECT_EQ(Triple::Linux, T.getOS());
  148   T = Triple("powerpc-ibm-aix");
  149   EXPECT_EQ(Triple::ppc, T.getArch());
  150   EXPECT_EQ(Triple::IBM, T.getVendor());
  151   EXPECT_EQ(Triple::AIX, T.getOS());
  152   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  154   T = Triple("powerpc64-ibm-aix");
  155   EXPECT_EQ(Triple::ppc64, T.getArch());
  156   EXPECT_EQ(Triple::IBM, T.getVendor());
  157   EXPECT_EQ(Triple::AIX, T.getOS());
  158   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  160   T = Triple("powerpc-dunno-notsure");
  161   EXPECT_EQ(Triple::ppc, T.getArch());
  162   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  163   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  164   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  166   T = Triple("arm-none-none-eabi");
  167   EXPECT_EQ(Triple::arm, T.getArch());
  168   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  169   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  170   EXPECT_EQ(Triple::EABI, T.getEnvironment());
  172   T = Triple("arm-none-linux-musleabi");
  173   EXPECT_EQ(Triple::arm, T.getArch());
  174   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  175   EXPECT_EQ(Triple::Linux, T.getOS());
  176   EXPECT_EQ(Triple::MuslEABI, T.getEnvironment());
  178   T = Triple("armv6hl-none-linux-gnueabi");
  179   EXPECT_EQ(Triple::arm, T.getArch());
  180   EXPECT_EQ(Triple::Linux, T.getOS());
  181   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  182   EXPECT_EQ(Triple::GNUEABI, T.getEnvironment());
  184   T = Triple("armv7hl-none-linux-gnueabi");
  185   EXPECT_EQ(Triple::arm, T.getArch());
  186   EXPECT_EQ(Triple::Linux, T.getOS());
  187   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  188   EXPECT_EQ(Triple::GNUEABI, T.getEnvironment());
  190   T = Triple("amdil-unknown-unknown");
  191   EXPECT_EQ(Triple::amdil, T.getArch());
  192   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  193   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  195   T = Triple("amdil64-unknown-unknown");
  196   EXPECT_EQ(Triple::amdil64, T.getArch());
  197   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  198   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  200   T = Triple("hsail-unknown-unknown");
  201   EXPECT_EQ(Triple::hsail, T.getArch());
  202   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  203   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  205   T = Triple("hsail64-unknown-unknown");
  206   EXPECT_EQ(Triple::hsail64, T.getArch());
  207   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  208   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  210   T = Triple("sparcel-unknown-unknown");
  211   EXPECT_EQ(Triple::sparcel, T.getArch());
  212   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  213   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  215   T = Triple("spir-unknown-unknown");
  216   EXPECT_EQ(Triple::spir, T.getArch());
  217   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  218   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  220   T = Triple("spir64-unknown-unknown");
  221   EXPECT_EQ(Triple::spir64, T.getArch());
  222   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  223   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  225   T = Triple("x86_64-unknown-ananas");
  226   EXPECT_EQ(Triple::x86_64, T.getArch());
  227   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  228   EXPECT_EQ(Triple::Ananas, T.getOS());
  229   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  231   T = Triple("x86_64-unknown-cloudabi");
  232   EXPECT_EQ(Triple::x86_64, T.getArch());
  233   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  234   EXPECT_EQ(Triple::CloudABI, T.getOS());
  235   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  237   T = Triple("x86_64-unknown-fuchsia");
  238   EXPECT_EQ(Triple::x86_64, T.getArch());
  239   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  240   EXPECT_EQ(Triple::Fuchsia, T.getOS());
  241   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  243   T = Triple("x86_64-unknown-hermit");
  244   EXPECT_EQ(Triple::x86_64, T.getArch());
  245   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  246   EXPECT_EQ(Triple::HermitCore, T.getOS());
  247   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  249   T = Triple("wasm32-unknown-unknown");
  250   EXPECT_EQ(Triple::wasm32, T.getArch());
  251   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  252   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  253   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  255   T = Triple("wasm32-unknown-wasi");
  256   EXPECT_EQ(Triple::wasm32, T.getArch());
  257   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  258   EXPECT_EQ(Triple::WASI, T.getOS());
  259   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  261   T = Triple("wasm64-unknown-unknown");
  262   EXPECT_EQ(Triple::wasm64, T.getArch());
  263   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  264   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  265   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  267   T = Triple("wasm64-unknown-wasi");
  268   EXPECT_EQ(Triple::wasm64, T.getArch());
  269   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  270   EXPECT_EQ(Triple::WASI, T.getOS());
  271   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  273   T = Triple("avr-unknown-unknown");
  274   EXPECT_EQ(Triple::avr, T.getArch());
  275   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  276   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  277   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  279   T = Triple("avr");
  280   EXPECT_EQ(Triple::avr, T.getArch());
  281   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  282   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  283   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  285   T = Triple("lanai-unknown-unknown");
  286   EXPECT_EQ(Triple::lanai, T.getArch());
  287   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  288   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  289   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  291   T = Triple("lanai");
  292   EXPECT_EQ(Triple::lanai, T.getArch());
  293   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  294   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  295   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  297   T = Triple("amdgcn-mesa-mesa3d");
  298   EXPECT_EQ(Triple::amdgcn, T.getArch());
  299   EXPECT_EQ(Triple::Mesa, T.getVendor());
  300   EXPECT_EQ(Triple::Mesa3D, T.getOS());
  301   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  303   T = Triple("amdgcn-amd-amdhsa");
  304   EXPECT_EQ(Triple::amdgcn, T.getArch());
  305   EXPECT_EQ(Triple::AMD, T.getVendor());
  306   EXPECT_EQ(Triple::AMDHSA, T.getOS());
  307   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  309   T = Triple("amdgcn-amd-amdpal");
  310   EXPECT_EQ(Triple::amdgcn, T.getArch());
  311   EXPECT_EQ(Triple::AMD, T.getVendor());
  312   EXPECT_EQ(Triple::AMDPAL, T.getOS());
  313   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  315   T = Triple("riscv32-unknown-unknown");
  316   EXPECT_EQ(Triple::riscv32, T.getArch());
  317   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  318   EXPECT_EQ(Triple::UnknownOS, T.getOS());
  319   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  321   T = Triple("riscv64-unknown-linux");
  322   EXPECT_EQ(Triple::riscv64, T.getArch());
  323   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  324   EXPECT_EQ(Triple::Linux, T.getOS());
  325   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  327   T = Triple("riscv64-unknown-freebsd");
  328   EXPECT_EQ(Triple::riscv64, T.getArch());
  329   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  330   EXPECT_EQ(Triple::FreeBSD, T.getOS());
  331   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  333   T = Triple("riscv64-suse-linux");
  334   EXPECT_EQ(Triple::riscv64, T.getArch());
  335   EXPECT_EQ(Triple::SUSE, T.getVendor());
  336   EXPECT_EQ(Triple::Linux, T.getOS());
  337   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  339   T = Triple("armv7hl-suse-linux-gnueabi");
  340   EXPECT_EQ(Triple::arm, T.getArch());
  341   EXPECT_EQ(Triple::SUSE, T.getVendor());
  342   EXPECT_EQ(Triple::Linux, T.getOS());
  343   EXPECT_EQ(Triple::GNUEABI, T.getEnvironment());
  345   T = Triple("i586-pc-haiku");
  346   EXPECT_EQ(Triple::x86, T.getArch());
  347   EXPECT_EQ(Triple::PC, T.getVendor());
  348   EXPECT_EQ(Triple::Haiku, T.getOS());
  349   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  351   T = Triple("x86_64-unknown-haiku");
  352   EXPECT_EQ(Triple::x86_64, T.getArch());
  353   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  354   EXPECT_EQ(Triple::Haiku, T.getOS());
  355   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  357   T = Triple("mips-mti-linux-gnu");
  358   EXPECT_EQ(Triple::mips, T.getArch());
  359   EXPECT_EQ(Triple::MipsTechnologies, T.getVendor());
  360   EXPECT_EQ(Triple::Linux, T.getOS());
  361   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  363   T = Triple("mipsel-img-linux-gnu");
  364   EXPECT_EQ(Triple::mipsel, T.getArch());
  365   EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor());
  366   EXPECT_EQ(Triple::Linux, T.getOS());
  367   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  369   T = Triple("mips64-mti-linux-gnu");
  370   EXPECT_EQ(Triple::mips64, T.getArch());
  371   EXPECT_EQ(Triple::MipsTechnologies, T.getVendor());
  372   EXPECT_EQ(Triple::Linux, T.getOS());
  373   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  375   T = Triple("mips64el-img-linux-gnu");
  376   EXPECT_EQ(Triple::mips64el, T.getArch());
  377   EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor());
  378   EXPECT_EQ(Triple::Linux, T.getOS());
  379   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  381   T = Triple("mips64el-img-linux-gnuabin32");
  382   EXPECT_EQ(Triple::mips64el, T.getArch());
  383   EXPECT_EQ(Triple::ImaginationTechnologies, T.getVendor());
  384   EXPECT_EQ(Triple::Linux, T.getOS());
  385   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  387   T = Triple("mips64el-unknown-linux-gnuabi64");
  388   EXPECT_EQ(Triple::mips64el, T.getArch());
  389   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  390   EXPECT_EQ(Triple::Linux, T.getOS());
  391   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  392   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  393   T = Triple("mips64el");
  394   EXPECT_EQ(Triple::mips64el, T.getArch());
  395   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  396   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  397   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  399   T = Triple("mips64-unknown-linux-gnuabi64");
  400   EXPECT_EQ(Triple::mips64, T.getArch());
  401   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  402   EXPECT_EQ(Triple::Linux, T.getOS());
  403   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  404   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  405   T = Triple("mips64");
  406   EXPECT_EQ(Triple::mips64, T.getArch());
  407   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  408   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  409   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  411   T = Triple("mipsisa64r6el-unknown-linux-gnuabi64");
  412   EXPECT_EQ(Triple::mips64el, T.getArch());
  413   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  414   EXPECT_EQ(Triple::Linux, T.getOS());
  415   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  416   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  417   T = Triple("mips64r6el");
  418   EXPECT_EQ(Triple::mips64el, T.getArch());
  419   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  420   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  421   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  422   T = Triple("mipsisa64r6el");
  423   EXPECT_EQ(Triple::mips64el, T.getArch());
  424   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  425   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  426   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  428   T = Triple("mipsisa64r6-unknown-linux-gnuabi64");
  429   EXPECT_EQ(Triple::mips64, T.getArch());
  430   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  431   EXPECT_EQ(Triple::Linux, T.getOS());
  432   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  433   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  434   T = Triple("mips64r6");
  435   EXPECT_EQ(Triple::mips64, T.getArch());
  436   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  437   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  438   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  439   T = Triple("mipsisa64r6");
  440   EXPECT_EQ(Triple::mips64, T.getArch());
  441   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  442   EXPECT_EQ(Triple::GNUABI64, T.getEnvironment());
  443   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  445   T = Triple("mips64el-unknown-linux-gnuabin32");
  446   EXPECT_EQ(Triple::mips64el, T.getArch());
  447   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  448   EXPECT_EQ(Triple::Linux, T.getOS());
  449   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  450   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  451   T = Triple("mipsn32el");
  452   EXPECT_EQ(Triple::mips64el, T.getArch());
  453   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  454   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  455   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  457   T = Triple("mips64-unknown-linux-gnuabin32");
  458   EXPECT_EQ(Triple::mips64, T.getArch());
  459   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  460   EXPECT_EQ(Triple::Linux, T.getOS());
  461   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  462   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  463   T = Triple("mipsn32");
  464   EXPECT_EQ(Triple::mips64, T.getArch());
  465   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  466   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  467   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  469   T = Triple("mipsisa64r6el-unknown-linux-gnuabin32");
  470   EXPECT_EQ(Triple::mips64el, T.getArch());
  471   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  472   EXPECT_EQ(Triple::Linux, T.getOS());
  473   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  474   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  475   T = Triple("mipsn32r6el");
  476   EXPECT_EQ(Triple::mips64el, T.getArch());
  477   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  478   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  479   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  481   T = Triple("mipsisa64r6-unknown-linux-gnuabin32");
  482   EXPECT_EQ(Triple::mips64, T.getArch());
  483   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  484   EXPECT_EQ(Triple::Linux, T.getOS());
  485   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  486   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  487   T = Triple("mipsn32r6");
  488   EXPECT_EQ(Triple::mips64, T.getArch());
  489   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  490   EXPECT_EQ(Triple::GNUABIN32, T.getEnvironment());
  491   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  493   T = Triple("mipsel-unknown-linux-gnu");
  494   EXPECT_EQ(Triple::mipsel, T.getArch());
  495   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  496   EXPECT_EQ(Triple::Linux, T.getOS());
  497   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  498   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  499   T = Triple("mipsel");
  500   EXPECT_EQ(Triple::mipsel, T.getArch());
  501   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  502   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  503   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  505   T = Triple("mips-unknown-linux-gnu");
  506   EXPECT_EQ(Triple::mips, T.getArch());
  507   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  508   EXPECT_EQ(Triple::Linux, T.getOS());
  509   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  510   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  511   T = Triple("mips");
  512   EXPECT_EQ(Triple::mips, T.getArch());
  513   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  514   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  515   EXPECT_EQ(Triple::NoSubArch, T.getSubArch());
  517   T = Triple("mipsisa32r6el-unknown-linux-gnu");
  518   EXPECT_EQ(Triple::mipsel, T.getArch());
  519   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  520   EXPECT_EQ(Triple::Linux, T.getOS());
  521   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  522   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  523   T = Triple("mipsr6el");
  524   EXPECT_EQ(Triple::mipsel, T.getArch());
  525   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  526   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  527   T = Triple("mipsisa32r6el");
  528   EXPECT_EQ(Triple::mipsel, T.getArch());
  529   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  530   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  531   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  533   T = Triple("mipsisa32r6-unknown-linux-gnu");
  534   EXPECT_EQ(Triple::mips, T.getArch());
  535   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  536   EXPECT_EQ(Triple::Linux, T.getOS());
  537   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  538   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  539   T = Triple("mipsr6");
  540   EXPECT_EQ(Triple::mips, T.getArch());
  541   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  542   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  543   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  544   T = Triple("mipsisa32r6");
  545   EXPECT_EQ(Triple::mips, T.getArch());
  546   EXPECT_EQ(Triple::UnknownVendor, T.getVendor());
  547   EXPECT_EQ(Triple::GNU, T.getEnvironment());
  548   EXPECT_EQ(Triple::MipsSubArch_r6, T.getSubArch());
  550   T = Triple("arm-oe-linux-gnueabi");
  551   EXPECT_EQ(Triple::arm, T.getArch());
  552   EXPECT_EQ(Triple::OpenEmbedded, T.getVendor());
  553   EXPECT_EQ(Triple::Linux, T.getOS());
  554   EXPECT_EQ(Triple::GNUEABI, T.getEnvironment());
  556   T = Triple("aarch64-oe-linux");
  557   EXPECT_EQ(Triple::aarch64, T.getArch());
  558   EXPECT_EQ(Triple::OpenEmbedded, T.getVendor());
  559   EXPECT_EQ(Triple::Linux, T.getOS());
  560   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  561   EXPECT_TRUE(T.isArch64Bit());
  563   T = Triple("arm64_32-apple-ios");
  564   EXPECT_EQ(Triple::aarch64_32, T.getArch());
  565   EXPECT_EQ(Triple::IOS, T.getOS());
  566   EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
  567   EXPECT_TRUE(T.isArch32Bit());
  569   T = Triple("huh");
  570   EXPECT_EQ(Triple::UnknownArch, T.getArch());