]> granicus.if.org Git - llvm/commitdiff
[Myriad]: set LeonCASA processor feature
authorDouglas Katzman <dougk@google.com>
Tue, 13 Sep 2016 17:51:41 +0000 (17:51 +0000)
committerDouglas Katzman <dougk@google.com>
Tue, 13 Sep 2016 17:51:41 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281359 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e25b65c92a292354cae8895edb222ac14a90d4f7..bdbdc1c6c1a3afc23449b258196540587a9c7628 100644 (file)
@@ -84,12 +84,12 @@ def : Proc<"hypersparc",      []>;
 def : Proc<"sparclite86x",    []>;
 def : Proc<"sparclet",        []>;
 def : Proc<"tsc701",          []>;
-def : Proc<"myriad2",         []>;
-def : Proc<"myriad2.1",       []>;
-def : Proc<"myriad2.2",       []>;
-def : Proc<"ma2100",          []>;
-def : Proc<"ma2150",          []>;
-def : Proc<"ma2450",          []>;
+def : Proc<"myriad2",         [FeatureLeon, LeonCASA]>;
+def : Proc<"myriad2.1",       [FeatureLeon, LeonCASA]>;
+def : Proc<"myriad2.2",       [FeatureLeon, LeonCASA]>;
+def : Proc<"ma2100",          [FeatureLeon, LeonCASA]>;
+def : Proc<"ma2150",          [FeatureLeon, LeonCASA]>;
+def : Proc<"ma2450",          [FeatureLeon, LeonCASA]>;
 def : Proc<"v9",              [FeatureV9]>;
 def : Proc<"ultrasparc",      [FeatureV9, FeatureV8Deprecated, FeatureVIS]>;
 def : Proc<"ultrasparc3",     [FeatureV9, FeatureV8Deprecated, FeatureVIS,
index 0d41f314edc40f9f4a3b685cd8fb9d3f4289fba3..ce3ad72b724d8609d2b4face1bde3087ea6dafe3 100755 (executable)
@@ -2,6 +2,7 @@
 ; RUN: llc %s -O0 -march=sparc -mcpu=gr712rc -o - | FileCheck %s
 ; 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
 
 ; CHECK-LABEL: casa_test
 ; CHECK:       casa [%o0] 10, %o3, %o2