diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-03-08 01:54:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-03-08 01:54:43 +0000 |
| commit | cfd1f7aa9fa5870bce84d43601bc6cec04229f9c (patch) | |
| tree | 3707ff90ac813a8817889f6d12550f89c7f0281f /llvm/lib | |
| parent | ab5a443144b08871292d0a6d1e387161bc458ed2 (diff) | |
| download | bcm5719-llvm-cfd1f7aa9fa5870bce84d43601bc6cec04229f9c.tar.gz bcm5719-llvm-cfd1f7aa9fa5870bce84d43601bc6cec04229f9c.zip | |
add a note.
llvm-svn: 66359
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index e8c2561d417..c4746d0c756 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -1818,3 +1818,25 @@ LBB1_1: ## bb1 jne LBB1_1 ## bb1 //===---------------------------------------------------------------------===// + +test/CodeGen/X86/2009-03-07-FPConstSelect.ll compiles to: + +_f: + xorl %eax, %eax + cmpl $0, 4(%esp) + movl $4, %ecx + cmovne %eax, %ecx + flds LCPI1_0(%ecx) + ret + +we should recognize cmov of 0 and a power of two and compile it into a +setcc+shift. This would give us something like: + +_f: + xorl %eax,%eax + cmpl $0, 4(%esp) + seteq %al + flds LCPI1_0(%ecx, %eax,4) + ret + +//===---------------------------------------------------------------------===// |

