]> granicus.if.org Git - clang/commitdiff
Correction to -mfu=neon-vfpv4 to pass the correct backend feature name
authorRichard Barton <richard.barton@arm.com>
Thu, 18 Dec 2014 16:31:18 +0000 (16:31 +0000)
committerRichard Barton <richard.barton@arm.com>
Thu, 18 Dec 2014 16:31:18 +0000 (16:31 +0000)
Change-Id: I4dbfe1d97670fc4e626368ef1f91fc008778dfca

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

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

index 1903f3212f3e3aff001ff1363ab0878efc235e5a..fcc474183496dee9e240ccff80c522c77377acb9 100644 (file)
@@ -590,11 +590,11 @@ static void getARMFPUFeatures(const Driver &D, const Arg *A,
   } 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");
index 06e736415819f844b59bdea32a337338d158db6d..64d7d0bb630f7b464a1d22564a71552bc9827f42 100644 (file)
 
 // 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