diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 20:26:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-27 20:26:32 +0000 |
commit | fd1074f171d87eda903048ca94ab1927fd768afb (patch) | |
tree | a86f569845502fca5c822609a312c2576b2abab1 | |
parent | 21b3f31f8f7d77b9c3a35012139df92ba40e7c92 (diff) |
This is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47688 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/README.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index e140c147c6..530a3f26be 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -1554,30 +1554,6 @@ abs: //===---------------------------------------------------------------------===// 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: |