[llvm-commits] [PATCH] Incorrect VFP version supporting ARM Cortex-M4

Jiangning Liu jiangning.liu at arm.com
Fri Jul 13 01:17:14 PDT 2012


Hi,

The full name of FP version of ARM Cortex-M4 is fpv4-sp-d16, so the FP
version should be vfp4 rather than vfp2. This patch changes FeatureVFP2 to
FeatureVFP4 for Cortex-M4.

Thanks,
-Jiangning

diff --git a/lib/Target/ARM/ARM.td b/lib/Target/ARM/ARM.td
index cd3c0e0..69e2346 100644
--- a/lib/Target/ARM/ARM.td
+++ b/lib/Target/ARM/ARM.td
@@ -224,7 +224,7 @@ def : ProcNoItin<"cortex-m3",       [HasV7Ops,
 def : ProcNoItin<"cortex-m4",       [HasV7Ops,
                                      FeatureThumb2, FeatureNoARM,
FeatureDB,
                                      FeatureHWDiv, FeatureDSPThumb2,
-                                     FeatureT2XtPk, FeatureVFP2,
+                                     FeatureT2XtPk, FeatureVFP4,
                                      FeatureVFPOnlySP, FeatureMClass]>;
 
 
//===----------------------------------------------------------------------=
==//
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cortex_m4_fpv4.patch
Type: application/octet-stream
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120713/852675e8/attachment.obj>


More information about the llvm-commits mailing list