[ARM] Cortex-R5 is not VFPOnlySP
authorJaved Absar <javed.absar@arm.com>
Fri, 26 Jun 2015 17:42:37 +0000 (17:42 +0000)
committerJaved Absar <javed.absar@arm.com>
Fri, 26 Jun 2015 17:42:37 +0000 (17:42 +0000)
This patch fixes the error in ARM.td which stated that Cortex-R5
floating point unit can do only single precision, when it can do double as well.

Reviewers: rengolin

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10769

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

lib/Target/ARM/ARM.td
test/CodeGen/ARM/build-attributes.ll

index ff12b36a0ea9278b34067180ea20c44f8aa49027..96b4742da2bb1f7a77a6431c75d7f72ace0f046a 100644 (file)
@@ -416,7 +416,7 @@ def : ProcessorModel<"cortex-r4f",  CortexA8Model,
 def : ProcessorModel<"cortex-r5",   CortexA8Model,
                                     [ProcR5, HasV7Ops, FeatureDB,
                                      FeatureVFP3, FeatureDSPThumb2,
-                                     FeatureHasRAS, FeatureVFPOnlySP,
+                                     FeatureHasRAS,
                                      FeatureD16, FeatureRClass]>;
 
 // FIXME: R7 has currently the same ProcessorModel as A8 and is modelled as R5.
index 69f02c0a86db9f7e71f307a02fcf399ca878f181..9aa2d6565d39c7388c6eb9eb8b8f5e7cc52377c0 100644 (file)
 ; CORTEX-R5:  .eabi_attribute 23, 3
 ; CORTEX-R5:  .eabi_attribute 24, 1
 ; CORTEX-R5:  .eabi_attribute 25, 1
-; CORTEX-R5:  .eabi_attribute 27, 1
+; CORTEX-R5-NOT:  .eabi_attribute 27, 1
 ; CORTEX-R5-NOT:  .eabi_attribute 28
 ; CORTEX-R5-NOT:  .eabi_attribute 36
 ; CORTEX-R5:  .eabi_attribute 38, 1