[llvm-commits] [llvm] r47106 - in /llvm/trunk: lib/Target/X86/README-FPStack.txt test/CodeGen/X86/zero-remat.ll
Chris Lattner
sabre at nondot.org
Wed Feb 13 21:39:48 PST 2008
Author: lattner
Date: Wed Feb 13 23:39:46 2008
New Revision: 47106
URL: http://llvm.org/viewvc/llvm-project?rev=47106&view=rev
Log:
This readme entry is done, testcase here: CodeGen/X86/zero-remat.ll
Modified:
llvm/trunk/lib/Target/X86/README-FPStack.txt
llvm/trunk/test/CodeGen/X86/zero-remat.ll
Modified: llvm/trunk/lib/Target/X86/README-FPStack.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/README-FPStack.txt?rev=47106&r1=47105&r2=47106&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/README-FPStack.txt (original)
+++ llvm/trunk/lib/Target/X86/README-FPStack.txt Wed Feb 13 23:39:46 2008
@@ -9,20 +9,6 @@
//===---------------------------------------------------------------------===//
-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; }
Modified: llvm/trunk/test/CodeGen/X86/zero-remat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/zero-remat.ll?rev=47106&r1=47105&r2=47106&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/zero-remat.ll (original)
+++ llvm/trunk/test/CodeGen/X86/zero-remat.ll Wed Feb 13 23:39:46 2008
@@ -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)
More information about the llvm-commits
mailing list