r206395 - [ARM64] Plumb in the -mfpu= flag.
James Molloy
james.molloy at arm.com
Wed Apr 16 08:33:56 PDT 2014
Author: jamesm
Date: Wed Apr 16 10:33:56 2014
New Revision: 206395
URL: http://llvm.org/viewvc/llvm-project?rev=206395&view=rev
Log:
[ARM64] Plumb in the -mfpu= flag.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/aarch64-features.c
cfe/trunk/test/Driver/aarch64-mfpu.c
cfe/trunk/test/Driver/aarch64-mgeneral_regs_only.c
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=206395&r1=206394&r2=206395&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Apr 16 10:33:56 2014
@@ -1567,6 +1567,8 @@ static void getTargetFeatures(const Driv
break;
case llvm::Triple::aarch64:
case llvm::Triple::aarch64_be:
+ case llvm::Triple::arm64:
+ case llvm::Triple::arm64_be:
getAArch64TargetFeatures(D, Args, Features);
break;
case llvm::Triple::x86:
Modified: cfe/trunk/test/Driver/aarch64-features.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/aarch64-features.c?rev=206395&r1=206394&r2=206395&view=diff
==============================================================================
--- cfe/trunk/test/Driver/aarch64-features.c (original)
+++ cfe/trunk/test/Driver/aarch64-features.c Wed Apr 16 10:33:56 2014
@@ -1,4 +1,5 @@
// RUN: %clang -target aarch64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
+// RUN: %clang -target arm64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
// The AArch64 PCS states that chars should be unsigned.
// CHECK: fno-signed-char
Modified: cfe/trunk/test/Driver/aarch64-mfpu.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/aarch64-mfpu.c?rev=206395&r1=206394&r2=206395&view=diff
==============================================================================
--- cfe/trunk/test/Driver/aarch64-mfpu.c (original)
+++ cfe/trunk/test/Driver/aarch64-mfpu.c Wed Apr 16 10:33:56 2014
@@ -4,20 +4,29 @@
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
// RUN: %clang -target aarch64-linux-eabi %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NEON %s
+// RUN: %clang -target arm64-linux-eabi -mfpu=neon %s -### -o %t.o 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NEON %s
+// RUN: %clang -target arm64-linux-eabi %s -### -o %t.o 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NEON %s
// CHECK-NEON: "-target-feature" "+neon"
// RUN: %clang -target aarch64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s
+// RUN: %clang -target arm64-linux-eabi -mfpu=fp-armv8 %s -### -o %t.o 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-FP-ARMV8 %s
// CHECK-FP-ARMV8: "-target-feature" "+fp-armv8"
// RUN: %clang -target aarch64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s
+// RUN: %clang -target arm64-linux-eabi -mfpu=neon-fp-armv8 %s -### 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NEON-FP-ARMV8 %s
// CHECK-NEON-FP-ARMV8: "-target-feature" "+fp-armv8"
// CHECK-NEON-FP-ARMV8: "-target-feature" "+neon"
// RUN: %clang -target aarch64-linux-eabi -mfpu=crypto-neon-fp-armv8 %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-CRYPTO-NEON-FP-ARMV8 %s
+// RUN: %clang -target arm64-linux-eabi -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" "+fp-armv8"
// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+neon"
// CHECK-CRYPTO-NEON-FP-ARMV8: "-target-feature" "+crypto"
-
Modified: cfe/trunk/test/Driver/aarch64-mgeneral_regs_only.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/aarch64-mgeneral_regs_only.c?rev=206395&r1=206394&r2=206395&view=diff
==============================================================================
--- cfe/trunk/test/Driver/aarch64-mgeneral_regs_only.c (original)
+++ cfe/trunk/test/Driver/aarch64-mgeneral_regs_only.c Wed Apr 16 10:33:56 2014
@@ -2,6 +2,8 @@
// RUN: %clang -target aarch64-linux-eabi -mgeneral-regs-only %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NO-FP %s
+// RUN: %clang -target arm64-linux-eabi -mgeneral-regs-only %s -### 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NO-FP %s
// CHECK-NO-FP: "-target-feature" "-fp-armv8"
// CHECK-NO-FP: "-target-feature" "-crypto"
// CHECK-NO-FP: "-target-feature" "-neon"
More information about the cfe-commits
mailing list