summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-19 19:41:33 +0000
committerChris Lattner <sabre@nondot.org>2006-05-19 19:41:33 +0000
commitde050a7509b906985c8ba9367956270211a389bd (patch)
tree08f9af445809e4ce057bd53830ada1a6f0755284 /lib/Target
parent82743daacff6fe9c62a43ecf7f42d2f0d973e0b5 (diff)
downloadllvm-de050a7509b906985c8ba9367956270211a389bd.tar.gz
llvm-de050a7509b906985c8ba9367956270211a389bd.tar.bz2
llvm-de050a7509b906985c8ba9367956270211a389bd.tar.xz
Particularly ugly code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/README.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt
index 05dc535a7b..8e752e061e 100644
--- a/lib/Target/X86/README.txt
+++ b/lib/Target/X86/README.txt
@@ -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; }