r224523 - Correction to -mfu=neon-vfpv4 to pass the correct backend feature name
Richard Barton
richard.barton at arm.com
Thu Dec 18 08:31:19 PST 2014
Author: rbarton
Date: Thu Dec 18 10:31:18 2014
New Revision: 224523
URL: http://llvm.org/viewvc/llvm-project?rev=224523&view=rev
Log:
Correction to -mfu=neon-vfpv4 to pass the correct backend feature name
Change-Id: I4dbfe1d97670fc4e626368ef1f91fc008778dfca
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=224523&r1=224522&r2=224523&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Dec 18 10:31:18 2014
@@ -590,11 +590,11 @@ static void getARMFPUFeatures(const Driv
} else if (FPU == "neon") {
Features.push_back("+neon");
} else if (FPU == "neon-vfpv3") {
- Features.push_back("+vfpv3");
+ Features.push_back("+vfp3");
Features.push_back("+neon");
} else if (FPU == "neon-vfpv4") {
Features.push_back("+neon");
- Features.push_back("+vfpv4");
+ Features.push_back("+vfp4");
} else if (FPU == "none") {
Features.push_back("-vfp2");
Features.push_back("-vfp3");
Modified: cfe/trunk/test/Driver/arm-mfpu.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-mfpu.c?rev=224523&r1=224522&r2=224523&view=diff
==============================================================================
--- cfe/trunk/test/Driver/arm-mfpu.c (original)
+++ cfe/trunk/test/Driver/arm-mfpu.c Thu Dec 18 10:31:18 2014
@@ -88,13 +88,13 @@
// RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv3 %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV3 %s
-// CHECK-NEON-VFPV3: "-target-feature" "+vfpv3"
+// CHECK-NEON-VFPV3: "-target-feature" "+vfp3"
// CHECK-NEON-VFPV3: "-target-feature" "+neon"
// RUN: %clang -target arm-linux-eabi -mfpu=neon-vfpv4 %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NEON-VFPV4 %s
// CHECK-NEON-VFPV4: "-target-feature" "+neon"
-// CHECK-NEON-VFPV4: "-target-feature" "+vfpv4"
+// CHECK-NEON-VFPV4: "-target-feature" "+vfp4"
// RUN: %clang -target arm-linux-eabi -msoft-float %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-SOFT-FLOAT %s
More information about the cfe-commits
mailing list