aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-31 00:20:38 +0000
committerChris Lattner <sabre@nondot.org>2006-01-31 00:20:38 +0000
commitbdde465bcf4332a4df86dbad1f383b9686e1f79d (patch)
treefa5b9c2a3983e35a9da74471b39da1257678b702
parent6dfa999c01103c7a8e08ed0fc1d5f8abd0fb4d40 (diff)
add some notes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25825 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/README.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt
index 4ba981798f..fbe7e9dbf7 100644
--- a/lib/Target/X86/README.txt
+++ b/lib/Target/X86/README.txt
@@ -286,3 +286,27 @@ addressing modes.
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.
+