]> granicus.if.org Git - clang/commitdiff
[NEON] Fix the architecture condition for the crypto intrinsics
authorIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 17 Apr 2018 13:37:30 +0000 (13:37 +0000)
committerIvan A. Kosarev <ikosarev@accesssoftek.com>
Tue, 17 Apr 2018 13:37:30 +0000 (13:37 +0000)
Differential Revision: https://reviews.llvm.org/D45669

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330187 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/arm_neon.td

index afa2d32ef04fd1ce89f71991451826974cd34898..0e3be38586f1ec45440363e860571fa68b378f96 100644 (file)
@@ -913,7 +913,7 @@ def VEXT_A64 : WInst<"vext", "dddi", "dQdPlQPl">;
 
 ////////////////////////////////////////////////////////////////////////////////
 // Crypto
-let ArchGuard = "__ARM_FEATURE_CRYPTO" in {
+let ArchGuard = "__ARM_ARCH >= 8 && defined(__ARM_FEATURE_CRYPTO)" in {
 def AESE : SInst<"vaese", "ddd", "QUc">;
 def AESD : SInst<"vaesd", "ddd", "QUc">;
 def AESMC : SInst<"vaesmc", "dd", "QUc">;