[llvm-commits] CVS: llvm/lib/Target/X86/README.txt
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 30 16:20:50 PST 2006
Changes in directory llvm/lib/Target/X86:
README.txt updated: 1.30 -> 1.31
---
Log message:
add some notes
---
Diffs of the changes: (+24 -0)
README.txt | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+)
Index: llvm/lib/Target/X86/README.txt
diff -u llvm/lib/Target/X86/README.txt:1.30 llvm/lib/Target/X86/README.txt:1.31
--- llvm/lib/Target/X86/README.txt:1.30 Sun Jan 29 03:46:06 2006
+++ llvm/lib/Target/X86/README.txt Mon Jan 30 18:20:38 2006
@@ -286,3 +286,27 @@
When compiled with unsafemath enabled, "main" should enable SSE DAZ mode and
other fast SSE modes.
+
+//===---------------------------------------------------------------------===//
+
+cd Regression/CodeGen/X86
+llvm-as < setuge.ll | llc -march=x86 -mcpu=yonah -enable-x86-sse
+
+_cmp:
+ subl $4, %esp
+1) leal 20(%esp), %eax
+ movss 12(%esp), %xmm0
+1) leal 16(%esp), %ecx
+ ucomiss 8(%esp), %xmm0
+ cmovb %ecx, %eax
+2) movss (%eax), %xmm0
+2) movss %xmm0, (%esp)
+ flds (%esp)
+ addl $4, %esp
+ ret
+
+
+1) These LEA's should be adds. This is tricky because they are FrameIndex's
+ before prolog-epilog rewriting.
+2) We shouldn't load into XMM regs only to store it back.
+
More information about the llvm-commits
mailing list