[PATCH] [ARM] Rename v8fp subtarget feature to fp-armv8
Bradley Smith
bradley.smith at arm.com
Fri Sep 13 03:30:51 PDT 2013
Rename the 'v8fp' subtarget feature used for ARMv8 FP to 'fp-armv8'. This is purely for consistency with what values this subtarget feature represents elsewhere, and with the command line used to enable this feature in clang.
http://llvm-reviews.chandlerc.com/D1676
Files:
lib/Driver/Tools.cpp
test/Driver/arm-mfpu.c
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -592,9 +592,9 @@
Features.push_back("+vfp3");
Features.push_back("-neon");
} else if (FPU == "fp-armv8") {
- Features.push_back("+v8fp");
+ Features.push_back("+fp-armv8");
} else if (FPU == "neon-fp-armv8") {
- Features.push_back("+v8fp");
+ Features.push_back("+fp-armv8");
Features.push_back("+neon");
} else if (FPU == "neon") {
Features.push_back("+neon");
Index: test/Driver/arm-mfpu.c
===================================================================
--- test/Driver/arm-mfpu.c
+++ test/Driver/arm-mfpu.c
@@ -49,11 +49,11 @@
// RUN: %clang -target armv8-linux-gnueabihf -mfpu=fp-armv8 %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s
-// CHECK-FP-ARMV8: "-target-feature" "+v8fp"
+// CHECK-FP-ARMV8: "-target-feature" "+fp-armv8"
// RUN: %clang -target armv8-linux-gnueabihf -mfpu=neon-fp-armv8 %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s
-// CHECK-NEON-FP-ARMV8: "-target-feature" "+v8fp"
+// CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
// CHECK-NEON-FP-ARMV8: "-target-feature" "+neon"
// RUN: %clang -target arm-linux-gnueabihf %s -### 2>&1 \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1676.1.patch
Type: text/x-patch
Size: 1316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130913/bd561e06/attachment.bin>
More information about the cfe-commits
mailing list