diff --git a/clang/lib/Basic/Targets/AArch64.h b/clang/lib/Basic/Targets/AArch64.h --- a/clang/lib/Basic/Targets/AArch64.h +++ b/clang/lib/Basic/Targets/AArch64.h @@ -30,7 +30,6 @@ unsigned FPU; bool HasCRC; - bool HasCrypto; bool HasAES; bool HasSHA2; bool HasSHA3; @@ -54,7 +53,6 @@ bool HasMatmulFP32; bool HasLSE; bool HasFlagM; - bool HasHBC; bool HasMOPS; llvm::AArch64::ArchKind ArchKind; diff --git a/clang/lib/Basic/Targets/AArch64.cpp b/clang/lib/Basic/Targets/AArch64.cpp --- a/clang/lib/Basic/Targets/AArch64.cpp +++ b/clang/lib/Basic/Targets/AArch64.cpp @@ -343,11 +343,6 @@ if (HasCRC) Builder.defineMacro("__ARM_FEATURE_CRC32", "1"); - // The __ARM_FEATURE_CRYPTO is deprecated in favor of finer grained feature - // macros for AES, SHA2, SHA3 and SM4 - if (HasAES && HasSHA2) - Builder.defineMacro("__ARM_FEATURE_CRYPTO", "1"); - if (HasAES) Builder.defineMacro("__ARM_FEATURE_AES", "1"); @@ -525,7 +520,6 @@ DiagnosticsEngine &Diags) { FPU = FPUMode; HasCRC = false; - HasCrypto = false; HasAES = false; HasSHA2 = false; HasSHA3 = false; @@ -548,7 +542,6 @@ HasMatmulFP64 = false; HasMatmulFP32 = false; HasLSE = false; - HasHBC = false; HasMOPS = false; ArchKind = llvm::AArch64::ArchKind::INVALID; @@ -599,8 +592,6 @@ } if (Feature == "+crc") HasCRC = true; - if (Feature == "+crypto") - HasCrypto = true; if (Feature == "+aes") HasAES = true; if (Feature == "+sha2") @@ -665,8 +656,6 @@ HasRandGen = true; if (Feature == "+flagm") HasFlagM = true; - if (Feature == "+hbc") - HasHBC = true; if (Feature == "+mops") HasMOPS = true; } diff --git a/clang/test/Preprocessor/aarch64-target-features.c b/clang/test/Preprocessor/aarch64-target-features.c --- a/clang/test/Preprocessor/aarch64-target-features.c +++ b/clang/test/Preprocessor/aarch64-target-features.c @@ -19,7 +19,6 @@ // CHECK-NOT: __ARM_FEATURE_BIG_ENDIAN // CHECK: __ARM_FEATURE_CLZ 1 // CHECK-NOT: __ARM_FEATURE_CRC32 1 -// CHECK-NOT: __ARM_FEATURE_CRYPTO 1 // CHECK: __ARM_FEATURE_DIRECTED_ROUNDING 1 // CHECK: __ARM_FEATURE_DIV 1 // CHECK: __ARM_FEATURE_FMA 1 @@ -72,13 +71,11 @@ // RUN: %clang -target aarch64-none-linux-gnu -march=armv8-a+crypto -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FEAT-CRYPTO %s // RUN: %clang -target arm64-none-linux-gnu -march=armv8-a+crypto -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FEAT-CRYPTO %s // CHECK-FEAT-CRYPTO: __ARM_FEATURE_AES 1 -// CHECK-FEAT-CRYPTO: __ARM_FEATURE_CRYPTO 1 // CHECK-FEAT-CRYPTO: __ARM_FEATURE_SHA2 1 // RUN: %clang -target aarch64-none-linux-gnu -march=armv8.4-a+crypto -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FEAT-CRYPTO-8_4 %s // RUN: %clang -target arm64-none-linux-gnu -march=armv8.4-a+crypto -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-FEAT-CRYPTO-8_4 %s // CHECK-FEAT-CRYPTO-8_4: __ARM_FEATURE_AES 1 -// CHECK-FEAT-CRYPTO-8_4: __ARM_FEATURE_CRYPTO 1 // CHECK-FEAT-CRYPTO-8_4: __ARM_FEATURE_SHA2 1 // CHECK-FEAT-CRYPTO-8_4: __ARM_FEATURE_SHA3 1 // CHECK-FEAT-CRYPTO-8_4: __ARM_FEATURE_SHA512 1 diff --git a/clang/test/Preprocessor/arm-acle-6.5.c b/clang/test/Preprocessor/arm-acle-6.5.c --- a/clang/test/Preprocessor/arm-acle-6.5.c +++ b/clang/test/Preprocessor/arm-acle-6.5.c @@ -91,14 +91,12 @@ // RUN: %clang -target armv7-eabi -x c -E -dM %s -o - | FileCheck %s -check-prefix CHECK-NO-EXTENSIONS // CHECK-NO-EXTENSIONS-NOT: __ARM_FEATURE_CRC32 -// CHECK-NO-EXTENSIONS-NOT: __ARM_FEATURE_CRYPTO // CHECK-NO-EXTENSIONS-NOT: __ARM_FEATURE_DIRECTED_ROUNDING // CHECK-NO-EXTENSIONS-NOT: __ARM_FEATURE_NUMERIC_MAXMIN // RUN: %clang -target armv8-eabi -x c -E -dM %s -o - | FileCheck %s -check-prefix CHECK-EXTENSIONS // CHECK-EXTENSIONS: __ARM_FEATURE_CRC32 1 -// CHECK-EXTENSIONS: __ARM_FEATURE_CRYPTO 1 // CHECK-EXTENSIONS: __ARM_FEATURE_DIRECTED_ROUNDING 1 // CHECK-EXTENSIONS: __ARM_FEATURE_NUMERIC_MAXMIN 1