r191001 - [ARMv8] Add crypto-neon-fp-armv8 -mfpu option in driver.
Amara Emerson
amara.emerson at arm.com
Thu Sep 19 06:54:03 PDT 2013
Author: aemerson
Date: Thu Sep 19 08:54:03 2013
New Revision: 191001
URL: http://llvm.org/viewvc/llvm-project?rev=191001&view=rev
Log:
[ARMv8] Add crypto-neon-fp-armv8 -mfpu option in driver.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/arm-mfpu.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=191001&r1=191000&r2=191001&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Sep 19 08:54:03 2013
@@ -596,6 +596,9 @@ static void getFPUFeatures(const Driver
} 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
Modified: cfe/trunk/test/Driver/arm-mfpu.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-mfpu.c?rev=191001&r1=191000&r2=191001&view=diff
==============================================================================
--- cfe/trunk/test/Driver/arm-mfpu.c (original)
+++ cfe/trunk/test/Driver/arm-mfpu.c Thu Sep 19 08:54:03 2013
@@ -56,6 +56,11 @@
// 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"
More information about the cfe-commits
mailing list