summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2012-09-26 08:26:25 +0000
committerMichael Liao <michael.liao@intel.com>2012-09-26 08:26:25 +0000
commit4fa2ddbb94bb7b7f67e4f4d0aac292998fbf00ed (patch)
tree02f208c5c9f1e8d1620137e6ea020395e7006348 /lib/Target/X86/X86InstrInfo.cpp
parent6bcdb5b9034a02901175e94e89b4815f28f2f141 (diff)
downloadllvm-4fa2ddbb94bb7b7f67e4f4d0aac292998fbf00ed.tar.gz
llvm-4fa2ddbb94bb7b7f67e4f4d0aac292998fbf00ed.tar.bz2
llvm-4fa2ddbb94bb7b7f67e4f4d0aac292998fbf00ed.tar.xz
Add SARX/SHRX/SHLX code generation support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index 2fb2ed2104..95d2ad4a24 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -565,6 +565,12 @@ X86InstrInfo::X86InstrInfo(X86TargetMachine &tm)
// BMI/BMI2 foldable instructions
{ X86::RORX32ri, X86::RORX32mi, 0 },
{ X86::RORX64ri, X86::RORX64mi, 0 },
+ { X86::SARX32rr, X86::SARX32rm, 0 },
+ { X86::SARX64rr, X86::SARX64rm, 0 },
+ { X86::SHRX32rr, X86::SHRX32rm, 0 },
+ { X86::SHRX64rr, X86::SHRX64rm, 0 },
+ { X86::SHLX32rr, X86::SHLX32rm, 0 },
+ { X86::SHLX64rr, X86::SHLX64rm, 0 },
};
for (unsigned i = 0, e = array_lengthof(OpTbl1); i != e; ++i) {