Particularly ugly code.

llvm-svn: 28397
This commit is contained in:
Chris Lattner 2006-05-19 19:41:33 +00:00
parent 4203df25b8
commit d6a25a08d1
1 changed files with 14 additions and 0 deletions

View 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; }