diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h index 71303611265c..cf8891cff1b3 100644 --- a/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h +++ b/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h @@ -343,7 +343,8 @@ struct SysAlias { : Name(N), Encoding(E), FeaturesRequired(F) {} bool haveFeatures(FeatureBitset ActiveFeatures) const { - return (FeaturesRequired & ActiveFeatures) == FeaturesRequired; + return ActiveFeatures[llvm::AArch64::FeatureAll] || + (FeaturesRequired & ActiveFeatures) == FeaturesRequired; } FeatureBitset getRequiredFeatures() const { return FeaturesRequired; } |