summaryrefslogtreecommitdiff
path: root/debian/patches/clang-arm-default-vfp3-on-armv7a.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/clang-arm-default-vfp3-on-armv7a.patch')
-rw-r--r--debian/patches/clang-arm-default-vfp3-on-armv7a.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/clang-arm-default-vfp3-on-armv7a.patch b/debian/patches/clang-arm-default-vfp3-on-armv7a.patch
new file mode 100644
index 0000000..12efe79
--- /dev/null
+++ b/debian/patches/clang-arm-default-vfp3-on-armv7a.patch
@@ -0,0 +1,27 @@
+Index: llvm-toolchain-snapshot_8~svn349138/include/llvm/Support/ARMTargetParser.def
+===================================================================
+--- llvm-toolchain-snapshot_8~svn349138.orig/include/llvm/Support/ARMTargetParser.def
++++ llvm-toolchain-snapshot_8~svn349138/include/llvm/Support/ARMTargetParser.def
+@@ -75,7 +75,7 @@ ARM_ARCH("armv6kz", ARMV6KZ, "6KZ", "v6k
+ ARM_ARCH("armv6-m", ARMV6M, "6-M", "v6m", ARMBuildAttrs::CPUArch::v6_M,
+ FK_NONE, ARM::AEK_NONE)
+ ARM_ARCH("armv7-a", ARMV7A, "7-A", "v7", ARMBuildAttrs::CPUArch::v7,
+- FK_NEON, ARM::AEK_DSP)
++ FK_VFPV3_D16 /* Hard float */, ARM::AEK_DSP)
+ ARM_ARCH("armv7ve", ARMV7VE, "7VE", "v7ve", ARMBuildAttrs::CPUArch::v7,
+ FK_NEON, (ARM::AEK_SEC | ARM::AEK_MP | ARM::AEK_VIRT |
+ ARM::AEK_HWDIVARM | ARM::AEK_HWDIVTHUMB | ARM::AEK_DSP))
+Index: llvm-toolchain-snapshot_8~svn349138/lib/Target/ARM/ARM.td
+===================================================================
+--- llvm-toolchain-snapshot_8~svn349138.orig/lib/Target/ARM/ARM.td
++++ llvm-toolchain-snapshot_8~svn349138/lib/Target/ARM/ARM.td
+@@ -596,7 +596,8 @@ def ARMv6sm : Architecture<"armv6s-m",
+ FeatureStrictAlign]>;
+
+ def ARMv7a : Architecture<"armv7-a", "ARMv7a", [HasV7Ops,
+- FeatureNEON,
++ FeatureVFP3,
++ FeatureD16,
+ FeatureDB,
+ FeatureDSP,
+ FeatureAClass]>;