mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e5f939b02
commit
d704922315
@ -552,6 +552,13 @@ TEST(TripleTest, ParsedIDs) {
|
||||
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());
|
||||
@ -1457,6 +1464,10 @@ TEST(TripleTest, ParseARMArch) {
|
||||
Triple T = Triple("arm64");
|
||||
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());
|
||||
|
@ -658,12 +658,15 @@ TEST(TargetParserTest, ARMparseArchEndianAndISA) {
|
||||
}
|
||||
|
||||
EXPECT_EQ(ARM::EndianKind::LITTLE, ARM::parseArchEndian("aarch64"));
|
||||
EXPECT_EQ(ARM::EndianKind::LITTLE, ARM::parseArchEndian("arm64_32"));
|
||||
EXPECT_EQ(ARM::EndianKind::BIG, ARM::parseArchEndian("aarch64_be"));
|
||||
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64"));
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64_be"));
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64"));
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64_be"));
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64_32"));
|
||||
EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64_32"));
|
||||
}
|
||||
|
||||
TEST(TargetParserTest, ARMparseArchProfile) {
|
||||
|
Loading…
Reference in New Issue
Block a user