From 3d17e4c4278bda79de7351d3e412156fda7307bb Mon Sep 17 00:00:00 2001 From: Evan Cheng <evan.cheng@apple.com> Date: Wed, 27 Feb 2008 20:26:32 +0000 Subject: [PATCH] This is done. llvm-svn: 47688 --- llvm/lib/Target/X86/README.txt | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index e140c147c611..530a3f26beb1 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -1553,30 +1553,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); }