From: Walter Lee Date: Mon, 2 Oct 2017 18:50:48 +0000 (+0000) Subject: Add support for Myriad ma2x8x series of CPUs X-Git-Tag: android-x86-7.1-r4~10305 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e88f2db963d5bd00400dca71cdbb9ab9ea56ef4b;p=android-x86%2Fexternal-llvm.git Add support for Myriad ma2x8x series of CPUs Summary: Also add support for some older Myriad CPUs that were missing. Reviewers: jyknight Subscribers: fedor.sergeev Differential Revision: https://reviews.llvm.org/D37552 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314705 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/Sparc.td b/lib/Target/Sparc/Sparc.td index ee37b7227db..9e0a297c881 100644 --- a/lib/Target/Sparc/Sparc.td +++ b/lib/Target/Sparc/Sparc.td @@ -98,9 +98,18 @@ def : Proc<"tsc701", []>; def : Proc<"myriad2", [FeatureLeon, LeonCASA]>; def : Proc<"myriad2.1", [FeatureLeon, LeonCASA]>; def : Proc<"myriad2.2", [FeatureLeon, LeonCASA]>; +def : Proc<"myriad2.3", [FeatureLeon, LeonCASA]>; def : Proc<"ma2100", [FeatureLeon, LeonCASA]>; def : Proc<"ma2150", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2155", [FeatureLeon, LeonCASA]>; def : Proc<"ma2450", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2455", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2x5x", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2080", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2085", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2480", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2485", [FeatureLeon, LeonCASA]>; +def : Proc<"ma2x8x", [FeatureLeon, LeonCASA]>; def : Proc<"v9", [FeatureV9]>; def : Proc<"ultrasparc", [FeatureV9, FeatureV8Deprecated, FeatureVIS]>; def : Proc<"ultrasparc3", [FeatureV9, FeatureV8Deprecated, FeatureVIS, diff --git a/test/CodeGen/SPARC/LeonCASAInstructionUT.ll b/test/CodeGen/SPARC/LeonCASAInstructionUT.ll index ce3ad72b724..fa2fdd1c9b1 100644 --- a/test/CodeGen/SPARC/LeonCASAInstructionUT.ll +++ b/test/CodeGen/SPARC/LeonCASAInstructionUT.ll @@ -3,6 +3,20 @@ ; RUN: llc %s -O0 -march=sparc -mcpu=leon4 -o - | FileCheck %s ; RUN: llc %s -O0 -march=sparc -mcpu=gr740 -o - | FileCheck %s ; RUN: llc %s -O0 -march=sparc -mcpu=myriad2 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=myriad2.1 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=myriad2.2 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=myriad2.3 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2100 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2150 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2155 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2450 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2455 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2x5x -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2080 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2085 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2480 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2485 -o - | FileCheck %s +; RUN: llc %s -O0 -march=sparc -mcpu=ma2x8x -o - | FileCheck %s ; CHECK-LABEL: casa_test ; CHECK: casa [%o0] 10, %o3, %o2