[llvm-commits] CVS: llvm/lib/Target/X86/README-SSE.txt
Bill Wendling
isanbard at gmail.com
Wed Mar 28 12:07:51 PDT 2007
Changes in directory llvm/lib/Target/X86:
README-SSE.txt updated: 1.16 -> 1.17
---
Log message:
Made this into a bug report: PR1286: http://llvm.org/PR1286
---
Diffs of the changes: (+0 -40)
README-SSE.txt | 40 ----------------------------------------
1 files changed, 40 deletions(-)
Index: llvm/lib/Target/X86/README-SSE.txt
diff -u llvm/lib/Target/X86/README-SSE.txt:1.16 llvm/lib/Target/X86/README-SSE.txt:1.17
--- llvm/lib/Target/X86/README-SSE.txt:1.16 Thu Mar 22 13:42:45 2007
+++ llvm/lib/Target/X86/README-SSE.txt Wed Mar 28 14:07:34 2007
@@ -572,43 +572,3 @@
ret
//===---------------------------------------------------------------------===//
-
-We should compile this:
-
-#include <xmmintrin.h>
-
-void foo(__m128i *A, __m128i *B) {
- *A = _mm_sll_epi16 (*A, *B);
-}
-
-to:
-
-_foo:
- subl $12, %esp
- movl 16(%esp), %edx
- movl 20(%esp), %eax
- movdqa (%edx), %xmm1
- movdqa (%eax), %xmm0
- psllw %xmm0, %xmm1
- movdqa %xmm1, (%edx)
- addl $12, %esp
- ret
-
-not:
-
-_foo:
- movl 8(%esp), %eax
- movdqa (%eax), %xmm0
- #IMPLICIT_DEF %eax
- pinsrw $2, %eax, %xmm0
- xorl %ecx, %ecx
- pinsrw $3, %ecx, %xmm0
- pinsrw $4, %eax, %xmm0
- pinsrw $5, %ecx, %xmm0
- pinsrw $6, %eax, %xmm0
- pinsrw $7, %ecx, %xmm0
- movl 4(%esp), %eax
- movdqa (%eax), %xmm1
- psllw %xmm0, %xmm1
- movdqa %xmm1, (%eax)
- ret
More information about the llvm-commits
mailing list