@@ -68,11 +68,6 @@ std::string FormatExtensionFlags(int64_t Flags) {
68
68
69
69
std::string FormatExtensionFlags (AArch64::ExtensionBitset Flags) {
70
70
std::vector<StringRef> Features;
71
-
72
- // AEK_NONE is not meant to be shown to the user so the target parser
73
- // does not recognise it. It is relevant here though.
74
- if (Flags.test (AArch64::AEK_NONE))
75
- Features.push_back (" none" );
76
71
AArch64::getExtensionFeatures (Flags, Features);
77
72
78
73
// The target parser also includes every extension you don't have.
@@ -2009,10 +2004,9 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
2009
2004
for (auto Ext : Extensions)
2010
2005
ExtVal.set (Ext);
2011
2006
2012
- // NONE has no feature names.
2013
- // We return True here because NONE is a valid choice.
2014
- EXPECT_TRUE (AArch64::getExtensionFeatures ({AArch64::AEK_NONE}, Features));
2015
- EXPECT_TRUE (!Features.size ());
2007
+ // Test an empty set of features.
2008
+ EXPECT_TRUE (AArch64::getExtensionFeatures ({}, Features));
2009
+ EXPECT_TRUE (Features.size () == 0 );
2016
2010
2017
2011
AArch64::getExtensionFeatures (ExtVal, Features);
2018
2012
EXPECT_EQ (Extensions.size (), Features.size ());
@@ -2092,8 +2086,7 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
2092
2086
EXPECT_TRUE (llvm::is_contained (Features, " +complxnum" ));
2093
2087
2094
2088
// Assuming we listed every extension above, this should produce the same
2095
- // result. (note that AEK_NONE doesn't have a name so it won't be in the
2096
- // result despite its bit being set)
2089
+ // result.
2097
2090
std::vector<StringRef> AllFeatures;
2098
2091
EXPECT_TRUE (AArch64::getExtensionFeatures (ExtVal, AllFeatures));
2099
2092
EXPECT_THAT (Features, ::testing::ContainerEq (AllFeatures));
0 commit comments