[llvm] r314705 - Add support for Myriad ma2x8x series of CPUs
Walter Lee via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 11:50:48 PDT 2017
Author: waltl
Date: Mon Oct 2 11:50:48 2017
New Revision: 314705
URL: http://llvm.org/viewvc/llvm-project?rev=314705&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/Sparc/Sparc.td
llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll
Modified: llvm/trunk/lib/Target/Sparc/Sparc.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/Sparc.td?rev=314705&r1=314704&r2=314705&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/Sparc.td (original)
+++ llvm/trunk/lib/Target/Sparc/Sparc.td Mon Oct 2 11:50:48 2017
@@ -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,
Modified: llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll?rev=314705&r1=314704&r2=314705&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/LeonCASAInstructionUT.ll Mon Oct 2 11:50:48 2017
@@ -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
More information about the llvm-commits
mailing list