llvm.org GIT mirror llvm / d704922
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 Tim Northover 3 months ago
2 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
551551 EXPECT_EQ(Triple::OpenEmbedded, T.getVendor());
552552 EXPECT_EQ(Triple::Linux, T.getOS());
553553 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
554 EXPECT_TRUE(T.isArch64Bit());
555
556 T = Triple("arm64_32-apple-ios");
557 EXPECT_EQ(Triple::aarch64_32, T.getArch());
558 EXPECT_EQ(Triple::IOS, T.getOS());
559 EXPECT_EQ(Triple::UnknownEnvironment, T.getEnvironment());
560 EXPECT_TRUE(T.isArch32Bit());
554561
555562 T = Triple("huh");
556563 EXPECT_EQ(Triple::UnknownArch, T.getArch());
14571464 EXPECT_EQ(Triple::aarch64, T.getArch());
14581465 }
14591466 {
1467 Triple T = Triple("arm64_32");
1468 EXPECT_EQ(Triple::aarch64_32, T.getArch());
1469 }
1470 {
14601471 Triple T = Triple("aarch64");
14611472 EXPECT_EQ(Triple::aarch64, T.getArch());
14621473 }
657657 }
658658
659659 EXPECT_EQ(ARM::EndianKind::LITTLE, ARM::parseArchEndian("aarch64"));
660 EXPECT_EQ(ARM::EndianKind::LITTLE, ARM::parseArchEndian("arm64_32"));
660661 EXPECT_EQ(ARM::EndianKind::BIG, ARM::parseArchEndian("aarch64_be"));
661662
662663 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64"));
663664 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64_be"));
664665 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64"));
665666 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64_be"));
667 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("arm64_32"));
668 EXPECT_EQ(ARM::ISAKind::AARCH64, ARM::parseArchISA("aarch64_32"));
666669 }
667670
668671 TEST(TargetParserTest, ARMparseArchProfile) {