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

References

tools/lldb/unittests/Utility/ArchSpecTest.cpp
  101   EXPECT_TRUE(AS.SetTriple("12-10-apple-darwin"));
  102   EXPECT_EQ(uint32_t(llvm::MachO::CPU_TYPE_ARM), AS.GetMachOCPUType());
  103   EXPECT_EQ(10u, AS.GetMachOCPUSubType());
  104   EXPECT_TRUE(llvm::StringRef(AS.GetTriple().str())
  106   EXPECT_EQ(ArchSpec::eCore_arm_armv7f, AS.GetCore());
  108   AS = ArchSpec();
  109   EXPECT_TRUE(AS.SetTriple("18.100-apple-darwin"));
  110   EXPECT_EQ(uint32_t(llvm::MachO::CPU_TYPE_POWERPC), AS.GetMachOCPUType());
  111   EXPECT_EQ(100u, AS.GetMachOCPUSubType());
  112   EXPECT_TRUE(llvm::StringRef(AS.GetTriple().str())
  114   EXPECT_EQ(ArchSpec::eCore_ppc_ppc970, AS.GetCore());
  116   AS = ArchSpec();
  117   EXPECT_TRUE(AS.SetTriple("i686-pc-windows"));
  118   EXPECT_EQ(llvm::Triple::x86, AS.GetTriple().getArch());
  119   EXPECT_EQ(llvm::Triple::PC, AS.GetTriple().getVendor());
  120   EXPECT_EQ(llvm::Triple::Win32, AS.GetTriple().getOS());
  122       llvm::StringRef(AS.GetTriple().str()).consume_front("i686-pc-windows"));
  123   EXPECT_STREQ("i686", AS.GetArchitectureName());
  124   EXPECT_EQ(ArchSpec::eCore_x86_32_i686, AS.GetCore());
  127   AS = ArchSpec();
  128   EXPECT_FALSE(AS.SetTriple("unknown-unknown-unknown"));
  130   AS = ArchSpec();
  131   EXPECT_FALSE(AS.SetTriple("unknown"));
  133   AS = ArchSpec();
  134   EXPECT_FALSE(AS.SetTriple(""));