: (kARMARCHNames[AK].ArchAttr == ARM::getArchAttr(AK)));
}
-TEST(TargetParserTest, ARMArchExtName) {
- for (ARM::ArchExtKind AEK = static_cast<ARM::ArchExtKind>(0);
- AEK <= ARM::ArchExtKind::AEK_XSCALE;
- AEK = static_cast<ARM::ArchExtKind>(static_cast<unsigned>(AEK) + 1))
- EXPECT_TRUE(contains(kARMArchExtKinds, static_cast<unsigned>(AEK))
- ? !ARM::getArchExtName(AEK).empty()
- : ARM::getArchExtName(AEK).empty());
-}
-
TEST(TargetParserTest, ARMArchExtFeature) {
const char *ArchExt[][4] = {{"crc", "nocrc", "+crc", "-crc"},
{"crypto", "nocrypto", "+crypto", "-crypto"},
}
}
-TEST(TargetParserTest, ARMHWDivName) {
- for (ARM::ArchExtKind AEK = static_cast<ARM::ArchExtKind>(0);
- AEK <= ARM::ArchExtKind::AEK_XSCALE;
- AEK = static_cast<ARM::ArchExtKind>(static_cast<unsigned>(AEK) + 1))
- EXPECT_TRUE(contains(kHWDivKinds, static_cast<unsigned>(AEK))
- ? !ARM::getHWDivName(AEK).empty()
- : ARM::getHWDivName(AEK).empty());
-}
-
TEST(TargetParserTest, ARMDefaultCPU) {
for (unsigned i = 0; i < array_lengthof(ARMArch); i++)
EXPECT_FALSE(ARM::getDefaultCPU(ARMArch[i]).empty());