add a note

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37239 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-05-18 20:18:14 +00:00
parent 2fa7ce2b87
commit 60c7a136f3

View File

@ -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.