diff options
author | Bernard Ogden <bogden@arm.com> | 2013-10-14 13:16:57 +0000 |
---|---|---|
committer | Bernard Ogden <bogden@arm.com> | 2013-10-14 13:16:57 +0000 |
commit | 7220572e74844aa37b1b492ef67a8c1b403a254f (patch) | |
tree | cbb32269486450c5c077b7fc28707f58606a6dc5 /lib/Target/ARM/MCTargetDesc | |
parent | 9672a89c71f7b368455ed193bc23566f3bd4ed2b (diff) | |
download | external_llvm-7220572e74844aa37b1b492ef67a8c1b403a254f.zip external_llvm-7220572e74844aa37b1b492ef67a8c1b403a254f.tar.gz external_llvm-7220572e74844aa37b1b492ef67a8c1b403a254f.tar.bz2 |
Add subtarget feature support for Cortex-A53
Some previous implicit defaults have changed, for example FP and NEON
are now on by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc')
-rw-r--r-- | lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp index dc388ec..16021a2 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp @@ -103,8 +103,13 @@ std::string ARM_MC::ParseARMTriple(StringRef TT, StringRef CPU) { if (Idx) { unsigned SubVer = TT[Idx]; if (SubVer == '8') { - // FIXME: Parse v8 features - ARMArchFeature = "+v8,+db"; + if (NoCPU) + // v8a: FeatureDB, FeatureFPARMv8, FeatureNEON, FeatureDSPThumb2, FeatureMP, + // FeatureHWDiv, FeatureHWDivARM, FeatureTrustZone, FeatureT2XtPk, FeatureCrypto + ARMArchFeature = "+v8,+db,+fp-armv8,+neon,+t2dsp,+mp,+hwdiv,+hwdiv-arm,+trustzone,+t2xtpk,+crypto"; + else + // Use CPU to figure out the exact features + ARMArchFeature = "+v8"; } else if (SubVer == '7') { if (Len >= Idx+2 && TT[Idx+1] == 'm') { isThumb = true; |