[llvm-commits] [llvm] r47688 - /llvm/trunk/lib/Target/X86/README.txt

Evan Cheng evan.cheng at apple.com
Wed Feb 27 12:26:32 PST 2008


Author: evancheng
Date: Wed Feb 27 14:26:32 2008
New Revision: 47688

URL: http://llvm.org/viewvc/llvm-project?rev=47688&view=rev
Log:
This is done.

Modified:
    llvm/trunk/lib/Target/X86/README.txt

Modified: llvm/trunk/lib/Target/X86/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/README.txt?rev=47688&r1=47687&r2=47688&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/README.txt (original)
+++ llvm/trunk/lib/Target/X86/README.txt Wed Feb 27 14:26:32 2008
@@ -1554,30 +1554,6 @@
 //===---------------------------------------------------------------------===//
 
 Consider:
-
-#include <inttypes.h>
-uint64_t a;
-uint16_t b;
-uint64_t mul(void) {
-  return a * b;
-}
-
-Currently, we generate the following:
-
-mul:
-        movzwl  b, %ecx
-        movl    %ecx, %eax
-        mull    a
-        imull   a+4, %ecx
-        addl    %edx, %ecx
-        movl    %ecx, %edx
-        ret
-
-llvm should be able to commute the addl so that the movl isn't necessary.
-
-//===---------------------------------------------------------------------===//
-
-Consider:
 int test(unsigned long a, unsigned long b) { return -(a < b); }
 
 We currently compile this to:





More information about the llvm-commits mailing list