OSDN Git Service

Add a README entry.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 11 Nov 2008 17:35:52 +0000 (17:35 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 11 Nov 2008 17:35:52 +0000 (17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59052 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index 53c002b..9274762 100644 (file)
@@ -1773,3 +1773,20 @@ gcc 4.3 generates:
         movl    12(%ebp), %eax
         popl    %ebp
         ret
+
+//===---------------------------------------------------------------------===//
+
+Teach tblgen not to check bitconvert source type in some cases. This allows us
+to consolidate the following patterns in X86InstrMMX.td:
+
+def : Pat<(v2i32 (bitconvert (i64 (vector_extract (v2i64 VR128:$src),
+                                                  (iPTR 0))))),
+          (v2i32 (MMX_MOVDQ2Qrr VR128:$src))>;
+def : Pat<(v4i16 (bitconvert (i64 (vector_extract (v2i64 VR128:$src),
+                                                  (iPTR 0))))),
+          (v4i16 (MMX_MOVDQ2Qrr VR128:$src))>;
+def : Pat<(v8i8 (bitconvert (i64 (vector_extract (v2i64 VR128:$src),
+                                                  (iPTR 0))))),
+          (v8i8 (MMX_MOVDQ2Qrr VR128:$src))>;
+
+There are other cases in various td files.