diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2013-10-18 10:18:40 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2013-10-18 10:18:40 +0000 |
commit | b1c480900bdc6486624a476b6ae25cb02a3b6276 (patch) | |
tree | 79b82e744a8fb71f9f2a7cb5ac39beb0581b1696 /lib/Target/ARM | |
parent | e019c08bf63cbcf3cdd9d5d83e6ecb22ad36536f (diff) | |
download | external_llvm-b1c480900bdc6486624a476b6ae25cb02a3b6276.zip external_llvm-b1c480900bdc6486624a476b6ae25cb02a3b6276.tar.gz external_llvm-b1c480900bdc6486624a476b6ae25cb02a3b6276.tar.bz2 |
Add hardware division as a default feature on Cortex-A15. Also add test cases to check this, and change diagnostics for the hwdiv-arm feature to something useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARM.td | 1 | ||||
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.td | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARM.td b/lib/Target/ARM/ARM.td index 5fab930..a0592f2 100644 --- a/lib/Target/ARM/ARM.td +++ b/lib/Target/ARM/ARM.td @@ -194,6 +194,7 @@ def ProcSwift : SubtargetFeature<"swift", "ARMProcFamily", "Swift", def ProcA15 : SubtargetFeature<"a15", "ARMProcFamily", "CortexA15", "Cortex-A15 ARM processors", [FeatureT2XtPk, FeatureVFP4, + FeatureMP, FeatureHWDiv, FeatureHWDivARM, FeatureAvoidPartialCPSR, FeatureTrustZone]>; diff --git a/lib/Target/ARM/ARMInstrInfo.td b/lib/Target/ARM/ARMInstrInfo.td index bc39a1d..7b7e67e 100644 --- a/lib/Target/ARM/ARMInstrInfo.td +++ b/lib/Target/ARM/ARMInstrInfo.td @@ -221,9 +221,9 @@ def HasCrypto : Predicate<"Subtarget->hasCrypto()">, def HasFP16 : Predicate<"Subtarget->hasFP16()">, AssemblerPredicate<"FeatureFP16","half-float">; def HasDivide : Predicate<"Subtarget->hasDivide()">, - AssemblerPredicate<"FeatureHWDiv", "divide">; + AssemblerPredicate<"FeatureHWDiv", "divide in THUMB">; def HasDivideInARM : Predicate<"Subtarget->hasDivideInARMMode()">, - AssemblerPredicate<"FeatureHWDivARM">; + AssemblerPredicate<"FeatureHWDivARM", "divide in ARM">; def HasT2ExtractPack : Predicate<"Subtarget->hasT2ExtractPack()">, AssemblerPredicate<"FeatureT2XtPk", "pack/extract">; |