[llvm-commits] CVS: llvm/lib/Target/X86/README.txt

Chris Lattner sabre at nondot.org
Sat Apr 14 16:06:29 PDT 2007



Changes in directory llvm/lib/Target/X86:

README.txt updated: 1.164 -> 1.165
---
Log message:

add a note


---
Diffs of the changes:  (+18 -0)

 README.txt |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+)


Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.164 llvm/lib/Target/X86/README.txt:1.165
--- llvm/lib/Target/X86/README.txt:1.164	Wed Apr 11 00:34:00 2007
+++ llvm/lib/Target/X86/README.txt	Sat Apr 14 18:06:09 2007
@@ -1049,3 +1049,21 @@
 
 //===---------------------------------------------------------------------===//
 
+This:
+#include <xmmintrin.h>
+unsigned test(float f) {
+ return _mm_cvtsi128_si32( (__m128i) _mm_set_ss( f ));
+}
+
+Compiles to:
+_test:
+        movss 4(%esp), %xmm0
+        movd %xmm0, %eax
+        ret
+
+it should compile to a move from the stack slot directly into eax.  DAGCombine
+has this xform, but it is currently disabled until the alignment fields of 
+the load/store nodes are trustworthy.
+
+
+






More information about the llvm-commits mailing list