aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-04-13 05:09:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-04-13 05:09:45 +0000
commitfc7c17abb511b0a61ccc67ff4c2c159c2b882fa9 (patch)
tree14178a5aee374edeffea59f520916d80f4ce38fa
parent9df21dc0d20839a07048f61b86ee607184051902 (diff)
Update
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27643 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/README.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt
index 08dcf5afc4..f58991728e 100644
--- a/lib/Target/X86/README.txt
+++ b/lib/Target/X86/README.txt
@@ -191,6 +191,18 @@ commutative, it is not matched with the load on both sides. The dag combiner
should be made smart enough to cannonicalize the load into the RHS of a compare
when it can invert the result of the compare for free.
+How about intrinsics? An example is:
+ *res = _mm_mulhi_epu16(*A, _mm_mul_epu32(*B, *C));
+
+compiles to
+ pmuludq (%eax), %xmm0
+ movl 8(%esp), %eax
+ movdqa (%eax), %xmm1
+ pmulhuw %xmm0, %xmm1
+
+The transformation probably requires a X86 specific pass or a DAG combiner
+target specific hook.
+
//===---------------------------------------------------------------------===//
LSR should be turned on for the X86 backend and tuned to take advantage of its