llvm.org GIT mirror llvm / 8cae86f
[ARM][AArch64] Add Armv8.3-a unittests Add Armv8.3-A to the architecture to the TargetParser unittests. Differential Revision: https://reviews.llvm.org/D36748 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311450 91177308-0d34-0410-b5e6-96231b3b80d8 Sam Parker 2 years ago
1 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2424 "armv7a", "armv7ve", "armv7hl", "armv7l", "armv7-r",
2525 "armv7r", "armv7-m", "armv7m", "armv7k", "armv7s",
2626 "armv7e-m", "armv7em", "armv8-a", "armv8", "armv8a",
27 "armv8.1-a", "armv8.1a", "armv8.2-a", "armv8.2a", "armv8-r",
28 "armv8r", "armv8-m.base", "armv8m.base", "armv8-m.main", "armv8m.main",
29 "iwmmxt", "iwmmxt2", "xscale"};
27 "armv8.1-a", "armv8.1a", "armv8.2-a", "armv8.2a", "armv8.3-a",
28 "armv8.3a", "armv8-r", "armv8r", "armv8-m.base", "armv8m.base",
29 "armv8-m.main", "armv8m.main", "iwmmxt", "iwmmxt2", "xscale"};
3030
3131 bool testARMCPU(StringRef CPUName, StringRef ExpectedArch,
3232 StringRef ExpectedFPU, unsigned ExpectedFlags,
354354 testARMArch("armv8.2-a", "generic", "v8.2a",
355355 ARMBuildAttrs::CPUArch::v8_A));
356356 EXPECT_TRUE(
357 testARMArch("armv8.3-a", "generic", "v8.3a",
358 ARMBuildAttrs::CPUArch::v8_A));
359 EXPECT_TRUE(
357360 testARMArch("armv8-r", "cortex-r52", "v8r",
358361 ARMBuildAttrs::CPUArch::v8_R));
359362 EXPECT_TRUE(
553556 "v6kz", "v6z", "v6zk", "v6-m", "v6m", "v6sm", "v6s-m", "v7-a",
554557 "v7", "v7a", "v7ve", "v7hl", "v7l", "v7-r", "v7r", "v7-m",
555558 "v7m", "v7k", "v7s", "v7e-m", "v7em", "v8-a", "v8", "v8a",
556 "v8.1-a", "v8.1a", "v8.2-a", "v8.2a", "v8-r"};
559 "v8.1-a", "v8.1a", "v8.2-a", "v8.2a", "v8.3-a", "v8.3a", "v8-r"};
557560
558561 for (unsigned i = 0; i < array_lengthof(Arch); i++) {
559562 std::string arm_1 = "armeb" + (std::string)(Arch[i]);
610613 case ARM::ArchKind::ARMV8A:
611614 case ARM::ArchKind::ARMV8_1A:
612615 case ARM::ArchKind::ARMV8_2A:
616 case ARM::ArchKind::ARMV8_3A:
613617 EXPECT_EQ(ARM::ProfileKind::A, ARM::parseArchProfile(ARMArch[i]));
614618 break;
615619 default:
750754 EXPECT_TRUE(testAArch64Arch("armv8.1-a", "generic", "v8.1a",
751755 ARMBuildAttrs::CPUArch::v8_A));
752756 EXPECT_TRUE(testAArch64Arch("armv8.2-a", "generic", "v8.2a",
757 ARMBuildAttrs::CPUArch::v8_A));
758 EXPECT_TRUE(testAArch64Arch("armv8.3-a", "generic", "v8.3a",
753759 ARMBuildAttrs::CPUArch::v8_A));
754760 }
755761