This readme entry is done, testcase here: CodeGen/X86/zero-remat.ll
authorChris Lattner <sabre@nondot.org>
Thu, 14 Feb 2008 05:39:46 +0000 (05:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 14 Feb 2008 05:39:46 +0000 (05:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47106 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/README-FPStack.txt
test/CodeGen/X86/zero-remat.ll

index d94fa0219da41980042223589a60356448f4eb05..0dcbcbc73534f65455b835cab385eb7454beb036 100644 (file)
@@ -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; }
 
index 6d211932f727378e26e96e4ce582d0ed71389dac..9300c1239cd0714e9ff1cb20f6935417ca61ba7e 100644 (file)
@@ -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)