diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-14 05:39:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-14 05:39:46 +0000 |
commit | 8b0cb7bcc6cabf19c317cd4a844f5fe47149a244 (patch) | |
tree | d76c49957a5d64d8ce159ece6644d42e2cf67f41 | |
parent | 1d1ef14248a24cb7239e0bc9298d84004a8044e6 (diff) |
This readme entry is done, testcase here: CodeGen/X86/zero-remat.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47106 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/README-FPStack.txt | 14 | ||||
-rw-r--r-- | test/CodeGen/X86/zero-remat.ll | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/lib/Target/X86/README-FPStack.txt b/lib/Target/X86/README-FPStack.txt index d94fa0219d..0dcbcbc735 100644 --- a/lib/Target/X86/README-FPStack.txt +++ b/lib/Target/X86/README-FPStack.txt @@ -9,20 +9,6 @@ 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; } diff --git a/test/CodeGen/X86/zero-remat.ll b/test/CodeGen/X86/zero-remat.ll index 6d211932f7..9300c1239c 100644 --- a/test/CodeGen/X86/zero-remat.ll +++ b/test/CodeGen/X86/zero-remat.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86-64 | grep xor | count 4 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 12 +; RUN: llvm-as < %s | llc -march=x86 | grep fldz +; RUN: llvm-as < %s | llc -march=x86 | not grep fldl declare void @bar(double %x) declare void @barf(float %x) |