From: Amara Emerson Date: Mon, 25 Nov 2013 13:17:15 +0000 (+0000) Subject: [ARM] Enable FeatureMP for Cortex-A5 by default. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b42574a1f201e6f77f57dff5b232820f1c164323;p=oota-llvm.git [ARM] Enable FeatureMP for Cortex-A5 by default. Patch by Oliver Stannard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195640 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARM.td b/lib/Target/ARM/ARM.td index f63064eeb0b..ed827c47ceb 100644 --- a/lib/Target/ARM/ARM.td +++ b/lib/Target/ARM/ARM.td @@ -179,7 +179,7 @@ def ProcA5 : SubtargetFeature<"a5", "ARMProcFamily", "CortexA5", "Cortex-A5 ARM processors", [FeatureSlowFPBrcc, FeatureHasSlowFPVMLx, FeatureVMLxForwarding, FeatureT2XtPk, - FeatureTrustZone]>; + FeatureTrustZone, FeatureMP]>; def ProcA7 : SubtargetFeature<"a7", "ARMProcFamily", "CortexA7", "Cortex-A7 ARM processors", [FeatureSlowFPBrcc, FeatureHasSlowFPVMLx, diff --git a/test/CodeGen/ARM/build-attributes.ll b/test/CodeGen/ARM/build-attributes.ll index 8e7e25b52c4..faf89728a84 100644 --- a/test/CodeGen/ARM/build-attributes.ll +++ b/test/CodeGen/ARM/build-attributes.ll @@ -12,6 +12,9 @@ ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-fp-armv8,-crypto | FileCheck %s --check-prefix=V8-NEON ; RUN: llc < %s -mtriple=armv8-linux-gnueabi -mattr=-crypto | FileCheck %s --check-prefix=V8-FPARMv8-NEON ; RUN: llc < %s -mtriple=armv8-linux-gnueabi | FileCheck %s --check-prefix=V8-FPARMv8-NEON-CRYPTO +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 | FileCheck %s --check-prefix=CORTEX-A5-DEFAULT +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-neon,+d16 | FileCheck %s --check-prefix=CORTEX-A5-NONEON +; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a5 -mattr=-vfp2 | FileCheck %s --check-prefix=CORTEX-A5-NOFPU ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=soft | FileCheck %s --check-prefix=CORTEX-A9-SOFT ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a9 -float-abi=hard | FileCheck %s --check-prefix=CORTEX-A9-HARD ; RUN: llc < %s -mtriple=armv7-linux-gnueabi -mcpu=cortex-a12 | FileCheck %s --check-prefix=CORTEX-A12-DEFAULT @@ -118,7 +121,6 @@ ; V8-FPARMv8-NEON-CRYPTO: .fpu crypto-neon-fp-armv8 ; V8-FPARMv8-NEON-CRYPTO: .eabi_attribute 12, 3 - ; Tag_CPU_arch 'ARMv7' ; CORTEX-A7-CHECK: .eabi_attribute 6, 10 ; CORTEX-A7-NOFPU: .eabi_attribute 6, 10 @@ -188,6 +190,47 @@ ; CORTEX-A7-NOFPU: .eabi_attribute 68, 3 ; CORTEX-A7-FPUV4: .eabi_attribute 68, 3 +; CORTEX-A5-DEFAULT: .cpu cortex-a5 +; CORTEX-A5-DEFAULT: .eabi_attribute 6, 10 +; CORTEX-A5-DEFAULT: .eabi_attribute 7, 65 +; CORTEX-A5-DEFAULT: .eabi_attribute 8, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 9, 2 +; CORTEX-A5-DEFAULT: .fpu neon-vfpv4 +; CORTEX-A5-DEFAULT: .eabi_attribute 20, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 21, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 23, 3 +; CORTEX-A5-DEFAULT: .eabi_attribute 24, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 25, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 42, 1 +; CORTEX-A5-DEFAULT: .eabi_attribute 68, 1 + +; CORTEX-A5-NONEON: .cpu cortex-a5 +; CORTEX-A5-NONEON: .eabi_attribute 6, 10 +; CORTEX-A5-NONEON: .eabi_attribute 7, 65 +; CORTEX-A5-NONEON: .eabi_attribute 8, 1 +; CORTEX-A5-NONEON: .eabi_attribute 9, 2 +; CORTEX-A5-NONEON: .fpu vfpv4-d16 +; CORTEX-A5-NONEON: .eabi_attribute 20, 1 +; CORTEX-A5-NONEON: .eabi_attribute 21, 1 +; CORTEX-A5-NONEON: .eabi_attribute 23, 3 +; CORTEX-A5-NONEON: .eabi_attribute 24, 1 +; CORTEX-A5-NONEON: .eabi_attribute 25, 1 +; CORTEX-A5-NONEON: .eabi_attribute 42, 1 +; CORTEX-A5-NONEON: .eabi_attribute 68, 1 + +; CORTEX-A5-NOFPU: .cpu cortex-a5 +; CORTEX-A5-NOFPU: .eabi_attribute 6, 10 +; CORTEX-A5-NOFPU: .eabi_attribute 7, 65 +; CORTEX-A5-NOFPU: .eabi_attribute 8, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 9, 2 +; CORTEX-A5-NOFPU-NOT: .fpu +; CORTEX-A5-NOFPU: .eabi_attribute 20, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 21, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 23, 3 +; CORTEX-A5-NOFPU: .eabi_attribute 24, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 25, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 42, 1 +; CORTEX-A5-NOFPU: .eabi_attribute 68, 1 ; CORTEX-A9-SOFT: .cpu cortex-a9 ; CORTEX-A9-SOFT: .eabi_attribute 6, 10