arm64_32: add some unittests that were in the wrong commit.
Accidentally dropped them when committing the arm64_32 binutils support.
There's no change to real code.
llvm-svn: 360763
diff --git a/llvm/unittests/ADT/TripleTest.cpp b/llvm/unittests/ADT/TripleTest.cpp
index 9c8f3b1..b0f13d8 100644
--- a/llvm/unittests/ADT/TripleTest.cpp
+++ b/llvm/unittests/ADT/TripleTest.cpp
@@ -552,6 +552,13 @@
EXPECT_EQ(Triple::OpenEmbedded, T.getVendor());
EXPECT_EQ(Triple::Linux, T.getOS());
EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
+ EXPECT_TRUE(T.isArch64Bit());
+
+ T = Triple("arm64_32-apple-ios");
+ EXPECT_EQ(Triple::aarch64_32, T.getArch());
+ EXPECT_EQ(Triple::IOS, T.getOS());
+ EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
+ EXPECT_TRUE(T.isArch32Bit());
T = Triple("huh");
EXPECT_EQ(Triple::UnknownArch, T.getArch());
@@ -1458,6 +1465,10 @@
EXPECT_EQ(Triple::aarch64, T.getArch());
}
{
+ Triple T = Triple("arm64_32");
+ EXPECT_EQ(Triple::aarch64_32, T.getArch());
+ }
+ {
Triple T = Triple("aarch64");
EXPECT_EQ(Triple::aarch64, T.getArch());
}