summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86RecognizableInstr.cpp
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
commit605acfe533eb614016e2575513dc606536579fc8 (patch)
tree17c3b85d8838ff615c2e3cc8e66a65571b84a6a8 /llvm/utils/TableGen/X86RecognizableInstr.cpp
parent9dc0e5be5886fa1b46fb3c6a7c5bdf584605e74b (diff)
downloadbcm5719-llvm-605acfe533eb614016e2575513dc606536579fc8.tar.gz
bcm5719-llvm-605acfe533eb614016e2575513dc606536579fc8.zip
Add patterns for MMX that use the new intrinsics.
Enable palignr intrinsic. These may need adjustment for a new VT in due course. llvm-svn: 113233
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r--llvm/utils/TableGen/X86RecognizableInstr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp
index 4dba85b1668..a0d9aa2da26 100644
--- a/llvm/utils/TableGen/X86RecognizableInstr.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud