OSDN Git Service

Add support for Myriad ma2x8x series of CPUs
authorWalter Lee <waltl@google.com>
Mon, 2 Oct 2017 18:50:48 +0000 (18:50 +0000)
committerWalter Lee <waltl@google.com>
Mon, 2 Oct 2017 18:50:48 +0000 (18:50 +0000)
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

lib/Target/Sparc/Sparc.td
test/CodeGen/SPARC/LeonCASAInstructionUT.ll

index ee37b72..9e0a297 100644 (file)
@@ -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,
index ce3ad72..fa2fdd1 100644 (file)
@@ -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