]> granicus.if.org Git - llvm/commitdiff
[AArch64] Subtarget crypto extension defaults
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Wed, 22 May 2019 07:10:27 +0000 (07:10 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Wed, 22 May 2019 07:10:27 +0000 (07:10 +0000)
The Armv8.2-A crypto extensions all defaulted to true, but should default to
false, like all the other extensions.

Differential Revision: https://reviews.llvm.org/D62180

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

lib/Target/AArch64/AArch64Subtarget.h

index 607e1a1e9329dd450dc52ddb8f3d0edb16ba5626..0c84cfb8329a6329e1aa6c24f38844c7e86a34fe 100644 (file)
@@ -93,6 +93,12 @@ protected:
   bool HasPAN_RWV = false;
   bool HasCCPP = false;
 
+  // Armv8.2 Crypto extensions
+  bool HasSM4 = false;
+  bool HasSHA3 = false;
+  bool HasSHA2 = false;
+  bool HasAES = false;
+
   // ARMv8.3 extensions
   bool HasPA = false;
   bool HasJS = false;
@@ -110,12 +116,6 @@ protected:
   bool HasTLB_RMI = false;
   bool HasFMI = false;
   bool HasRCPC_IMMO = false;
-  // ARMv8.4 Crypto extensions
-  bool HasSM4 = true;
-  bool HasSHA3 = true;
-
-  bool HasSHA2 = true;
-  bool HasAES = true;
 
   bool HasLSLFast = false;
   bool HasSVE = false;