summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-09-07 18:10:56 +0000
committerDale Johannesen <dalej@apple.com>2010-09-07 18:10:56 +0000
commit86097c384f84981494ed9c200ff5763afcd960de (patch)
tree28f2d8882694a4f69321ec14630a443c9ee4cb0c /utils
parentfa7f82ce5c96fd2a2efeb6cf403499504770fb28 (diff)
downloadllvm-86097c384f84981494ed9c200ff5763afcd960de.tar.gz
llvm-86097c384f84981494ed9c200ff5763afcd960de.tar.bz2
llvm-86097c384f84981494ed9c200ff5763afcd960de.tar.xz
Add patterns for MMX that use the new intrinsics.
Enable palignr intrinsic. These may need adjustment for a new VT in due course. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/X86RecognizableInstr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/TableGen/X86RecognizableInstr.cpp b/utils/TableGen/X86RecognizableInstr.cpp
index 4dba85b166..a0d9aa2da2 100644
--- a/utils/TableGen/X86RecognizableInstr.cpp
+++ b/utils/TableGen/X86RecognizableInstr.cpp
@@ -311,7 +311,7 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
return FILTER_STRONG;
// Special cases.
-
+
if (Name.find("PCMPISTRI") != Name.npos && Name != "PCMPISTRI")
return FILTER_WEAK;
if (Name.find("PCMPESTRI") != Name.npos && Name != "PCMPESTRI")
@@ -368,6 +368,12 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
(Name.find("to") != Name.npos)))
return FILTER_WEAK;
+ // Filter out the intrinsic form of instructions that also have an llvm
+ // operator form. FIXME this is temporary.
+ if (Name.find("irm") != Name.npos ||
+ Name.find("irr") != Name.npos)
+ return FILTER_WEAK;
+
return FILTER_NORMAL;
}