diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-18 20:18:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-18 20:18:14 +0000 |
commit | 60c7a136f381f5ec171b484424e6a1da42f0b0ac (patch) | |
tree | 75cf2c007a533e3350f0e3c96c85e93c9b440870 | |
parent | 2fa7ce2b873e02e6cbf61be02a8fceeea966eceb (diff) |
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37239 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/README.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/README.txt b/lib/Target/X86/README.txt index 477838d0e5..9ac0bb5972 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. |