From fd1074f171d87eda903048ca94ab1927fd768afb Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 27 Feb 2008 20:26:32 +0000 Subject: [PATCH] This is done. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47688 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/README.txt | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index e140c147c61..530a3f26beb 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -1553,30 +1553,6 @@ abs: //===---------------------------------------------------------------------===// -Consider: - -#include -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); } -- 2.34.1