Changes in directory llvm/lib/Target/X86:
README.txt updated: 1.107 -> 1.108 --- Log message: Particularly ugly code. --- Diffs of the changes: (+14 -0) README.txt | 14 ++++++++++++++ 1 files changed, 14 insertions(+) Index: llvm/lib/Target/X86/README.txt diff -u llvm/lib/Target/X86/README.txt:1.107 llvm/lib/Target/X86/README.txt:1.108 --- llvm/lib/Target/X86/README.txt:1.107 Thu May 18 12:38:16 2006 +++ llvm/lib/Target/X86/README.txt Fri May 19 14:41:33 2006 @@ -36,6 +36,20 @@ //===---------------------------------------------------------------------===// +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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits