Particularly ugly code.
authorChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 19:41:33 +0000 (19:41 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 19:41:33 +0000 (19:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28397 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README.txt

index 05dc535a7b27064e88dbdf2f4d7995a02de79a16..8e752e061e74590361d5d2705610c2f3c3c51167 100644 (file)
@@ -36,6 +36,20 @@ http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00659.html
 
 //===---------------------------------------------------------------------===//
 
+On darwin/x86, we should codegen:
+
+        ret double 0.000000e+00
+
+as fld0/ret, not as:
+
+        movl $0, 4(%esp)
+        movl $0, (%esp)
+        fldl (%esp)
+       ...
+        ret
+
+//===---------------------------------------------------------------------===//
+
 This should use fiadd on chips where it is profitable:
 double foo(double P, int *I) { return P+*I; }