]> granicus.if.org Git - clang/commitdiff
[ARMv8] Add crypto-neon-fp-armv8 -mfpu option in driver.
authorAmara Emerson <amara.emerson@arm.com>
Thu, 19 Sep 2013 13:54:03 +0000 (13:54 +0000)
committerAmara Emerson <amara.emerson@arm.com>
Thu, 19 Sep 2013 13:54:03 +0000 (13:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191001 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/arm-mfpu.c

index c71514064f79da68b167ca88f6d00c7406c8619c..da27a941a1bd3665150b53f1cd1bdc184d9f1ee1 100644 (file)
@@ -596,6 +596,9 @@ static void getFPUFeatures(const Driver &D, const Arg *A, const ArgList &Args,
   } else if (FPU == "neon-fp-armv8") {
     Features.push_back("+fp-armv8");
     Features.push_back("+neon");
+  } else if (FPU == "crypto-neon-fp-armv8") {
+    Features.push_back("+crypto");
+    Features.push_back("+fp-armv8");
   } else if (FPU == "neon") {
     Features.push_back("+neon");
   } else
index 88e3ff8efd6aa29a91b0a26bce287ad680e20f86..d92563a499a373ac9b7ec1aa834aeb8ee4a87867 100644 (file)
 // CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
 // CHECK-NEON-FP-ARMV8: "-target-feature" "+neon"
 
+// RUN: %clang -target armv8-linux-gnueabihf -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \
+// RUN:   | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s
+// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto"
+// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
+
 // RUN: %clang -target arm-linux-gnueabihf %s -### 2>&1 \
 // RUN:   | FileCheck --check-prefix=CHECK-HF %s
 // CHECK-HF: "-target-cpu" "arm1136jf-s"