From: Douglas Katzman Date: Tue, 13 Sep 2016 17:51:41 +0000 (+0000) Subject: [Myriad]: set LeonCASA processor feature X-Git-Tag: llvmorg-4.0.0-rc1~9922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ea02f4e1c050e2bccac28439265656e8a2645c4;p=platform%2Fupstream%2Fllvm.git [Myriad]: set LeonCASA processor feature llvm-svn: 281359 --- diff --git a/llvm/lib/Target/Sparc/Sparc.td b/llvm/lib/Target/Sparc/Sparc.td index e25b65c..bdbdc1c 100644 --- a/llvm/lib/Target/Sparc/Sparc.td +++ b/llvm/lib/Target/Sparc/Sparc.td @@ -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, diff --git a/llvm/test/CodeGen/SPARC/LeonCASAInstructionUT.ll b/llvm/test/CodeGen/SPARC/LeonCASAInstructionUT.ll index 0d41f31..ce3ad72 100755 --- a/llvm/test/CodeGen/SPARC/LeonCASAInstructionUT.ll +++ b/llvm/test/CodeGen/SPARC/LeonCASAInstructionUT.ll @@ -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