From: Chris Lattner Date: Fri, 18 May 2007 20:18:14 +0000 (+0000) Subject: add a note X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=60c7a136f381f5ec171b484424e6a1da42f0b0ac;p=oota-llvm.git add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37239 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index 477838d0e5c..9ac0bb5972a 100644 --- a/lib/Target/X86/README.txt +++ b/lib/Target/X86/README.txt @@ -26,6 +26,15 @@ long long test(int X, int Y) { return (long long)X*Y; } ... which should only be one imul instruction. +or: + +unsigned long long int t2(unsigned int a, unsigned int b) { + return (unsigned long long)a * b; +} + +... which should be one mul instruction. + + This can be done with a custom expander, but it would be nice to move this to generic code.