summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/README.txt22
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
+
+//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud